tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sysconf(_SC_RTSIG_MAX)
Patch attached. Needed this for sudo update.
Please tell me how I am wrong.
Thanks.
Index: sys/sys/unistd.h
===================================================================
RCS file: /cvsroot/src/sys/sys/unistd.h,v
retrieving revision 1.61
diff -u -r1.61 unistd.h
--- sys/sys/unistd.h 4 Aug 2016 06:43:43 -0000 1.61
+++ sys/sys/unistd.h 14 Oct 2019 20:35:45 -0000
@@ -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
Index: lib/libc/gen/sysconf.c
===================================================================
RCS file: /cvsroot/src/lib/libc/gen/sysconf.c,v
retrieving revision 1.41
diff -u -r1.41 sysconf.c
--- lib/libc/gen/sysconf.c 4 Aug 2016 06:43:43 -0000 1.41
+++ lib/libc/gen/sysconf.c 14 Oct 2019 20:35:48 -0000
@@ -339,6 +339,8 @@
return _GETPW_R_SIZE_MAX;
/* Unsorted */
+ case _SC_RTSIG_MAX:
+ return SIGRTMAX;
case _SC_HOST_NAME_MAX:
return MAXHOSTNAMELEN;
case _SC_PASS_MAX:
Home |
Main Index |
Thread Index |
Old Index