From 0456c39519f912526779ad975b1a11023e8d9c57 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 14 May 2017 12:35:46 +0000 Subject: [PATCH] Formatting and punctuation improvements. --- lib/libc/gen/signalname.3 | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/libc/gen/signalname.3 b/lib/libc/gen/signalname.3 index 55c03865ca23..38d0a15a9560 100644 --- a/lib/libc/gen/signalname.3 +++ b/lib/libc/gen/signalname.3 @@ -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