summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Yanovich <jaredy@cvs.openbsd.org>2005-10-09 23:03:09 +0000
committerJared Yanovich <jaredy@cvs.openbsd.org>2005-10-09 23:03:09 +0000
commit906b9ccf9356337ef0d295829eeb9b5309a00a5d (patch)
tree848dcf162c3b609a9790d366b3632cfa0f5e68ac
parent8c7d3697f8b701616488ca088a2149b25d2efced (diff)
ANSI function prototypes in examples; ok otto
-rw-r--r--lib/libc/sys/sigaction.212
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 45e12390858..4f6b1a20e5a 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaction.2,v 1.42 2005/09/06 22:13:19 jmc Exp $
+.\" $OpenBSD: sigaction.2,v 1.43 2005/10/09 23:03:08 jaredy Exp $
.\" $NetBSD: sigaction.2,v 1.7 1995/10/12 15:41:16 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -459,7 +459,7 @@ by the above functions, saving it at entry and restoring
it on return, thus:
.Bd -literal -offset indent
void
-handler(sig)
+handler(int sig)
{
int save_errno = errno;
@@ -476,8 +476,7 @@ is set to indicate the reason.
The handler routine can be declared:
.Bd -literal -offset indent
void
-handler(sig)
- int sig;
+handler(int sig)
.Pp
.Ed
If the
@@ -485,10 +484,7 @@ If the
option is enabled, the canonical way to declare it is:
.Bd -literal -offset indent
void
-handler(sig, sip, scp)
- int sig;
- siginfo_t *sip;
- struct sigcontext *scp;
+handler(int sig, siginfo_t *sip, struct sigcontext *scp)
.Ed
.Pp
Here