summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2019-12-18 20:20:17 +0000
committermartin <martin@NetBSD.org>2019-12-18 20:20:17 +0000
commit3ba32e16ccb264c6f6d0e5df68297931014b74f5 (patch)
treee8a20aca4b0dba6c8384a9cb25d8861bde95d558 /lib
parent3a378a093b879118c39adb23d2d09a0b2f484f8a (diff)
Pull up following revision(s) (requested by joerg in ticket #572):
sys/kern/uipc_sem.c: revision 1.56 lib/libc/gen/sysconf.c: revision 1.43 PR 54619: Remove semaphore limit introduce as part of GSoC 2016 with _SC_SEM_NSEMS_MAX. Report no limit for getconf(3). The ressource is naturally limited by the backing file descriptor, so no separate limit is necessary. Keep the accounting for debugging as it is part of the sysctl ABI exposed by the kernel.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/sysconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c
index f93ad83187b..21f805b40d6 100644
--- a/lib/libc/gen/sysconf.c
+++ b/lib/libc/gen/sysconf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sysconf.c,v 1.41 2016/08/04 06:43:43 christos Exp $ */
+/* $NetBSD: sysconf.c,v 1.41.16.1 2019/12/18 20:20:17 martin Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94";
#else
-__RCSID("$NetBSD: sysconf.c,v 1.41 2016/08/04 06:43:43 christos Exp $");
+__RCSID("$NetBSD: sysconf.c,v 1.41.16.1 2019/12/18 20:20:17 martin Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -422,7 +422,7 @@ yesno: if (sysctl(mib, mib_len, &value, &len, NULL, 0) == -1)
case _SC_TIMER_MAX:
return _POSIX_TIMER_MAX;
case _SC_SEM_NSEMS_MAX:
- return _POSIX_SEM_NSEMS_MAX;
+ return LONG_MAX;
case _SC_CPUTIME:
return _POSIX_CPUTIME;
case _SC_THREAD_CPUTIME: