1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" This replaces an earlier man page written by Walter Harms
26 .\" <walter.harms@informatik.uni-oldenburg.de>.
27 .TH GSIGNAL 3 2020-04-11 "" "Linux Programmer's Manual"
29 gsignal, ssignal \- software signal facility
32 .B #include <signal.h>
34 .B typedef void (*sighandler_t)(int);
36 .BI "int gsignal(int " signum );
38 .BI "sighandler_t ssignal(int " signum ", sighandler_t " action );
42 Feature Test Macro Requirements for glibc (see
43 .BR feature_test_macros (7)):
51 Glibc 2.19 and earlier:
55 Don't use these functions under Linux.
56 Due to a historical mistake, under Linux these functions are
63 Elsewhere, on System V-like systems, these functions implement
64 software signaling, entirely independent of the classical
71 defines the action to take when the software signal with
74 is raised using the function
76 and returns the previous such action or
80 does the following: if no action (or the action
85 then it does nothing and returns 0.
90 then it does nothing and returns 1.
91 Otherwise, it resets the action to
94 the action function with argument
96 and returns the value returned by that function.
97 The range of possible values
99 varies (often 1\(en15 or 1\(en17).
101 For an explanation of the terms used in this section, see
109 Interface Attribute Value
112 T} Thread safety MT-Safe
115 T} Thread safety MT-Safe sigintr
121 These functions are available under AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
122 They are called obsolete under most of these systems, and are
126 Some systems also have