2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Fix prototypes for sudo_pread() and sudo_pwrite().

This commit is contained in:
Todd C. Miller 2021-08-19 19:05:50 -06:00
parent 5d3ab032f2
commit 23e5304b78

View File

@ -586,12 +586,12 @@ sudo_dso_public int sudo_pipe2(int fildes[2], int flags);
# define pipe2(_a, _b) sudo_pipe2((_a), (_b)) # define pipe2(_a, _b) sudo_pipe2((_a), (_b))
#endif /* HAVE_PIPE2 */ #endif /* HAVE_PIPE2 */
#ifndef HAVE_PREAD #ifndef HAVE_PREAD
sudo_dso_public int sudo_pread(int fd, void *buf, size_t nbytes, off_t offset); sudo_dso_public ssize_t sudo_pread(int fd, void *buf, size_t nbytes, off_t offset);
# undef pread # undef pread
# define pread(_a, _b, _c, _d) sudo_pread((_a), (_b), (_c), (_d)) # define pread(_a, _b, _c, _d) sudo_pread((_a), (_b), (_c), (_d))
#endif /* HAVE_PREAD */ #endif /* HAVE_PREAD */
#ifndef HAVE_PWRITE #ifndef HAVE_PWRITE
sudo_dso_public int sudo_pwrite(int fd, const void *buf, size_t nbytes, off_t offset); sudo_dso_public ssize_t sudo_pwrite(int fd, const void *buf, size_t nbytes, off_t offset);
# undef pwrite # undef pwrite
# define pwrite(_a, _b, _c, _d) sudo_pwrite((_a), (_b), (_c), (_d)) # define pwrite(_a, _b, _c, _d) sudo_pwrite((_a), (_b), (_c), (_d))
#endif /* HAVE_PWRITE */ #endif /* HAVE_PWRITE */