File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 139
139
140
140
#if __POSIX_VISIBLE >= 202405
141
141
#define GETENTROPY_MAX 256
142
+ #define NSIG_MAX 128 /* _SIG_MAXSIG from <signal.h> */
142
143
#endif
143
144
144
145
#include <sys/limits.h>
Original file line number Diff line number Diff line change 36
36
#include <sys/unistd.h>
37
37
#include <sys/_null.h>
38
38
#include <sys/_types.h>
39
+ #include <sys/_sigset.h>
39
40
40
41
#if !defined(_STANDALONE ) && defined(_FORTIFY_SOURCE ) && _FORTIFY_SOURCE > 0
41
42
#include <ssp/unistd.h>
@@ -294,6 +295,10 @@ typedef __useconds_t useconds_t;
294
295
#define _SC_CPUSET_SIZE 122
295
296
#endif
296
297
298
+ #if __POSIX_VISIBLE >= 202405
299
+ #define _SC_NSIG 123
300
+ #endif
301
+
297
302
/* Extensions found in Solaris and Linux. */
298
303
#define _SC_PHYS_PAGES 121
299
304
Original file line number Diff line number Diff line change @@ -286,6 +286,8 @@ sysconf(int name)
286
286
mib [0 ] = CTL_P1003_1B ;
287
287
mib [1 ] = CTL_P1003_1B_MQ_OPEN_MAX ;
288
288
goto yesno ;
289
+ case _SC_NSIG :
290
+ return (_SIG_MAXSIG );
289
291
case _SC_PAGESIZE :
290
292
return (getpagesize ());
291
293
case _SC_RTSIG_MAX :
You can’t perform that action at this time.
0 commit comments