Skip to content

Commit 626f518

Browse files
committed
Add missing SA_NODEFER value to sigaction.h
1 parent e2a0246 commit 626f518

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

include/bits/sigaction.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,24 @@
2828
#define SIG_SETMASK 2
2929

3030
#define SA_NOCLDSTOP 0x0001 /* don't send SIGCHLD when they stop */
31+
#define SA_NODEFER 0x0010 /* don't mask the signal we're delivering */
3132
#define SA_RESETHAND 0x8000 /* Reset to SIG_DFL on entry to handler. */
3233

34+
#ifdef __USE_MISC
35+
/* Some aliases for the SA_ constants. */
36+
# define SA_NOMASK SA_NODEFER
37+
# define SA_ONESHOT SA_RESETHAND
38+
#endif
39+
40+
#if 0
41+
/* NYI: */
42+
#define SA_NOCLDWAIT 0x0002 /* do not generate zombies on unwaited child */
43+
#define SA_SIGINFO 0x0040 /* Invoke signal-catching function with three arguments instead of one. */
44+
#define SA_ONSTACK 0x2000 /* take signal on signal stack */
45+
# define SA_STACK SA_ONSTACK
46+
#define SA_RESTART 0x4000 /* restart system on signal return */
47+
#endif
48+
3349
struct sigaction {
3450
__sighandler_t sa_handler; /* Pointer to signal handler. */
3551
__sigset_t sa_mask; /* Additional signals masked during

0 commit comments

Comments
 (0)