Deleted Added
full compact
psignal.3 (40738) psignal.3 (47289)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 22 unchanged lines hidden (view full) ---

31.\"
32.\" @(#)psignal.3 8.2 (Berkeley) 2/27/95
33.\"
34.Dd February 27, 1995
35.Dt PSIGNAL 3
36.Os BSD 4.2
37.Sh NAME
38.Nm psignal ,
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 22 unchanged lines hidden (view full) ---

31.\"
32.\" @(#)psignal.3 8.2 (Berkeley) 2/27/95
33.\"
34.Dd February 27, 1995
35.Dt PSIGNAL 3
36.Os BSD 4.2
37.Sh NAME
38.Nm psignal ,
39.Nm strsignal ,
39.Nm sys_siglist ,
40.Nm sys_signame
41.Nd system signal messages
42.Sh SYNOPSIS
43.Fd #include <signal.h>
44.Ft void
45.Fn psignal "unsigned sig" "const char *s"
40.Nm sys_siglist ,
41.Nm sys_signame
42.Nd system signal messages
43.Sh SYNOPSIS
44.Fd #include <signal.h>
45.Ft void
46.Fn psignal "unsigned sig" "const char *s"
47.Ft "char *"
48.Fn strsignal "unsigned sig"
46.Vt extern const char * const sys_siglist[];
47.Vt extern const char * const sys_signame[];
48.Sh DESCRIPTION
49The
50.Fn psignal
49.Vt extern const char * const sys_siglist[];
50.Vt extern const char * const sys_signame[];
51.Sh DESCRIPTION
52The
53.Fn psignal
51function locates the descriptive message
52string for the given signal number
54and
55.Fn strsignal
56functions locate the descriptive message
57string for a signal number.
58.Pp
59The
60.Fn strsignal
61function accepts a signal number argument
53.Fa sig
62.Fa sig
54and writes it to the standard error.
63and returns a pointer to the corresponding message string.
55.Pp
64.Pp
65The
66.Fn psignal
67function accepts an signal number argument
68.Fa sig
69and writes it to the standard error.
56If the argument
57.Fa s
58is
59.Pf non- Dv NULL
60and does not point to the null character,
61.Fa s
62is written to the standard error file descriptor
63prior to the message string,

--- 17 unchanged lines hidden (view full) ---

81The defined variable
82.Dv NSIG
83contains a count of the strings in
84.Va sys_siglist
85and
86.Va sys_signame .
87.Sh SEE ALSO
88.Xr sigaction 2 ,
70If the argument
71.Fa s
72is
73.Pf non- Dv NULL
74and does not point to the null character,
75.Fa s
76is written to the standard error file descriptor
77prior to the message string,

--- 17 unchanged lines hidden (view full) ---

95The defined variable
96.Dv NSIG
97contains a count of the strings in
98.Va sys_siglist
99and
100.Va sys_signame .
101.Sh SEE ALSO
102.Xr sigaction 2 ,
89.Xr perror 3
103.Xr perror 3 ,
104.Xr strerror 3
90.Sh HISTORY
91The
92.Fn psignal
93function appeared in
94.Bx 4.2 .
105.Sh HISTORY
106The
107.Fn psignal
108function appeared in
109.Bx 4.2 .