summaryrefslogtreecommitdiff
path: root/mit-pthreads/machdep/alpha-osf1/uio.h
diff options
context:
space:
mode:
Diffstat (limited to 'mit-pthreads/machdep/alpha-osf1/uio.h')
-rwxr-xr-xmit-pthreads/machdep/alpha-osf1/uio.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/mit-pthreads/machdep/alpha-osf1/uio.h b/mit-pthreads/machdep/alpha-osf1/uio.h
new file mode 100755
index 00000000000..8d494672ee4
--- /dev/null
+++ b/mit-pthreads/machdep/alpha-osf1/uio.h
@@ -0,0 +1,12 @@
+/* N.B.: The Alpha, under OSF/1, does *not* use size_t for the length,
+ or for the returned values from readv and writev. */
+
+struct iovec {
+ void *iov_base;
+ int iov_len;
+};
+
+/* I'm assuming the iovec structures are const. I haven't verified
+ it. */
+extern ssize_t readv (int, const struct iovec *, int);
+extern ssize_t writev (int, const struct iovec *, int);