From: Rich Felker Date: Fri, 20 Sep 2013 05:49:03 +0000 (-0400) Subject: correct the sysconf value for RTSIG_MAX X-Git-Tag: v0.9.14~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8e283df58eb8bff1aa2f8a99347e294c7f67cb9;p=oweals%2Fmusl.git correct the sysconf value for RTSIG_MAX this is the number of realtime signals available, not the maximum signal number or total number of signals. --- diff --git a/src/conf/sysconf.c b/src/conf/sysconf.c index 97fd4fad..12e81368 100644 --- a/src/conf/sysconf.c +++ b/src/conf/sysconf.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "syscall.h" #include "libc.h" @@ -44,7 +45,7 @@ long sysconf(int name) [_SC_MQ_PRIO_MAX] = OFLOW, [_SC_VERSION] = VER, [_SC_PAGE_SIZE] = OFLOW, - [_SC_RTSIG_MAX] = 63, /* ?? */ + [_SC_RTSIG_MAX] = _NSIG - 1 - 31 - 3, [_SC_SEM_NSEMS_MAX] = SEM_NSEMS_MAX, [_SC_SEM_VALUE_MAX] = OFLOW, [_SC_SIGQUEUE_MAX] = -1,