OSDN Git Service

2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
authorjjohnstn <jjohnstn>
Fri, 21 Sep 2007 21:11:13 +0000 (21:11 +0000)
committerjjohnstn <jjohnstn>
Fri, 21 Sep 2007 21:11:13 +0000 (21:11 +0000)
        * libc/machine/spu/sys/uio.h: New file for readv and writev use.

newlib/ChangeLog
newlib/libc/machine/spu/sys/uio.h [new file with mode: 0644]

index c1498f2..e47e08b 100644 (file)
@@ -1,5 +1,9 @@
 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
 
+       * libc/machine/spu/sys/uio.h: New file for readv and writev use.
+
+2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
+
        * libc/include/sched.h: New file, just include sys/sched.h.
        * libc/machine/spu/sys/sched.h: New file, has just sched_yield
        prototype.
diff --git a/newlib/libc/machine/spu/sys/uio.h b/newlib/libc/machine/spu/sys/uio.h
new file mode 100644 (file)
index 0000000..9ed1549
--- /dev/null
@@ -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