Print this page
3772 consider raising default descriptor soft limit

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/select.h
          +++ new/usr/src/uts/common/sys/select.h
↓ open down ↓ 74 lines elided ↑ open up ↑
  75   75          unsigned int    __sigbits[4];
  76   76  } sigset_t;
  77   77  #endif  /* _SIGSET_T */
  78   78  
  79   79  #endif /* #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) ... */
  80   80  
  81   81  /*
  82   82   * Select uses bit masks of file descriptors in longs.
  83   83   * These macros manipulate such bit fields.
  84   84   * FD_SETSIZE may be defined by the user, but the default here
  85      - * should be >= NOFILE (param.h).
       85 + * should be >= RLIM_FD_MAX.
  86   86   */
  87   87  #ifndef FD_SETSIZE
  88      -#ifdef _LP64
  89   88  #define FD_SETSIZE      65536
  90      -#else
  91      -#define FD_SETSIZE      1024
  92      -#endif  /* _LP64 */
  93      -#elif FD_SETSIZE > 1024 && !defined(_LP64)
  94      -#ifdef __PRAGMA_REDEFINE_EXTNAME
  95      -#pragma redefine_extname        select  select_large_fdset
  96      -#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
  97      -#pragma redefine_extname        pselect pselect_large_fdset
  98      -#endif
  99      -#else   /* __PRAGMA_REDEFINE_EXTNAME */
 100      -#define select  select_large_fdset
 101      -#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 102      -#define pselect pselect_large_fdset
 103      -#endif
 104      -#endif  /* __PRAGMA_REDEFINE_EXTNAME */
 105   89  #endif  /* FD_SETSIZE */
 106   90  
 107   91  #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
 108   92  typedef long    fd_mask;
 109   93  #endif
 110   94  typedef long    fds_mask;
 111   95  
 112   96  /*
 113   97   *  The value of _NBBY needs to be consistant with the value
 114   98   *  of NBBY in <sys/param.h>.
↓ open down ↓ 60 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX