]> git.ipfire.org Git - thirdparty/glibc.git/blob - bits/signum.h
Replace FSF snail mail address with URLs.
[thirdparty/glibc.git] / bits / signum.h
1 /* Copyright (C) 1991, 1993, 1996, 1998 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18 #ifdef _SIGNAL_H
19
20 /* Fake signal functions. */
21
22 #define SIG_ERR ((__sighandler_t) -1) /* Error return. */
23 #define SIG_DFL ((__sighandler_t) 0) /* Default action. */
24 #define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */
25
26 #ifdef __USE_UNIX98
27 # define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
28 #endif
29
30 /* Signals in the 1-15 range are defined with their historical numbers.
31 Signals in the 20-25 range are relatively new and have no ingrained
32 numbers. */
33
34 /* ANSI signals. */
35 #define SIGINT 2 /* Interactive attention signal. */
36 #define SIGILL 4 /* Illegal instruction. */
37 #define SIGABRT 6 /* Abnormal termination. */
38 #define SIGFPE 8 /* Erroneous arithmetic operation. */
39 #define SIGSEGV 11 /* Invalid access to storage. */
40 #define SIGTERM 15 /* Termination request. */
41
42 /* Historical signals specified by POSIX. */
43 #define SIGHUP 1 /* Hangup. */
44 #define SIGQUIT 3 /* Quit. */
45 #define SIGKILL 9 /* Kill (cannot be blocked, caught, or ignored). */
46 #define SIGPIPE 13 /* Broken pipe. */
47 #define SIGALRM 14 /* Alarm clock. */
48
49 /* New(er) POSIX signals. */
50 #define SIGSTOP 20 /* Stop (cannot be blocked, caught, or ignored). */
51 #define SIGCONT 21 /* Continue. */
52 #define SIGTSTP 22 /* Keyboard stop. */
53 #define SIGTTIN 23 /* Background read from control terminal. */
54 #define SIGTTOU 24 /* Background write to control terminal. */
55 #define SIGCHLD 25 /* Child terminated or stopped. */
56
57 #define _NSIG 26
58
59 /* Archaic names for compatibility. */
60 #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP11 */
61 #define SIGCLD SIGCHLD /* Old System V name */
62
63 #endif /* <signal.h> included. */