From bee55593c706bad038d460ce436d7de40b857d67 Mon Sep 17 00:00:00 2001 From: asmodai Date: Mon, 30 Oct 2000 14:27:18 +0000 Subject: Replace old sigaction struct declaration with the new one as present in . This might be a shortterm fix until the manpage is updated towards POSIX terminology. And maybe not... PR: 21542 Submitted by: Ronald F. Guilmette --- lib/libc/sys/sigaction.2 | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'lib/libc') 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 .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 -- cgit v1.1