unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org
Cc: commit-hurd@gnu.org
Subject: [hurd,commited] posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support
Date: Thu, 22 Jul 2021 01:25:13 +0200	[thread overview]
Message-ID: <20210721232513.3682968-1-samuel.thibault@ens-lyon.org> (raw)

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


                 reply	other threads:[~2021-07-21 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210721232513.3682968-1-samuel.thibault@ens-lyon.org \
    --to=samuel.thibault@ens-lyon.org \
    --cc=commit-hurd@gnu.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).