From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id 8E5853848407; Wed, 21 Jul 2021 23:25:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E5853848407 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support X-Act-Checkin: glibc X-Git-Author: Samuel Thibault X-Git-Refname: refs/heads/master X-Git-Oldrev: 63c60cff12a956a090d9850dec68f176cb34ba7b X-Git-Newrev: 094ed6b0cc4ef239d197881247431ba37fac0803 Message-Id: <20210721232504.8E5853848407@sourceware.org> Date: Wed, 21 Jul 2021 23:25:04 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2021 23:25:04 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=094ed6b0cc4ef239d197881247431ba37fac0803 commit 094ed6b0cc4ef239d197881247431ba37fac0803 Author: Samuel Thibault Date: Wed Jul 21 23:23:02 2021 +0000 posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support Diff: --- 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 } }