summaryrefslogtreecommitdiff
path: root/src/conf
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-09-20 01:49:03 -0400
committerRich Felker <dalias@aerifal.cx>2013-09-20 01:49:03 -0400
commitd8e283df58eb8bff1aa2f8a99347e294c7f67cb9 (patch)
tree1b3d36bfa755ca08a7549fc20204ab2527718ba5 /src/conf
parent0753b1faf002249dc35ef09cb4769d66fa3a1a86 (diff)
downloadmusl-d8e283df58eb8bff1aa2f8a99347e294c7f67cb9.tar.gz
musl-d8e283df58eb8bff1aa2f8a99347e294c7f67cb9.tar.bz2
musl-d8e283df58eb8bff1aa2f8a99347e294c7f67cb9.tar.xz
musl-d8e283df58eb8bff1aa2f8a99347e294c7f67cb9.zip
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.
Diffstat (limited to 'src/conf')
-rw-r--r--src/conf/sysconf.c3
1 files changed, 2 insertions, 1 deletions
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 <limits.h>
#include <errno.h>
#include <sys/resource.h>
+#include <signal.h>
#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,