diff options
author | kib <kib@FreeBSD.org> | 2017-04-19 10:57:57 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-04-19 10:57:57 +0000 |
commit | b58072af12f3843d01a7007ed2bfc1430b9d1c8f (patch) | |
tree | 69409d45adae5daae621458915252e558b740d18 /lib | |
parent | 78ca5593b776073a425d57776376171a3ecdc2ab (diff) | |
download | FreeBSD-src-b58072af12f3843d01a7007ed2bfc1430b9d1c8f.zip FreeBSD-src-b58072af12f3843d01a7007ed2bfc1430b9d1c8f.tar.gz |
MFC r316739:
Fix reporting of _SC_SEM_NSEMS_MAX and _SC_SEM_VALUE_MAX.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/sysconf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c index 2b3acfb..3241657 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$"); #include <limits.h> #include <paths.h> #include <pthread.h> /* we just need the limits */ +#include <semaphore.h> #include <time.h> #include <unistd.h> @@ -298,13 +299,9 @@ do_NAME_MAX: mib[1] = CTL_P1003_1B_RTSIG_MAX; goto yesno; case _SC_SEM_NSEMS_MAX: - mib[0] = CTL_P1003_1B; - mib[1] = CTL_P1003_1B_SEM_NSEMS_MAX; - goto yesno; + return (-1); case _SC_SEM_VALUE_MAX: - mib[0] = CTL_P1003_1B; - mib[1] = CTL_P1003_1B_SEM_VALUE_MAX; - goto yesno; + return (SEM_VALUE_MAX); case _SC_SIGQUEUE_MAX: mib[0] = CTL_P1003_1B; mib[1] = CTL_P1003_1B_SIGQUEUE_MAX; |