text
stringlengths
0
234
don't use these functions under linux.
due to a historical mistake, under linux these functions are
aliases for
.br raise (3)
and
.br signal (2),
respectively.
.pp
elsewhere, on system v-like systems, these functions implement
software signaling, entirely independent of the classical
.br signal (2)
and
.br kill (2)
functions.
the function
.br ssignal ()
defines the action to take when the software signal with
number
.i signum
is raised using the function
.br gsignal (),
and returns the previous such action or
.br sig_dfl .
the function
.br gsignal ()
does the following: if no action (or the action
.br sig_dfl )
was
specified for
.ir signum ,
then it does nothing and returns 0.
if the action
.b sig_ign
was specified for
.ir signum ,
then it does nothing and returns 1.
otherwise, it resets the action to
.b sig_dfl
and calls
the action function with argument
.ir signum ,
and returns the value returned by that function.
the range of possible values
.i signum
varies (often 1\(en15 or 1\(en17).
.sh attributes
for an explanation of the terms used in this section, see
.br attributes (7).
.ad l
.nh
.ts
allbox;
lbx lb lb
l l l.
interface attribute value
t{
.br gsignal ()
t} thread safety mt-safe
t{
.br ssignal ()
t} thread safety mt-safe sigintr
.te
.hy
.ad
.sp 1
.sh conforming to
these functions are available under aix, dg/ux, hp-ux, sco, solaris, tru64.
they are called obsolete under most of these systems, and are
broken under
.\" linux libc and
glibc.
some systems also have
.br gsignal_r ()
and
.br ssignal_r ().
.sh see also
.br kill (2),
.br signal (2),
.br raise (3)
.sh colophon
this page is part of release 5.13 of the linux
.i man-pages
project.
a description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
\%https://www.kernel.org/doc/man\-pages/.