From patchwork Wed Jul 21 23:25:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 44450 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 708AA3938C13 for ; Wed, 21 Jul 2021 23:25:28 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id B39413848407 for ; Wed, 21 Jul 2021 23:25:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B39413848407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A697A921; Thu, 22 Jul 2021 01:25:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a2z0GhromNgY; Thu, 22 Jul 2021 01:25:15 +0200 (CEST) Received: from begin (unknown [IPv6:2a01:cb19:956:1b00:de41:a9ff:fe47:ec49]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DC94A4FD; Thu, 22 Jul 2021 01:25:14 +0200 (CEST) Received: from samy by begin with local (Exim 4.94.2) (envelope-from ) id 1m6LaT-00FS7T-Nh; Thu, 22 Jul 2021 01:25:13 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd,commited] posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support Date: Thu, 22 Jul 2021 01:25:13 +0200 Message-Id: <20210721232513.3682968-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spamd-Bar: ++ X-Rspamd-Server: hera Authentication-Results: hera.aquilenet.fr X-Rspamd-Queue-Id: A697A921 X-Spamd-Result: default: False [2.98 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; RCVD_COUNT_THREE(0.00)[3]; MID_CONTAINS_FROM(1.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; BAYES_HAM(-2.02)[95.17%] X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: commit-hurd@gnu.org Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" --- 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 #include #include +#include #include #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 } }