diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/sigaction.2 | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 641f543..17a0e5e 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -43,18 +43,14 @@ .Sh SYNOPSIS .Fd #include <signal.h> .Bd -literal -struct sigaction { - /* - * Signal handler function if flag SA_SIGINFO is not used and for - * SIG_DFL and SIG_IGN. - */ - void (*sa_handler)(int); - - /* Signal handler function if flag SA_SIGINFO is used */ - void (*sa_sigaction)(int, siginfo_t *, void *); - - sigset_t sa_mask; /* signal mask to apply */ - int sa_flags; /* see signal options below */ +struct sigaction { + union { + void (*__sa_handler) __P((int)); + void (*__sa_sigaction) __P((int, struct __siginfo *, + void *)); + } __sigaction_u; /* signal handler */ + int sa_flags; /* see signal options below */ + sigset_t sa_mask; /* signal mask to apply */ }; .Ed .Ft int |