kernel: some boottime sanitychecks
[minix.git] / include / sys / uio.h
blobf85a2d18515dc3d79583fc3f077c56e47090da32
1 #ifndef _SYS_UIO_H_
2 #define _SYS_UIO_H_
4 #include <machine/ansi.h>
5 #include <sys/featuretest.h>
7 #ifdef _BSD_SIZE_T_
8 typedef _BSD_SIZE_T_ size_t;
9 #undef _BSD_SIZE_T_
10 #endif
12 #ifdef _BSD_SSIZE_T_
13 typedef _BSD_SSIZE_T_ ssize_t;
14 #undef _BSD_SSIZE_T_
15 #endif
17 struct iovec {
18 void *iov_base; /* Base address. */
19 size_t iov_len; /* Length. */
22 #if defined(_NETBSD_SOURCE)
24 * Limits
26 /* Deprecated: use IOV_MAX from <limits.h> instead. */
27 #define UIO_MAXIOV 1024 /* max 1K of iov's */
28 #endif /* _NETBSD_SOURCE */
30 #include <sys/cdefs.h>
32 __BEGIN_DECLS
33 ssize_t readv(int, const struct iovec *, int);
34 ssize_t writev(int, const struct iovec *, int);
35 __END_DECLS
37 #endif /* !_SYS_UIO_H_ */