Module Name: src Committed By: wiz Date: Sun May 14 12:35:47 UTC 2017
Modified Files: src/lib/libc/gen: signalname.3 Log Message: Formatting and punctuation improvements. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/signalname.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/signalname.3 diff -u src/lib/libc/gen/signalname.3:1.1 src/lib/libc/gen/signalname.3:1.2 --- src/lib/libc/gen/signalname.3:1.1 Tue May 9 11:14:16 2017 +++ src/lib/libc/gen/signalname.3 Sun May 14 12:35:46 2017 @@ -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