Update.
[glibc.git] / sysdeps / unix / sysv / linux / signum.h
blobd8a716f2e0f0cc9fc3c36a84b6f2be9fd5e2c1bf
1 /* Signal number definitions. Linux version.
2 Copyright (C) 1995, 1996 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 Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 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 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #ifdef _SIGNAL_H
22 /* 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. */
28 /* Signals. */
29 #define SIGHUP 1 /* Hangup (POSIX). */
30 #define SIGINT 2 /* Interrupt (ANSI). */
31 #define SIGQUIT 3 /* Quit (POSIX). */
32 #define SIGILL 4 /* Illegal instruction (ANSI). */
33 #define SIGTRAP 5 /* Trace trap (POSIX). */
34 #define SIGABRT 6 /* Abort (ANSI). */
35 #define SIGIOT 6 /* IOT trap (4.2 BSD). */
36 #define SIGBUS 7 /* BUS error (4.2 BSD). */
37 #define SIGFPE 8 /* Floating-point exception (ANSI). */
38 #define SIGKILL 9 /* Kill, unblockable (POSIX). */
39 #define SIGUSR1 10 /* User-defined signal 1 (POSIX). */
40 #define SIGSEGV 11 /* Segmentation violation (ANSI). */
41 #define SIGUSR2 12 /* User-defined signal 2 (POSIX). */
42 #define SIGPIPE 13 /* Broken pipe (POSIX). */
43 #define SIGALRM 14 /* Alarm clock (POSIX). */
44 #define SIGTERM 15 /* Termination (ANSI). */
45 #define SIGSTKFLT 16 /* ??? */
46 #define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */
47 #define SIGCHLD 17 /* Child status has changed (POSIX). */
48 #define SIGCONT 18 /* Continue (POSIX). */
49 #define SIGSTOP 19 /* Stop, unblockable (POSIX). */
50 #define SIGTSTP 20 /* Keyboard stop (POSIX). */
51 #define SIGTTIN 21 /* Background read from tty (POSIX). */
52 #define SIGTTOU 22 /* Background write to tty (POSIX). */
53 #define SIGURG 23 /* Urgent condition on socket (4.2 BSD). */
54 #define SIGXCPU 24 /* CPU limit exceeded (4.2 BSD). */
55 #define SIGXFSZ 25 /* File size limit exceeded (4.2 BSD). */
56 #define SIGVTALRM 26 /* Virtual alarm clock (4.2 BSD). */
57 #define SIGPROF 27 /* Profiling alarm clock (4.2 BSD). */
58 #define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
59 #define SIGPOLL SIGIO /* Pollable event occurred (System V). */
60 #define SIGIO 29 /* I/O now possible (4.2 BSD). */
61 #define SIGPWR 30 /* Power failure restart (System V). */
62 #define SIGUNUSED 31
64 #define _NSIG 32 /* Biggest signal number + 1. */
66 #endif /* <signal.h> included. */