Refactor bug-strtod.c to better test new types.
[glibc.git] / bits / signum.h
blob9fccd9c70cfd6330ff62e82e323a4c67f34c7d5b
1 /* Signal number constants. Generic version.
2 Copyright (C) 1991-2016 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
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 /* We define here all the signal names listed in POSIX (1003.1-2008);
32 as of 1003.1-2013, no additional signals have been added by POSIX.
33 We also define here signal names that historically exist in every
34 real-world POSIX variant (e.g. SIGWINCH).
36 Signals in the 1-15 range are defined with their historical numbers.
37 For other signals, we use the BSD numbers. */
39 /* ISO C99 signals. */
40 #define SIGINT 2 /* Interactive attention signal. */
41 #define SIGILL 4 /* Illegal instruction. */
42 #define SIGABRT 6 /* Abnormal termination. */
43 #define SIGFPE 8 /* Erroneous arithmetic operation. */
44 #define SIGSEGV 11 /* Invalid access to storage. */
45 #define SIGTERM 15 /* Termination request. */
47 /* Historical signals specified by POSIX. */
48 #define SIGHUP 1 /* Hangup. */
49 #define SIGQUIT 3 /* Quit. */
50 #define SIGTRAP 5 /* Trace/breakpoint trap. */
51 #define SIGKILL 9 /* Killed. */
52 #define SIGBUS 10 /* Bus error. */
53 #define SIGSYS 12 /* Bad system call. */
54 #define SIGPIPE 13 /* Broken pipe. */
55 #define SIGALRM 14 /* Alarm clock. */
57 /* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
58 #define SIGURG 16 /* High bandwidth data is available at a socket. */
59 #define SIGSTOP 17 /* Stopped (signal). */
60 #define SIGTSTP 18 /* Stopped. */
61 #define SIGCONT 19 /* Continued. */
62 #define SIGCHLD 20 /* Child terminated or stopped. */
63 #define SIGTTIN 21 /* Background read from control terminal. */
64 #define SIGTTOU 22 /* Background write to control terminal. */
65 #define SIGPOLL 23 /* Pollable event occurred (System V). */
66 #define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
67 #define SIGXCPU 24 /* CPU time limit exceeded. */
68 #define SIGXFSZ 25 /* File size limit exceeded. */
69 #define SIGVTALRM 26 /* Virtual timer expired. */
70 #define SIGPROF 27 /* Profiling timer expired. */
71 #define SIGUSR1 30 /* User-defined signal 1. */
72 #define SIGUSR2 31 /* User-defined signal 2. */
74 /* Nonstandard signals found in all modern POSIX systems
75 (including both BSD and Linux). */
76 #define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
78 #define _NSIG 32
80 /* Archaic names for compatibility. */
81 #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
82 #define SIGCLD SIGCHLD /* Old System V name */
84 #endif /* <signal.h> included. */