1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" This replaces an earlier man page written by Walter Harms
6 .\" <walter.harms@informatik.uni-oldenburg.de>.
7 .TH GSIGNAL 3 2021-03-22 "Linux man-pages (unreleased)"
9 gsignal, ssignal \- software signal facility
12 .RI ( libc ", " \-lc )
15 .B #include <signal.h>
17 .B typedef void (*sighandler_t)(int);
19 .BI "int gsignal(int " signum );
21 .BI "sighandler_t ssignal(int " signum ", sighandler_t " action );
25 Feature Test Macro Requirements for glibc (see
26 .BR feature_test_macros (7)):
34 Glibc 2.19 and earlier:
38 Don't use these functions under Linux.
39 Due to a historical mistake, under Linux these functions are
46 Elsewhere, on System V-like systems, these functions implement
47 software signaling, entirely independent of the classical
54 defines the action to take when the software signal with
57 is raised using the function
59 and returns the previous such action or
63 does the following: if no action (or the action
68 then it does nothing and returns 0.
73 then it does nothing and returns 1.
74 Otherwise, it resets the action to
77 the action function with argument
79 and returns the value returned by that function.
80 The range of possible values
82 varies (often 1\(en15 or 1\(en17).
84 For an explanation of the terms used in this section, see
92 Interface Attribute Value
95 T} Thread safety MT-Safe
98 T} Thread safety MT-Safe sigintr
104 These functions are available under AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
105 They are called obsolete under most of these systems, and are
109 Some systems also have