Extra files to distribute in sysdeps/posix.
[glibc/history.git] / sysdeps / generic / bits / signum.h
blob25331f943c7c0c835b3728341d357f49165b8e21
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, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifdef _SIGNAL_H
21 /* Fake signal functions. */
23 #define SIG_ERR ((__sighandler_t) -1) /* Error return. */
24 #define SIG_DFL ((__sighandler_t) 0) /* Default action. */
25 #define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */
27 #ifdef __USE_UNIX98
28 # define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
29 #endif
31 /* Signals in the 1-15 range are defined with their historical numbers.
32 Signals in the 20-25 range are relatively new and have no ingrained
33 numbers. */
35 /* ANSI signals. */
36 #define SIGINT 2 /* Interactive attention signal. */
37 #define SIGILL 4 /* Illegal instruction. */
38 #define SIGABRT 6 /* Abnormal termination. */
39 #define SIGFPE 8 /* Erroneous arithmetic operation. */
40 #define SIGSEGV 11 /* Invalid access to storage. */
41 #define SIGTERM 15 /* Termination request. */
43 /* Historical signals specified by POSIX. */
44 #define SIGHUP 1 /* Hangup. */
45 #define SIGQUIT 3 /* Quit. */
46 #define SIGKILL 9 /* Kill (cannot be blocked, caught, or ignored). */
47 #define SIGPIPE 13 /* Broken pipe. */
48 #define SIGALRM 14 /* Alarm clock. */
50 /* New(er) POSIX signals. */
51 #define SIGSTOP 20 /* Stop (cannot be blocked, caught, or ignored). */
52 #define SIGCONT 21 /* Continue. */
53 #define SIGTSTP 22 /* Keyboard stop. */
54 #define SIGTTIN 23 /* Background read from control terminal. */
55 #define SIGTTOU 24 /* Background write to control terminal. */
56 #define SIGCHLD 25 /* Child terminated or stopped. */
58 #define _NSIG 26
60 /* Archaic names for compatibility. */
61 #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP11 */
62 #define SIGCLD SIGCHLD /* Old System V name */
64 #endif /* <signal.h> included. */