Formatting and punctuation improvements.
This commit is contained in:
parent
3cacbf2b8b
commit
0456c39519
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: signalname.3,v 1.1 2017/05/09 11:14:16 kre Exp $
|
||||
.\" $NetBSD: signalname.3,v 1.2 2017/05/14 12:35:46 wiz Exp $
|
||||
.\"
|
||||
.\" Available to all and sundry, without restriction on use, or other
|
||||
.\" limitations, and without fee. Also without any warranty of fitness
|
||||
@ -20,8 +20,8 @@
|
||||
.Dt SIGNALNAME 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm signalname
|
||||
.Nm signalnumber
|
||||
.Nm signalname ,
|
||||
.Nm signalnumber ,
|
||||
.Nm signalnext
|
||||
.Nd convert between signal numbers and names
|
||||
.Sh LIBRARY
|
||||
@ -43,16 +43,21 @@ and returns the name of that signal.
|
||||
The name returned is locale independent,
|
||||
and can be the string representation of one of the
|
||||
signal names from
|
||||
.In signal.h
|
||||
such as SIGHUP, SIGSTOP, SIGKILL,
|
||||
.In signal.h
|
||||
such as
|
||||
.Dv SIGHUP ,
|
||||
.Dv SIGSTOP ,
|
||||
.Dv SIGKILL ,
|
||||
or some similar name,
|
||||
but does not contain the leading
|
||||
.Dq SIG
|
||||
.Dq Dv SIG
|
||||
prefix.
|
||||
.Pp
|
||||
The return value of
|
||||
.Fn signalname
|
||||
is NULL if
|
||||
is
|
||||
.Dv NULL
|
||||
if
|
||||
.Fa sig
|
||||
does not represent a valid signal number,
|
||||
or if the signal number given has no name.
|
||||
@ -66,7 +71,7 @@ The
|
||||
.Fa name
|
||||
is handled in a case-insensitive manner.
|
||||
Any leading
|
||||
.Dq SIG
|
||||
.Dq Dv SIG
|
||||
prefix in
|
||||
.Fa name
|
||||
is ignored.
|
||||
@ -90,7 +95,7 @@ The
|
||||
.Fn signalnext
|
||||
function returns minus one (\-1) on error, if the given signal
|
||||
.Fa sig
|
||||
is neither a valid signal number, nor zero.
|
||||
is neither a valid signal number nor zero.
|
||||
It returns zero when the input signal number,
|
||||
.Fa sig ,
|
||||
is the biggest available signal number.
|
||||
@ -126,7 +131,7 @@ is invalid.
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn signalname ,
|
||||
.Fn signalnext
|
||||
.Fn signalnext ,
|
||||
and
|
||||
.Fn signalnumber
|
||||
functions first appeared in
|
||||
|
Loading…
Reference in New Issue
Block a user