Remove use of INTDEF/INTUSE in intl
[glibc.git] / bits / signum.h
blob48bb7b8050224166333d58c72827724f84c98807
1 /* Copyright (C) 1991, 1993, 1996, 1998 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
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/>. */
18 #ifdef _SIGNAL_H
20 /* Fake signal functions. */
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. */
26 #ifdef __USE_UNIX98
27 # define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
28 #endif
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. */
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. */
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. */
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. */
57 #define _NSIG 26
59 /* Archaic names for compatibility. */
60 #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP11 */
61 #define SIGCLD SIGCHLD /* Old System V name */
63 #endif /* <signal.h> included. */