diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-09-21 21:11:14 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-09-21 21:11:14 +0000 |
commit | 364faf910ab0e1239e645596b8c76b227024331f (patch) | |
tree | e4215e758abda0ced60dc747a73ae5e123caaa85 /newlib/libc/machine | |
parent | e234ad1828122c67e2cb0c58b84704cb6172a319 (diff) | |
download | cygnal-364faf910ab0e1239e645596b8c76b227024331f.tar.gz cygnal-364faf910ab0e1239e645596b8c76b227024331f.tar.bz2 cygnal-364faf910ab0e1239e645596b8c76b227024331f.zip |
2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
* libc/machine/spu/sys/uio.h: New file for readv and writev use.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/spu/sys/uio.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <sys/types.h> + +#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 |