Back to index

glibc  2.9
signum.h
Go to the documentation of this file.
00001 /* Signal number definitions.  Linux/SPARC version.
00002    Copyright (C) 1996, 1997, 1998, 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/SPARC 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 SIGIOT               6
00042 #define SIGEMT           7
00043 #define SIGFPE               8
00044 #define SIGKILL              9
00045 #define SIGBUS          10
00046 #define SIGSEGV             11
00047 #define SIGSYS              12
00048 #define SIGPIPE             13
00049 #define SIGALRM             14
00050 #define SIGTERM             15
00051 #define SIGURG          16
00052 
00053 /* SunOS values which deviate from the Linux/i386 ones */
00054 #define SIGSTOP             17
00055 #define SIGTSTP             18
00056 #define SIGCONT             19
00057 #define SIGCHLD             20
00058 #define SIGCLD              SIGCHLD       /* Same as SIGCHLD (System V).  */
00059 #define SIGTTIN             21
00060 #define SIGTTOU             22
00061 #define SIGIO        23
00062 #define SIGPOLL             SIGIO   /* SysV name for SIGIO */
00063 #define SIGXCPU             24
00064 #define SIGXFSZ             25
00065 #define SIGVTALRM    26
00066 #define SIGPROF             27
00067 #define SIGWINCH     28
00068 #define SIGLOST             29
00069 #define SIGPWR          SIGLOST
00070 #define SIGUSR1             30
00071 #define SIGUSR2             31
00072 
00073 #define       _NSIG         65     /* Biggest signal number + 1
00074                                (including real-time signals).  */
00075 
00076 #define SIGRTMIN        (__libc_current_sigrtmin ())
00077 #define SIGRTMAX        (__libc_current_sigrtmax ())
00078 
00079 /* These are the hard limits of the kernel.  These values should not be
00080    used directly at user level.  */
00081 #define __SIGRTMIN   32
00082 #define __SIGRTMAX   (_NSIG - 1)
00083 
00084 #endif /* <signal.h> included.  */