]>
Commit | Line | Data |
---|---|---|
28f540f4 | 1 | /* Signal number definitions. SVR4 version. |
54d79e99 UD |
2 | Copyright (C) 1994, 1996 Free Software Foundation, Inc. |
3 | This file is part of the GNU C Library. | |
28f540f4 | 4 | |
54d79e99 UD |
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. | |
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 | |
13 | Library General Public License for more details. | |
28f540f4 | 14 | |
54d79e99 UD |
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. */ | |
28f540f4 RM |
19 | |
20 | #ifdef _SIGNAL_H | |
21 | ||
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. */ | |
26 | ||
27 | ||
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 SIGABRT SIGIOT /* Abort (ANSI). */ | |
34 | #define SIGTRAP 5 /* Trace trap (POSIX). */ | |
35 | #define SIGIOT 6 /* IOT trap (4.2 BSD). */ | |
36 | #define SIGEMT 7 /* EMT trap (4.2 BSD). */ | |
37 | #define SIGFPE 8 /* Floating-point exception (ANSI). */ | |
38 | #define SIGKILL 9 /* Kill, unblockable (POSIX). */ | |
39 | #define SIGBUS 10 /* Bus error (4.2 BSD). */ | |
40 | #define SIGSEGV 11 /* Segmentation violation (ANSI). */ | |
41 | #define SIGSYS 12 /* Bad argument to system call (4.2 BSD)*/ | |
42 | #define SIGPIPE 13 /* Broken pipe (POSIX). */ | |
43 | #define SIGALRM 14 /* Alarm clock (POSIX). */ | |
44 | #define SIGTERM 15 /* Termination (ANSI). */ | |
45 | #define SIGUSR1 16 /* User-defined signal 1 (POSIX). */ | |
46 | #define SIGUSR2 17 /* User-defined signal 2 (POSIX). */ | |
47 | #define SIGCHLD 18 /* Child status has changed (POSIX). */ | |
48 | #define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */ | |
49 | #define SIGPWR 19 /* Power failure restart (System V). */ | |
50 | #define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */ | |
51 | #define SIGURG 21 /* Urgent condition on socket (4.2 BSD).*/ | |
52 | #define SIGPOLL 22 /* Pollable event occurred (System V). */ | |
53 | #define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */ | |
54 | #define SIGSTOP 23 /* Stop, unblockable (POSIX). */ | |
55 | #define SIGTSTP 24 /* Keyboard stop (POSIX). */ | |
56 | #define SIGCONT 25 /* Continue (POSIX). */ | |
57 | #define SIGTTIN 26 /* Background read from tty (POSIX). */ | |
58 | #define SIGTTOU 27 /* Background write to tty (POSIX). */ | |
59 | #define SIGVTALRM 28 /* Virtual alarm clock (4.2 BSD). */ | |
60 | #define SIGPROF 29 /* Profiling alarm clock (4.2 BSD). */ | |
61 | #define SIGXCPU 30 /* CPU limit exceeded (4.2 BSD). */ | |
62 | #define SIGXFSZ 31 /* File size limit exceeded (4.2 BSD). */ | |
63 | ||
64 | #endif /* <signal.h> included. */ | |
65 | ||
66 | #define _NSIG 32 /* Biggest signal number + 1. */ |