summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/select.h
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2013-06-20 00:27:41 +0000
committerRichard Lowe <richlowe@richlowe.net>2017-01-25 12:40:33 -0500
commit2209d3c850d80c0681948f966816f28f767575cb (patch)
treec6b8f9f9f8f3c87f002c2ed6c50eca5304a95da0 /usr/src/uts/common/sys/select.h
parent2fc78efe68572a35081bd6d8b1deb2560619c3e6 (diff)
downloadillumos-joyent-2209d3c850d80c0681948f966816f28f767575cb.tar.gz
3772 consider raising default descriptor soft limit
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Juraj Lutter <juraj@lutter.sk> Reviewed by: Patrick Mooney <pmooney@pfmooney.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/uts/common/sys/select.h')
-rw-r--r--usr/src/uts/common/sys/select.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/usr/src/uts/common/sys/select.h b/usr/src/uts/common/sys/select.h
index aa6ef3185e..e4dd11968d 100644
--- a/usr/src/uts/common/sys/select.h
+++ b/usr/src/uts/common/sys/select.h
@@ -82,26 +82,10 @@ typedef struct { /* signal set type */
* Select uses bit masks of file descriptors in longs.
* These macros manipulate such bit fields.
* FD_SETSIZE may be defined by the user, but the default here
- * should be >= NOFILE (param.h).
+ * should be >= RLIM_FD_MAX.
*/
#ifndef FD_SETSIZE
-#ifdef _LP64
#define FD_SETSIZE 65536
-#else
-#define FD_SETSIZE 1024
-#endif /* _LP64 */
-#elif FD_SETSIZE > 1024 && !defined(_LP64)
-#ifdef __PRAGMA_REDEFINE_EXTNAME
-#pragma redefine_extname select select_large_fdset
-#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
-#pragma redefine_extname pselect pselect_large_fdset
-#endif
-#else /* __PRAGMA_REDEFINE_EXTNAME */
-#define select select_large_fdset
-#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
-#define pselect pselect_large_fdset
-#endif
-#endif /* __PRAGMA_REDEFINE_EXTNAME */
#endif /* FD_SETSIZE */
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)