* lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
Reported by Richard W.M. Jones.
2009-11-25 Jim Meyering <meyering@redhat.com>
+ unistd.in.h: correct declaration of pread
+ * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
+ Reported by Richard W.M. Jones.
+
test-pread.sh: distribute the test script
* modules/pread-tests (Files): Include test-pread.sh.
set errno and return -1. 0 indicates EOF. See the POSIX:2001
specification <http://www.opengroup.org/susv3xsh/pread.html>. */
# if !@HAVE_PREAD@ || @REPLACE_PREAD@
- extern ssize_t pread (int fd, char *buf, size_t bufsize, off_t offset);
+ extern ssize_t pread (int fd, void *buf, size_t bufsize, off_t offset);
# endif
#elif defined GNULIB_POSIXCHECK
# undef pread