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

@@ -23,10 +23,11 @@
  * Copyright (c) 2013 Gary Mills
  * Copyright 2017 RackTop Systems.
  *
  * 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   */
 

@@ -35,10 +36,11 @@
 #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

@@ -241,12 +243,10 @@
 
 #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 */