summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-13 11:20:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-13 11:20:26 +0000
commit806f6529ad292c7df19c23a75acf8d9ca7a80d40 (patch)
treed57f64e8a96947918da55eb3fcdf8aeeae35cefa /lib
parent8e270becaf797043bc828c275616f7ec0c81f2dd (diff)
not ready for sa_sigaction...
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/sigaction.231
1 files changed, 2 insertions, 29 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 9984cc63260..8d90440a2be 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -43,16 +43,10 @@
.Fd #include <signal.h>
.Bd -literal
struct sigaction {
- union { /* signal handler */
- void (*__sa_handler) __P((int));
- void (*__sa_sigaction) __P((int, siginfo_t *, void *));
- } __sigaction_u;
+ void (*sa_handler)();
sigset_t sa_mask;
int sa_flags;
};
-
-#define sa_handler __sigaction_u.__sa_handler
-#define sa_sigaction __sigaction_u.__sa_sigaction
.Ed
.Ft int
.Fn sigaction "int sig" "const struct sigaction *act" "struct sigaction *oact"
@@ -146,14 +140,6 @@ until another
call is made, or an
.Xr execve 2
is performed.
-The value of
-.Fa sa_handler
-(or, if the
-.Dv SA_SIGINFO
-flag is set, the value of
-.Fa sa_sigaction
-instead) indicates what action should be performed when a
-signal arrives.
A signal-specific default action may be reset by
setting
.Fa sa_handler
@@ -316,14 +302,6 @@ is set to indicated the reason.
.Sh EXAMPLE
The handler routine can be declared:
.Bd -literal -offset indent
-void handler(sig)
-int sig;
-int nothing; /* this will be NULL */
-struct sigcontext *scp;
-.Pp
-.Ed
-or if SA_SIGINFO is enabled,
-.Bd -literal -offset indent
void handler(sig, sip, scp)
int sig;
siginfo_t *sip;
@@ -344,12 +322,7 @@ as described in
.Pa <sys/siginfo.h> .
If
.Dv SA_SIGINFO
-is not set, this pointer will be NULL instead.
-The function specified in
-.Fa sa_sigaction
-will be called instead of the function specified by
-.Fa sa_handler
-(Note that in some implementations these are in fact the same).
+is not set, this is NULL.
.Fa Scp
is a pointer to the
.Fa sigcontext