Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/osf1 msghdr and x/open iovec structs



details:   https://anonhg.NetBSD.org/src/rev/b5ddd4521f28
branches:  trunk
changeset: 472857:b5ddd4521f28
user:      cgd <cgd%NetBSD.org@localhost>
date:      Mon May 10 03:58:50 1999 +0000

description:
msghdr and x/open iovec structs

diffstat:

 sys/compat/osf1/osf1.h |  31 ++++++++++++++++++++++++++-----
 1 files changed, 26 insertions(+), 5 deletions(-)

diffs (57 lines):

diff -r c4828074a9ad -r b5ddd4521f28 sys/compat/osf1/osf1.h
--- a/sys/compat/osf1/osf1.h    Mon May 10 03:34:20 1999 +0000
+++ b/sys/compat/osf1/osf1.h    Mon May 10 03:58:50 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1.h,v 1.17 1999/05/05 00:57:43 cgd Exp $ */
+/* $NetBSD: osf1.h,v 1.18 1999/05/10 03:58:50 cgd Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -427,6 +427,26 @@
 
 /* socket.h */
 
+struct osf1_msghdr {
+       osf1_data_ptr   msg_name;
+       osf1_u_int      msg_namelen;
+       osf1_data_ptr   msg_iov;                /* struct osf1_xopen_iovec * */
+       osf1_u_int      msg_iovlen;
+       osf1_data_ptr   msg_control;
+       osf1_u_int      msg_controllen;
+       osf1_int        msg_flags;
+};
+
+struct osf1_xopen_msghdr {
+       osf1_data_ptr   msg_name;
+       osf1_size_t     msg_namelen;
+       osf1_data_ptr   msg_iov;                /* struct osf1_xopen_iovec * */
+       osf1_int        msg_iovlen;
+       osf1_data_ptr   msg_control;
+       osf1_size_t     msg_controllen;
+       osf1_int        msg_flags;
+};
+
 /* max message iov len */
 #define        OSF1_MSG_MAXIOVLEN      16
 
@@ -506,15 +526,16 @@
 
 /* uio.h */
 
-/*
- * The X/Open version of this uses size_t iov_len, but we can't count on
- * the not-in-int bits being zero.  (The non-X/Open version uses int.)
- */
 struct osf1_iovec {
        osf1_data_ptr   iov_base;
        osf1_int        iov_len;
 };
 
+struct osf1_xopen_iovec {
+       osf1_data_ptr   iov_base;
+       osf1_size_t     iov_len;
+};
+
 
 /* unistd.h (user-land header) */
 



Home | Main Index | Thread Index | Old Index