CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/08/29 15:46:29
Modified files:
lib/libc/gen : sysconf.c
Log message:
Fix _SC_CHILD_MAX, _SC_OPEN_MAX, and _SC_STREAM_MAX to correctly
handle rlim_cur set to RLIM_INFINITY or values greater than LONG_MAX,
as unlikely as those are to happen. Further limit _SC_STREAM_MAX to
at most SHRT_MAX, because struct __sFILE uses a short int for storing
the file descriptor.
While here, also remove a dead label that Clang complains about.
>From FreeBSD via Brad.