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(signum);
14
15       sighandler_t ssignal(int signum, sighandler_t action);
16

DESCRIPTION

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

CONFORMING TO

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

SEE ALSO

42       kill(2), signal(2), raise(3)
43
44
45
46notGNU                            2002-08-25                        GSIGNAL(3)
Impressum