From: Samuel Thibault Date: Wed, 21 Jul 2021 23:23:02 +0000 (+0000) Subject: posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support X-Git-Tag: glibc-2.34~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=094ed6b0cc4ef239d197881247431ba37fac0803;p=thirdparty%2Fglibc.git posix: Add sysconf(_SC_{MIN,}SIGSTKSZ) support --- diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c index 5fb3fb6c1c3..33e63390200 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 } }