Back to index

glibc  2.9
signum.h
Go to the documentation of this file.
00001 /* Signal number definitions.  Linux/Alpha version.
00002    Copyright (C) 1996, 1997, 1998, 1999, 2003 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #ifdef _SIGNAL_H
00021 
00022 /* Fake signal functions.  */
00023 #define SIG_ERR ((__sighandler_t) -1) /* Error return.  */
00024 #define SIG_DFL ((__sighandler_t) 0) /* Default action.  */
00025 #define SIG_IGN ((__sighandler_t) 1) /* Ignore signal.  */
00026 
00027 #ifdef __USE_UNIX98
00028 # define SIG_HOLD    ((__sighandler_t) 2) /* Add signal to hold mask.  */
00029 #endif
00030 
00031 /*
00032  * Linux/AXP has different signal numbers that Linux/i386: I'm trying
00033  * to make it OSF/1 binary compatible, at least for normal binaries.
00034  */
00035 #define SIGHUP               1
00036 #define SIGINT               2
00037 #define SIGQUIT              3
00038 #define SIGILL               4
00039 #define SIGTRAP              5
00040 #define SIGABRT              6
00041 #define SIGEMT               7
00042 #define SIGFPE               8
00043 #define SIGKILL              9
00044 #define SIGBUS              10
00045 #define SIGSEGV             11
00046 #define SIGSYS              12
00047 #define SIGPIPE             13
00048 #define SIGALRM             14
00049 #define SIGTERM             15
00050 #define SIGURG              16
00051 #define SIGSTOP             17
00052 #define SIGTSTP             18
00053 #define SIGCONT             19
00054 #define SIGCHLD             20
00055 #define SIGCLD          SIGCHLD
00056 #define SIGTTIN             21
00057 #define SIGTTOU             22
00058 #define SIGIO        23
00059 #define SIGXCPU             24
00060 #define SIGXFSZ             25
00061 #define SIGVTALRM    26
00062 #define SIGPROF             27
00063 #define SIGWINCH     28
00064 #define SIGINFO             29
00065 #define SIGUSR1             30
00066 #define SIGUSR2             31
00067 
00068 #define SIGPOLL      SIGIO
00069 #define SIGPWR       SIGINFO
00070 #define SIGIOT       SIGABRT
00071 
00072 #define       _NSIG         65     /* Biggest signal number + 1.  */
00073 
00074 #define SIGRTMIN     (__libc_current_sigrtmin ())
00075 #define SIGRTMAX     (__libc_current_sigrtmax ())
00076 
00077 /* These are the hard limits of the kernel.  These values should not be
00078    used directly at user level.  */
00079 #define __SIGRTMIN   32
00080 #define __SIGRTMAX   (_NSIG - 1)
00081 
00082 #endif /* <signal.h> included.  */