.
[glibc-ports.git] / sysdeps / unix / sysv / aix / bits / signum.h
blob67eb949600befbe8cff82246e6b1dae1539b65e2
1 /* Signal number definitions. AIX version.
2 Copyright (C) 1995-1999, 2000 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, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 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. */
27 #ifdef __USE_UNIX98
28 # define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
29 # define SIG_CATCHE ((__sighandler_t) 3)
30 #endif
33 /* Signals. */
34 #define SIGHUP 1 /* Hangup (POSIX). */
35 #define SIGINT 2 /* Interrupt (ANSI). */
36 #define SIGQUIT 3 /* Quit (POSIX). */
37 #define SIGILL 4 /* Illegal instruction (ANSI). */
38 #define SIGTRAP 5 /* Trace trap (POSIX). */
39 #define SIGABRT 6 /* Abort (ANSI). */
40 #define SIGIOT SIGABRT /* Abort (terminal) process. */
41 #define SIGEMT 7 /* EMT instruction. */
42 #define SIGFPE 8 /* Floating-point exception (ANSI). */
43 #define SIGKILL 9 /* Kill, unblockable (POSIX). */
44 #define SIGBUS 10 /* BUS error (4.2 BSD). */
45 #define SIGSEGV 11 /* Segmentation violation (ANSI). */
46 #define SIGSYS 12 /* Bad system call. */
47 #define SIGPIPE 13 /* Broken pipe (POSIX). */
48 #define SIGALRM 14 /* Alarm clock (POSIX). */
49 #define SIGTERM 15 /* Termination (ANSI). */
50 #define SIGURG 16 /* Urgent condition on socket (4.2 BSD). */
51 #define SIGIOINT SIGURG /* Printer to backend error signal. */
52 #define SIGSTOP 17 /* Stop, unblockable (POSIX). */
53 #define SIGTSTP 18 /* Keyboard stop (POSIX). */
54 #define SIGCONT 19 /* Continue (POSIX). */
55 #define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */
56 #define SIGCHLD 20 /* Child status has changed (POSIX). */
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 SIGAIO SIGIO /* Base LAN I/O. */
61 #define SIGPTY SIGIO /* PTY I/O. */
62 #define SIGPOLL SIGIO /* ANother I/O event. */
63 #define SIGXCPU 24 /* CPU limit exceeded (4.2 BSD). */
64 #define SIGXFSZ 25 /* File size limit exceeded (4.2 BSD). */
65 #define SIGMSG 27 /* Input data is in the ring buffer. */
66 #define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
67 #define SIGPWR 29 /* Power failure restart (System V). */
68 #define SIGUSR1 30 /* User-defined signal 1 (POSIX). */
69 #define SIGUSR2 31 /* User-defined signal 2 (POSIX). */
70 #define SIGPROF 32 /* Profiling alarm clock (4.2 BSD). */
71 #define SIGDANGER 33 /* System crash imminent. */
72 #define SIGVTALRM 34 /* Virtual alarm clock (4.2 BSD). */
73 #define SIGMIGRATE 35 /* Migrate process. */
74 #define SIGPRE 36 /* Programming exception. */
75 #define SIGVIRT 37 /* AIX virtual time alarm. */
76 #define SIGARLM1 38 /* Reserved, don't use. */
77 #define SIGWAITING 39 /* Reserved, don't use. */
78 #define SIGCPUFAIL 59 /* Predictive de-configuration of processors.*/
79 #define SIGKAP 60 /* Keep alive poll from native keyboard. */
80 #define SIGGRANT SIGKAP /* Monitor mode granted. */
81 #define SIGRETRACT 61 /* Monitor mode should be relinguished. */
82 #define SIGSOUND 62 /* Sound control has completed. */
83 #define SIGSAK 63 /* Secure attentation key. */
85 #define _NSIG 64 /* Biggest signal number + 1
86 (including real-time signals). */
88 #define SIGRTMIN (__libc_current_sigrtmin ())
89 #define SIGRTMAX (__libc_current_sigrtmax ())
91 /* These are the hard limits of the kernel. These values should not be
92 used directly at user level. */
93 #define __SIGRTMIN 888
94 #define __SIGRTMAX 999
96 #endif /* <signal.h> included. */