On OpenBSD 4.4, is not self-contained:
$ cat foo.c
#include
struct iovec x;
$ gcc -c foo.c
In file included from foo.c:1:
/usr/include/sys/uio.h:40: error: syntax error before "size_t"
In file included from foo.c:1:
/usr/include/sys/uio.h:75: error: syntax error before "preadv"
/usr/include/sys
Eric Blake wrote:
> +/* All known platforms that lack also lack any declaration
> + of struct iovec in any other header. */
> +struct iovec {
> + void *iov_base;
> + size_t iov_len;
> +};
When we define a 'struct' type in a gnulib header, we need to take care of
two things:
- In the situa
For now, just provide the types used by sys/socket. We could
add readv() and writev() later, if desired.
* modules/sys_uio: New module.
* modules/sys_uio-tests: Likewise.
* lib/sys_uio.in.h: New file.
* m4/sys_uio_h.m4: Likewise.
* tests/test-sys_uio.c: Likewise.
* doc/posix-headers/sys_uio.texi