about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-07-21 23:23:02 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-07-22 01:24:52 +0200
commit094ed6b0cc4ef239d197881247431ba37fac0803 (patch)
tree707de4b70049e8f299dbe9ca5de8a33ce469b87c /sysdeps/posix
parent63c60cff12a956a090d9850dec68f176cb34ba7b (diff)
downloadglibc-094ed6b0cc4ef239d197881247431ba37fac0803.tar.gz
glibc-094ed6b0cc4ef239d197881247431ba37fac0803.tar.xz
glibc-094ed6b0cc4ef239d197881247431ba37fac0803.zip
posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/sysconf.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index 5fb3fb6c1c..33e6339020 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -31,6 +31,7 @@
 #include <sys/types.h>
 #include <sys/uio.h>
 #include <regex.h>
+#include <signal.h>
 #include <sysconf-pthread_stack_min.h>
 
 #define NEED_SPEC_ARRAY 0
@@ -1190,6 +1191,20 @@ __sysconf (int name)
 #else
       return -1;
 #endif
+
+    case _SC_SIGSTKSZ:
+#ifdef SIGSTKSZ
+      return SIGSTKSZ;
+#else
+      return -1;
+#endif
+
+    case _SC_MINSIGSTKSZ:
+#ifdef MINSIGSTKSZ
+      return MINSIGSTKSZ;
+#else
+      return -1;
+#endif
     }
 }