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

Split Close
Expand all
Collapse all
          --- old/usr/src/head/limits.h
          +++ new/usr/src/head/limits.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2013 Gary Mills
  24   24   * Copyright 2017 RackTop Systems.
  25   25   *
  26   26   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  27   27   * Use is subject to license terms.
       28 + * Copyright 2015 Joyent, Inc.  All rights reserved.
  28   29   */
  29   30  
  30   31  /*      Copyright (c) 1988 AT&T */
  31   32  /*        All Rights Reserved   */
  32   33  
  33   34  
  34   35  #ifndef _LIMITS_H
  35   36  #define _LIMITS_H
  36   37  
  37   38  #include <sys/feature_tests.h>
  38   39  #include <sys/isa_defs.h>
  39   40  #include <iso/limits_iso.h>
       41 +#include <sys/limits.h>
  40   42  
  41   43  /*
  42   44   * Include fixed width type limits as proposed by the ISO/JTC1/SC22/WG14 C
  43   45   * committee's working draft for the revision of the current ISO C standard,
  44   46   * ISO/IEC 9899:1990 Programming language - C.  These are not currently
  45   47   * required by any standard but constitute a useful, general purpose set
  46   48   * of type definitions and limits which is namespace clean with respect to
  47   49   * all standards.
  48   50   */
  49   51  #if defined(__EXTENSIONS__) || !defined(_STRICT_STDC) || \
↓ open down ↓ 186 lines elided ↑ open up ↑
 236  238  #define FLT_MIN         1.1754943508222875079688E-38F   /* min decimal value */
 237  239                                                          /* of a float */
 238  240  #endif
 239  241  
 240  242  #endif  /* defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) ... */
 241  243  
 242  244  #define _XOPEN_IOV_MAX  16      /* max # iovec/process with readv()/writev() */
 243  245  #define _XOPEN_NAME_MAX 255     /* max # bytes in filename excluding null */
 244  246  #define _XOPEN_PATH_MAX 1024    /* max # bytes in a pathname */
 245  247  
 246      -#define IOV_MAX         _XOPEN_IOV_MAX
 247      -
 248  248  #if defined(__EXTENSIONS__) || \
 249  249          (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
 250  250  
 251  251  #define FCHR_MAX        1048576         /* max size of a file in bytes */
 252  252  #define PID_MAX         999999          /* max value for a process ID */
 253  253  
 254  254  /*
 255  255   * POSIX 1003.1a, section 2.9.5, table 2-5 contains [NAME_MAX] and the
 256  256   * related text states:
 257  257   *
↓ open down ↓ 82 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX