[hurd,commited] posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support

Message ID 20210721232513.3682968-1-samuel.thibault@ens-lyon.org
State Committed, archived
Headers
Series [hurd,commited] posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support |

Checks

Context Check Description
dj/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent

Commit Message

Samuel Thibault July 21, 2021, 11:25 p.m. UTC
  ---
 sysdeps/posix/sysconf.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
  

Patch

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
     }
 }