diff options
author | kib <kib@FreeBSD.org> | 2017-04-19 10:54:08 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-04-19 10:54:08 +0000 |
commit | 25a0824f18c3a272afc6ebcdeee12168b392ceef (patch) | |
tree | 98948b02d92106ea9bc9524fa93d5a2418e15f5b /lib | |
parent | 95c28456410dc47d95cd4c063e417bc3fd1a8555 (diff) | |
download | FreeBSD-src-25a0824f18c3a272afc6ebcdeee12168b392ceef.zip FreeBSD-src-25a0824f18c3a272afc6ebcdeee12168b392ceef.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 71f2321..d666c09 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -48,6 +48,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> #include "un-namespace.h" @@ -299,13 +300,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; |