Module Name: src Committed By: maya Date: Wed Oct 16 20:43:18 UTC 2019
Modified Files: src/lib/libc/gen: sysconf.c src/sys/sys: unistd.h Log Message: Provide sysconf(_SC_RTSIG_MAX) = SIGRTMAX - SIGRTMIN Thanks nros@ for the correct definition To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/lib/libc/gen/sysconf.c cvs rdiff -u -r1.61 -r1.62 src/sys/sys/unistd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/sysconf.c diff -u src/lib/libc/gen/sysconf.c:1.41 src/lib/libc/gen/sysconf.c:1.42 --- src/lib/libc/gen/sysconf.c:1.41 Thu Aug 4 06:43:43 2016 +++ src/lib/libc/gen/sysconf.c Wed Oct 16 20:43:18 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: sysconf.c,v 1.41 2016/08/04 06:43:43 christos Exp $ */ +/* $NetBSD: sysconf.c,v 1.42 2019/10/16 20:43:18 maya 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.42 2019/10/16 20:43:18 maya Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -339,6 +339,8 @@ sysconf(int name) return _GETPW_R_SIZE_MAX; /* Unsorted */ + case _SC_RTSIG_MAX: + return SIGRTMAX - SIGRTMIN; case _SC_HOST_NAME_MAX: return MAXHOSTNAMELEN; case _SC_PASS_MAX: Index: src/sys/sys/unistd.h diff -u src/sys/sys/unistd.h:1.61 src/sys/sys/unistd.h:1.62 --- src/sys/sys/unistd.h:1.61 Thu Aug 4 06:43:43 2016 +++ src/sys/sys/unistd.h Wed Oct 16 20:43:18 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.61 2016/08/04 06:43:43 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.62 2019/10/16 20:43:18 maya Exp $ */ /* * Copyright (c) 1989, 1993 @@ -320,6 +320,7 @@ #define _SC_DELAYTIMER_MAX 92 #define _SC_SIGQUEUE_MAX 93 #define _SC_REALTIME_SIGNALS 94 +#define _SC_RTSIG_MAX 95 /* Extensions found in Solaris and Linux. */ #define _SC_PHYS_PAGES 121