posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 21 Jul 2021 23:23:02 +0000 (23:23 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 21 Jul 2021 23:24:52 +0000 (01:24 +0200)
sysdeps/posix/sysconf.c

index 5fb3fb6c1c30ddbaa0ab51f1b27ac7393c6062d9..33e6339020094e37f6a5d9c11a6bde5dc5a3eef5 100644 (file)
@@ -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
     }
 }