Print this page
5880 Increase IOV_MAX to at least 1024
Portions contributed by: Jerry Jelinek <jerry.jelinek@joyent.com>


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23  *
  24  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.

  25  */
  26 
  27 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  28 /*        All Rights Reserved   */
  29 
  30 /*
  31  * University Copyright- Copyright (c) 1982, 1986, 1988
  32  * The Regents of the University of California
  33  * All Rights Reserved
  34  *
  35  * University Acknowledgment- Portions of this document are derived from
  36  * software developed by the University of California, Berkeley, and its
  37  * contributors.
  38  */
  39 
  40 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  41 
  42 #ifndef _SYS_SOCKET_H
  43 #define _SYS_SOCKET_H
  44 


 412 
 413 #define nmsghdr32       msghdr32
 414 
 415 #endif  /* _SYSCALL32 */
 416 #endif  /* _KERNEL */
 417 
 418 #define MSG_OOB         0x1             /* process out-of-band data */
 419 #define MSG_PEEK        0x2             /* peek at incoming message */
 420 #define MSG_DONTROUTE   0x4             /* send without using routing tables */
 421 #define MSG_EOR         0x8             /* Terminates a record */
 422 #define MSG_CTRUNC      0x10            /* Control data truncated */
 423 #define MSG_TRUNC       0x20            /* Normal data truncated */
 424 #define MSG_WAITALL     0x40            /* Wait for complete recv or error */
 425 #define MSG_DONTWAIT    0x80            /* Don't block for this recv */
 426 #define MSG_NOTIFICATION 0x100          /* Notification, not data */
 427 #define MSG_NOSIGNAL    0x200           /* Don't generate SIGPIPE */
 428 #define MSG_DUPCTRL     0x800           /* Save control message for use with */
 429                                         /* with left over data */
 430 #define MSG_XPG4_2      0x8000          /* Private: XPG4.2 flag */
 431 

 432 #define MSG_MAXIOVLEN   16
 433 
 434 #ifdef _KERNEL
 435 
 436 /*
 437  * Internal-only MSG_... flags
 438  */
 439 
 440 #define MSG_SENDTO_NOXLATE      0x08000000      /* Skip so_ux_addr_xlate */
 441 
 442 #define MSG_MBLK_QUICKRELE      0x10000000      /* free mblk chain */
 443                                                 /* in timely manner */
 444 #define MSG_USERSPACE           0x20000000      /* buffer from user space */
 445 
 446 #endif /* _KERNEL */
 447 
 448 
 449 /* Added for XPGv2 compliance */
 450 #define SHUT_RD         0
 451 #define SHUT_WR         1




   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23  *
  24  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  25  * Copyright 2015, Joyent, Inc. All rights reserved.
  26  */
  27 
  28 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  29 /*        All Rights Reserved   */
  30 
  31 /*
  32  * University Copyright- Copyright (c) 1982, 1986, 1988
  33  * The Regents of the University of California
  34  * All Rights Reserved
  35  *
  36  * University Acknowledgment- Portions of this document are derived from
  37  * software developed by the University of California, Berkeley, and its
  38  * contributors.
  39  */
  40 
  41 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  42 
  43 #ifndef _SYS_SOCKET_H
  44 #define _SYS_SOCKET_H
  45 


 413 
 414 #define nmsghdr32       msghdr32
 415 
 416 #endif  /* _SYSCALL32 */
 417 #endif  /* _KERNEL */
 418 
 419 #define MSG_OOB         0x1             /* process out-of-band data */
 420 #define MSG_PEEK        0x2             /* peek at incoming message */
 421 #define MSG_DONTROUTE   0x4             /* send without using routing tables */
 422 #define MSG_EOR         0x8             /* Terminates a record */
 423 #define MSG_CTRUNC      0x10            /* Control data truncated */
 424 #define MSG_TRUNC       0x20            /* Normal data truncated */
 425 #define MSG_WAITALL     0x40            /* Wait for complete recv or error */
 426 #define MSG_DONTWAIT    0x80            /* Don't block for this recv */
 427 #define MSG_NOTIFICATION 0x100          /* Notification, not data */
 428 #define MSG_NOSIGNAL    0x200           /* Don't generate SIGPIPE */
 429 #define MSG_DUPCTRL     0x800           /* Save control message for use with */
 430                                         /* with left over data */
 431 #define MSG_XPG4_2      0x8000          /* Private: XPG4.2 flag */
 432 
 433 /* Obsolete but kept for compilation compatability. Use IOV_MAX. */
 434 #define MSG_MAXIOVLEN   16
 435 
 436 #ifdef _KERNEL
 437 
 438 /*
 439  * Internal-only MSG_... flags
 440  */
 441 
 442 #define MSG_SENDTO_NOXLATE      0x08000000      /* Skip so_ux_addr_xlate */
 443 
 444 #define MSG_MBLK_QUICKRELE      0x10000000      /* free mblk chain */
 445                                                 /* in timely manner */
 446 #define MSG_USERSPACE           0x20000000      /* buffer from user space */
 447 
 448 #endif /* _KERNEL */
 449 
 450 
 451 /* Added for XPGv2 compliance */
 452 #define SHUT_RD         0
 453 #define SHUT_WR         1