diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2017-04-19 10:57:57 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2017-04-19 10:57:57 +0000 |
| commit | 1824f3113216ab18794facb4bc1a30173fa34b35 (patch) | |
| tree | 69409d45adae5daae621458915252e558b740d18 /lib/libc | |
| parent | fa062f06779f738fc44645a9b7949f129da196ad (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -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 2b3acfb5db746..32416577ef1c3 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; |
