* [hurd,commited] posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support
@ 2021-07-21 23:25 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2021-07-21 23:25 UTC (permalink / raw)
To: libc-alpha; +Cc: commit-hurd
---
sysdeps/posix/sysconf.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
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
}
}
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-21 23:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 23:25 [hurd,commited] posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).