summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-08-05 22:04:20 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-08-05 22:04:20 +0000
commitd26a6f2ceba506b047aaf1cca3a8062fc2e764d8 (patch)
tree61a15aec8ac9b923075a9ae1e683c9d5a36267ae /lib/libc/sys
parentd2df956d3baab257d9703ab83580e0830297c427 (diff)
formatting, grammar, and typo correction
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/sigaction.224
1 files changed, 13 insertions, 11 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 9dedc30e33e..22678515836 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaction.2,v 1.22 2000/08/05 01:09:51 deraadt Exp $
+.\" $OpenBSD: sigaction.2,v 1.23 2000/08/05 22:04:19 pjanzen Exp $
.\" $NetBSD: sigaction.2,v 1.7 1995/10/12 15:41:16 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -339,8 +339,9 @@ or
Any attempt to do so will be silently ignored.
.Pp
The following functions are either reentrant or not interruptible
-by signals and are async-signal safe. Therefore applications may
-invoke them, without restriction, from signal-catching functions:
+by signals and are async-signal safe.
+Therefore applications may invoke them, without restriction, from
+signal-catching functions:
.Pp
.Bd -ragged -offset indent
.Xr _exit 2 ,
@@ -433,14 +434,15 @@ invoke them, without restriction, from signal-catching functions:
.\" .Fn timer_settime .
.Ed
.Pp
-All functions not in the above lists are considered to be unsafe
-with respect to signals. That is to say, the behaviour of such
-functions when called from a signal handler is undefined.
+All functions not in the above list are considered to be unsafe
+with respect to signals.
+That is to say, the behaviour of such functions when called from a
+signal handler is undefined.
.Pp
-As well, it is advised that signal handlers be careful to gaurd against
+As well, it is advised that signal handlers guard against
modification of the external symbol
-.Va errno ,
-by the above functions, and consider saving it at entry and restoring
+.Va errno
+by the above functions, saving it at entry and restoring
it on return, thus:
.Bd -literal -offset indent
void
@@ -454,8 +456,8 @@ handler(sig)
.Ed
.Pp
.Sh RETURN VALUES
-A 0 value indicates that the call succeeded. A \-1 return value
-indicates an error occurred and
+A 0 value indicates that the call succeeded.
+A \-1 return value indicates an error occurred and
.Va errno
is set to indicate the reason.
.Sh EXAMPLE