Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Provide sysconf(_SC_RTSIG_MAX) = SIGRTMAX - SIGRTMIN
details: https://anonhg.NetBSD.org/src/rev/b9590236cf43
branches: trunk
changeset: 966171:b9590236cf43
user: maya <maya%NetBSD.org@localhost>
date: Wed Oct 16 20:43:18 2019 +0000
description:
Provide sysconf(_SC_RTSIG_MAX) = SIGRTMAX - SIGRTMIN
Thanks nros@ for the correct definition
diffstat:
lib/libc/gen/sysconf.c | 6 ++++--
sys/sys/unistd.h | 3 ++-
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r bcb21e6f0dbe -r b9590236cf43 lib/libc/gen/sysconf.c
--- a/lib/libc/gen/sysconf.c Wed Oct 16 19:52:08 2019 +0000
+++ b/lib/libc/gen/sysconf.c Wed Oct 16 20:43:18 2019 +0000
@@ -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 @@
return _GETPW_R_SIZE_MAX;
/* Unsorted */
+ case _SC_RTSIG_MAX:
+ return SIGRTMAX - SIGRTMIN;
case _SC_HOST_NAME_MAX:
return MAXHOSTNAMELEN;
case _SC_PASS_MAX:
diff -r bcb21e6f0dbe -r b9590236cf43 sys/sys/unistd.h
--- a/sys/sys/unistd.h Wed Oct 16 19:52:08 2019 +0000
+++ b/sys/sys/unistd.h Wed Oct 16 20:43:18 2019 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index