1GSIGNAL(3)                 Linux Programmer's Manual                GSIGNAL(3)
2
3
4

NAME

6       gsignal, ssignal - software signal facility
7

SYNOPSIS

9       #include <signal.h>
10
11       typedef void (*sighandler_t)(int);
12
13       int gsignal(int signum);
14
15       sighandler_t ssignal(int signum, sighandler_t action);
16
17   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19       gsignal(), ssignal(): _SVID_SOURCE
20

DESCRIPTION

22       Don't  use  these  functions under Linux.  Due to a historical mistake,
23       under Linux these functions are aliases  for  raise(3)  and  signal(2),
24       respectively.
25
26       Elsewhere, on System V-like systems, these functions implement software
27       signaling, entirely independent of the classical signal(2) and  kill(2)
28       functions.   The function ssignal() defines the action to take when the
29       software signal with number signum is raised using the  function  gsig‐
30       nal(),  and  returns the previous such action or SIG_DFL.  The function
31       gsignal() does the following: if no action (or the action SIG_DFL)  was
32       specified  for  signum,  then  it  does  nothing and returns 0.  If the
33       action SIG_IGN was specified for  signum,  then  it  does  nothing  and
34       returns  1.   Otherwise,  it resets the action to SIG_DFL and calls the
35       action function with argument signum, and returns the value returned by
36       that  function.  The range of possible values signum varies (often 1-15
37       or 1-17).
38

CONFORMING TO

40       These functions are available under AIX, DG/UX,  HP-UX,  SCO,  Solaris,
41       Tru64.   They  are called obsolete under most of these systems, and are
42       broken under Linux libc and glibc.  Some systems also have  gsignal_r()
43       and ssignal_r().
44

SEE ALSO

46       kill(2), signal(2), raise(3)
47

COLOPHON

49       This  page  is  part of release 3.53 of the Linux man-pages project.  A
50       description of the project, and information about reporting  bugs,  can
51       be found at http://www.kernel.org/doc/man-pages/.
52
53
54
55                                  2007-07-26                        GSIGNAL(3)
Impressum