]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/bsd/bits/signum.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / unix / bsd / bits / signum.h
CommitLineData
28f540f4 1/* Signal number definitions. BSD version.
b168057a 2 Copyright (C) 1991-2015 Free Software Foundation, Inc.
54d79e99 3 This file is part of the GNU C Library.
28f540f4 4
54d79e99 5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
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.
28f540f4 9
54d79e99
UD
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
41bdb6e2 13 Lesser General Public License for more details.
28f540f4 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
28f540f4
RM
18
19#ifdef _SIGNAL_H
20
21/* This file defines the fake signal functions and signal
22 number constants for 4.2 or 4.3 BSD-derived Unix system. */
23
24/* Fake signal functions. */
25#define SIG_ERR ((__sighandler_t) -1) /* Error return. */
26#define SIG_DFL ((__sighandler_t) 0) /* Default action. */
27#define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */
28
3331899a
UD
29#ifdef __USE_UNIX98
30# define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
31#endif
32
28f540f4
RM
33
34/* Signals. */
35#define SIGHUP 1 /* Hangup (POSIX). */
36#define SIGINT 2 /* Interrupt (ANSI). */
37#define SIGQUIT 3 /* Quit (POSIX). */
38#define SIGILL 4 /* Illegal instruction (ANSI). */
39#define SIGABRT SIGIOT /* Abort (ANSI). */
40#define SIGTRAP 5 /* Trace trap (POSIX). */
41#define SIGIOT 6 /* IOT trap (4.2 BSD). */
42#define SIGEMT 7 /* EMT trap (4.2 BSD). */
43#define SIGFPE 8 /* Floating-point exception (ANSI). */
44#define SIGKILL 9 /* Kill, unblockable (POSIX). */
45#define SIGBUS 10 /* Bus error (4.2 BSD). */
46#define SIGSEGV 11 /* Segmentation violation (ANSI). */
47#define SIGSYS 12 /* Bad argument to system call (4.2 BSD). */
48#define SIGPIPE 13 /* Broken pipe (POSIX). */
49#define SIGALRM 14 /* Alarm clock (POSIX). */
50#define SIGTERM 15 /* Termination (ANSI). */
51#define SIGURG 16 /* Urgent condition on socket (4.2 BSD). */
52#define SIGSTOP 17 /* Stop, unblockable (POSIX). */
53#define SIGTSTP 18 /* Keyboard stop (POSIX). */
54#define SIGCONT 19 /* Continue (POSIX). */
55#define SIGCHLD 20 /* Child status has changed (POSIX). */
56#define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */
57#define SIGTTIN 21 /* Background read from tty (POSIX). */
58#define SIGTTOU 22 /* Background write to tty (POSIX). */
59#define SIGIO 23 /* I/O now possible (4.2 BSD). */
60#define SIGPOLL SIGIO /* Same as SIGIO? (SVID). */
61#define SIGXCPU 24 /* CPU limit exceeded (4.2 BSD). */
62#define SIGXFSZ 25 /* File size limit exceeded (4.2 BSD). */
63#define SIGVTALRM 26 /* Virtual alarm clock (4.2 BSD). */
64#define SIGPROF 27 /* Profiling alarm clock (4.2 BSD). */
65#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
66#define SIGINFO 29 /* Information request (4.4 BSD). */
67#define SIGUSR1 30 /* User-defined signal 1 (POSIX). */
68#define SIGUSR2 31 /* User-defined signal 2 (POSIX). */
69#define SIGLOST 32 /* Resource lost (Sun); server died (GNU). */
70
71#endif /* <signal.h> included. */
72
73#define _NSIG 33 /* Biggest signal number + 1. */