summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-10-30 14:27:18 +0000
committerasmodai <asmodai@FreeBSD.org>2000-10-30 14:27:18 +0000
commitbee55593c706bad038d460ce436d7de40b857d67 (patch)
tree78cc97b7ee0cd140ab0f69f818c03d6414b2077a /lib/libc
parentc7198e891ea10634c36f8439c306ee798b6ce0bb (diff)
downloadFreeBSD-src-bee55593c706bad038d460ce436d7de40b857d67.zip
FreeBSD-src-bee55593c706bad038d460ce436d7de40b857d67.tar.gz
Replace old sigaction struct declaration with the new one as present
in <sys/signal.h>. This might be a shortterm fix until the manpage is updated towards POSIX terminology. And maybe not... PR: 21542 Submitted by: Ronald F. Guilmette <rfg@monkeys.com>
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/sigaction.220
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
OpenPOWER on IntegriCloud