};
#endif
+#ifdef HAVE_POSIX2008_PREADV
+#define _SYSIO_PREADV_T int
+#else
+#define _SYSIO_PREADV_T size_t
+#endif
+
struct iovec;
/*
size_t count,
off_t offset);
-#if _LARGEFILE64_SOURCE
+#ifdef _LARGEFILE64_SOURCE
/*
* Post asynch read into buffers mapped by an iovec from file at given offset.
*/
size_t count,
off_t offset);
-#if _LARGEFILE64_SOURCE
+#ifdef _LARGEFILE64_SOURCE
/*
* Post asynch read into buffer from file at given offset.
*/
*/
extern ssize_t SYSIO_INTERFACE_NAME(preadv)(int fd,
const struct iovec *iov,
- size_t count,
+ _SYSIO_PREADV_T count,
off_t offset);
-#if _LARGEFILE64_SOURCE
+#ifdef _LARGEFILE64_SOURCE
/*
* Read into buffers mapped by an iovec from file at given offset.
*/
extern ssize_t SYSIO_INTERFACE_NAME(pread64v)(int fd,
const struct iovec *iov,
- size_t count,
+ _SYSIO_PREADV_T count,
off64_t offset);
#endif
const struct iovec *iov,
size_t count,
off_t offset);
-#if _LARGEFILE64_SOURCE
+#ifdef _LARGEFILE64_SOURCE
/*
* Post asynch write from buffers mapped by an iovec to file at given offset.
*/
size_t count,
off_t offset);
-#if _LARGEFILE64_SOURCE
+#ifdef _LARGEFILE64_SOURCE
/*
* Post asynch write from buffer to file at given offset.
*/
*/
extern ssize_t SYSIO_INTERFACE_NAME(pwritev)(int fd,
const struct iovec *iov,
- size_t count,
+ _SYSIO_PREADV_T count,
off_t offset);
-#if _LARGEFILE64_SOURCE
+#ifdef _LARGEFILE64_SOURCE
/*
* Write from buffers mapped by an iovec to file at given offset.
*/
extern ssize_t SYSIO_INTERFACE_NAME(pwrite64v)(int fd,
const struct iovec *iov,
- size_t count,
+ _SYSIO_PREADV_T count,
off64_t offset);
#endif