From 364faf910ab0e1239e645596b8c76b227024331f Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 21 Sep 2007 21:11:14 +0000 Subject: 2007-09-21 Patrick Mansfield * libc/machine/spu/sys/uio.h: New file for readv and writev use. --- newlib/libc/machine/spu/sys/uio.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 newlib/libc/machine/spu/sys/uio.h (limited to 'newlib/libc') diff --git a/newlib/libc/machine/spu/sys/uio.h b/newlib/libc/machine/spu/sys/uio.h new file mode 100644 index 000000000..9ed1549f3 --- /dev/null +++ b/newlib/libc/machine/spu/sys/uio.h @@ -0,0 +1,26 @@ +#ifndef _SYS_UIO_H +#define _SYS_UIO_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Per POSIX + */ + +struct iovec { + void *iov_base; + size_t iov_len; +}; + +ssize_t readv(int, const struct iovec *, int); +ssize_t writev(int, const struct iovec *, int); + +#ifdef __cplusplus +}; +#endif + +#endif -- cgit v1.2.3