]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
psignal.3, strsignal.3: Consolidate information on 'sys_siglist' in one page (strsign...
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 2 Oct 2020 10:50:00 +0000 (12:50 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 2 Oct 2020 10:57:45 +0000 (12:57 +0200)
Through some accident, 'sys_siglist' has been documented in
two different pages. Consolidate the information to one page
(strsignal(3)) and add 'sys_siglist" to the NAME line of that
page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/psignal.3
man3/strsignal.3

index b313037b5ba05c95e4867c98d20f8dd4c15c85c4..dd9d7802ad7723d5b0e9232808a499d2f9b3293e 100644 (file)
@@ -36,8 +36,6 @@ psignal, psiginfo \- print signal description
 .PP
 .BI "void psignal(int " sig ", const char *" s );
 .BI "void psiginfo(const siginfo_t *" pinfo ", const char *" s );
-.PP
-.BI "extern const char *const " sys_siglist [];
 .fi
 .PP
 .RS -4
@@ -53,12 +51,6 @@ Feature Test Macro Requirements for glibc (see
 .br
 .BR psiginfo ():
 _POSIX_C_SOURCE\ >=\ 200809L
-.br
-.IR sys_siglist :
-    Since glibc 2.19:
-        _DEFAULT_SOURCE
-    Glibc 2.19 and earlier:
-        _BSD_SOURCE
 .SH DESCRIPTION
 The
 .BR psignal ()
@@ -89,9 +81,6 @@ and the user ID and process ID of the sender, for signals set using
 .BR kill (2)
 or
 .BR sigqueue (3)).
-.PP
-The array \fIsys_siglist\fP holds the signal description strings
-indexed by signal number.
 .SH RETURN VALUE
 The
 .BR psignal ()
index eb7aff3c97046c2627ff530bcea9c1f1559a07e3..465e1dc0bcbb7966656f222409b768d03c8013d0 100644 (file)
@@ -29,7 +29,7 @@
 .\" Modified Sat Jul 24 17:59:03 1993 by Rik Faith (faith@cs.unc.edu)
 .TH STRSIGNAL 3  2017-09-15 "GNU" "Linux Programmer's Manual"
 .SH NAME
-strsignal \- return string describing signal
+strsignal, sys_siglist \- return string describing signal
 .SH SYNOPSIS
 .nf
 .B #include <string.h>
@@ -55,6 +55,12 @@ _POSIX_C_SOURCE\ >=\ 200809L
 Before glibc 2.10:
 _GNU_SOURCE
 .RE
+.br
+.IR sys_siglist :
+    Since glibc 2.19:
+        _DEFAULT_SOURCE
+    Glibc 2.19 and earlier:
+        _BSD_SOURCE
 .ad
 .PD
 .SH DESCRIPTION
@@ -72,8 +78,7 @@ holds the signal description strings
 indexed by signal number.
 The
 .BR strsignal ()
-function should be
-used if possible instead of this array.
+function should be used instead of this array.
 .SH RETURN VALUE
 The
 .BR strsignal ()