Print this page
OS-3752 Increase IOV_MAX to at least 1024

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