Print this page
OS-3752 Increase IOV_MAX to at least 1024
        
*** 22,31 ****
--- 22,32 ----
  /*
   * Copyright (c) 2013 Gary Mills
   *
   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
+  * Copyright 2015 Joyent, Inc.  All rights reserved.
   */
  
  /*      Copyright (c) 1988 AT&T */
  /*        All Rights Reserved   */
  
*** 34,43 ****
--- 35,45 ----
  #define _LIMITS_H
  
  #include <sys/feature_tests.h>
  #include <sys/isa_defs.h>
  #include <iso/limits_iso.h>
+ #include <sys/limits.h>
  
  /*
   * Include fixed width type limits as proposed by the ISO/JTC1/SC22/WG14 C
   * committee's working draft for the revision of the current ISO C standard,
   * ISO/IEC 9899:1990 Programming language - C.  These are not currently
*** 235,246 ****
  
  #define _XOPEN_IOV_MAX  16      /* max # iovec/process with readv()/writev() */
  #define _XOPEN_NAME_MAX 255     /* max # bytes in filename excluding null */
  #define _XOPEN_PATH_MAX 1024    /* max # bytes in a pathname */
  
- #define IOV_MAX         _XOPEN_IOV_MAX
- 
  #if defined(__EXTENSIONS__) || \
          (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
  
  #define FCHR_MAX        1048576         /* max size of a file in bytes */
  #define PID_MAX         999999          /* max value for a process ID */
--- 237,246 ----