diff options
Diffstat (limited to 'misc/sys/uio.h')
-rw-r--r-- | misc/sys/uio.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/misc/sys/uio.h b/misc/sys/uio.h index 66c22f04f6..2ae918a8d4 100644 --- a/misc/sys/uio.h +++ b/misc/sys/uio.h @@ -19,15 +19,17 @@ #define _SYS_UIO_H 1 #include <features.h> - #include <sys/types.h> +#include <bits/types/struct_iovec.h> +#include <bits/uio_lim.h> +#ifdef __IOV_MAX +# define UIO_MAXIOV __IOV_MAX +#else +# undef UIO_MAXIOV +#endif __BEGIN_DECLS -/* This file defines `struct iovec'. */ -#include <bits/uio.h> - - /* Read data from file descriptor FD, and put the result in the buffers described by IOVEC, which is a vector of COUNT 'struct iovec's. The buffers are filled in the order specified. @@ -160,4 +162,10 @@ extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, __END_DECLS +/* Some operating systems provide system-specific extensions to this + header. */ +#ifdef __USE_GNU +# include <bits/uio-ext.h> +#endif + #endif /* sys/uio.h */ |