2 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\" This replaces an earlier man page written by Walter Harms
7 .\" <walter.harms@informatik.uni-oldenburg.de>.
8 .TH gsignal 3 (date) "Linux man-pages (unreleased)"
10 gsignal, ssignal \- software signal facility
13 .RI ( libc ", " \-lc )
16 .B #include <signal.h>
18 .B typedef void (*sighandler_t)(int);
20 .BI "[[deprecated]] int gsignal(int " signum );
22 .BI "[[deprecated]] sighandler_t ssignal(int " signum ", sighandler_t " action );
26 Feature Test Macro Requirements for glibc (see
27 .BR feature_test_macros (7)):
35 glibc 2.19 and earlier:
39 Don't use these functions under Linux.
40 Due to a historical mistake, under Linux these functions are
47 Elsewhere, on System V-like systems, these functions implement
48 software signaling, entirely independent of the classical
55 defines the action to take when the software signal with
58 is raised using the function
60 and returns the previous such action or
64 does the following: if no action (or the action
69 then it does nothing and returns 0.
74 then it does nothing and returns 1.
75 Otherwise, it resets the action to
78 the action function with argument
80 and returns the value returned by that function.
81 The range of possible values
83 varies (often 1\[en]15 or 1\[en]17).
85 For an explanation of the terms used in this section, see
91 Interface Attribute Value
96 T} Thread safety MT-Safe
101 T} Thread safety MT-Safe sigintr
106 AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
107 They are called obsolete under most of these systems, and are
111 Some systems also have