Print this page
5880 Increase IOV_MAX to at least 1024
Portions contributed by: Jerry Jelinek <jerry.jelinek@joyent.com>
   1 /*
   2  * Copyright 1989 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 
   6 #pragma ident   "%Z%%M% %I%     %E% SMI"
   7 
   8 /*
   9  * Copyright (c) 1982, 1985, 1986 Regents of the University of California.
  10  * All rights reserved.  The Berkeley software License Agreement
  11  * specifies the terms and conditions for redistribution.
  12  */
  13 
  14 #ifndef _sys_socket_h
  15 #define _sys_socket_h
  16 
  17 /*
  18  * Definitions related to sockets: types, address families, options.
  19  */
  20 
  21 /*
  22  * Types
  23  */
  24 #define SOCK_STREAM     1               /* stream socket */
  25 #define SOCK_DGRAM      2               /* datagram socket */
  26 #define SOCK_RAW        3               /* raw-protocol interface */
  27 #define SOCK_RDM        4               /* reliably-delivered message */


 152  * Maximum queue length specifiable by listen.
 153  */
 154 #define SOMAXCONN       5
 155 
 156 /*
 157  * Message header for recvmsg and sendmsg calls.
 158  */
 159 struct msghdr {
 160         caddr_t msg_name;               /* optional address */
 161         int     msg_namelen;            /* size of address */
 162         struct  iovec *msg_iov;         /* scatter/gather array */
 163         int     msg_iovlen;             /* # elements in msg_iov */
 164         caddr_t msg_accrights;          /* access rights sent/received */
 165         int     msg_accrightslen;
 166 };
 167 
 168 #define MSG_OOB         0x1             /* process out-of-band data */
 169 #define MSG_PEEK        0x2             /* peek at incoming message */
 170 #define MSG_DONTROUTE   0x4             /* send without using routing tables */
 171 
 172 #define MSG_MAXIOVLEN   16
 173 
 174 #endif /*!_sys_socket_h*/
   1 /*
   2  * Copyright 1989 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 


   6 /*
   7  * Copyright (c) 1982, 1985, 1986 Regents of the University of California.
   8  * All rights reserved.  The Berkeley software License Agreement
   9  * specifies the terms and conditions for redistribution.
  10  */
  11 
  12 #ifndef _sys_socket_h
  13 #define _sys_socket_h
  14 
  15 /*
  16  * Definitions related to sockets: types, address families, options.
  17  */
  18 
  19 /*
  20  * Types
  21  */
  22 #define SOCK_STREAM     1               /* stream socket */
  23 #define SOCK_DGRAM      2               /* datagram socket */
  24 #define SOCK_RAW        3               /* raw-protocol interface */
  25 #define SOCK_RDM        4               /* reliably-delivered message */


 150  * Maximum queue length specifiable by listen.
 151  */
 152 #define SOMAXCONN       5
 153 
 154 /*
 155  * Message header for recvmsg and sendmsg calls.
 156  */
 157 struct msghdr {
 158         caddr_t msg_name;               /* optional address */
 159         int     msg_namelen;            /* size of address */
 160         struct  iovec *msg_iov;         /* scatter/gather array */
 161         int     msg_iovlen;             /* # elements in msg_iov */
 162         caddr_t msg_accrights;          /* access rights sent/received */
 163         int     msg_accrightslen;
 164 };
 165 
 166 #define MSG_OOB         0x1             /* process out-of-band data */
 167 #define MSG_PEEK        0x2             /* peek at incoming message */
 168 #define MSG_DONTROUTE   0x4             /* send without using routing tables */
 169 


 170 #endif /*!_sys_socket_h*/