参见文件:/usr/include/bits/signum.h
/* Signal number definitions. Linux version.
Copyright (C) 1995-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
. */
#ifdef_SIGNAL_H
/* Fake signal functions. */
#define SIG_ERR((__sighandler_t) -1)/* Error return. */
#define SIG_DFL((__sighandler_t) 0)/* Default action. */
#define SIG_IGN((__sighandler_t) 1)/* Ignore signal. */
#ifdef __USE_UNIX98
# define SIG_HOLD((__sighandler_t) 2)/* Add signal to hold mask. */
#endif
/* Signals. */
#defineSIGHUP1/* Hangup (POSIX). */
#defineSIGINT2/* Interrupt (ANSI). */
#defineSIGQUIT3/* Quit (POSIX). */
#defineSIGILL4/* Illegal instruction (ANSI). */
#defineSIGTRAP5/* Trace trap (POSIX). */
#defineSIGABRT6/* Abort (ANSI). */
#defineSIGIOT6/* IOT trap (4.2 BSD). */
#defineSIGBUS7/* BUS error (4.2 BSD). */
#defineSIGFPE8/* Floating-point exception (ANSI). */
#defineSIGKILL9/* Kill, unblockable (POSIX). */
#defineSIGUSR110/* User-defined signal 1 (POSIX). */
#defineSIGSEGV11/* Segmentation violation (ANSI). */
#defineSIGUSR212/* User-defined signal 2 (POSIX). */
#defineSIGPIPE13/* Broken pipe (POSIX). */
#defineSIGALRM14/* Alarm clock (POSIX). */
#defineSIGTERM15/* Termination (ANSI). */
#defineSIGSTKFLT16/* Stack fault. */
#defineSIGCLDSIGCHLD/* Same as SIGCHLD (System V). */
#defineSIGCHLD17/* Child status has changed (POSIX). */
#defineSIGCONT18/* Continue (POSIX). */
#defineSIGSTOP19/* Stop, unblockable (POSIX). */
#defineSIGTSTP20/* Keyboard stop (POSIX). */
#defineSIGTTIN21/* Background read from tty (POSIX). */
#defineSIGTTOU22/* Background write to tty (POSIX). */
#defineSIGURG23/* Urgent condition on socket (4.2 BSD). */
#defineSIGXCPU24/* CPU limit exceeded (4.2 BSD). */
#defineSIGXFSZ25/* File size limit exceeded (4.2 BSD). */
#defineSIGVTALRM26/* Virtual alarm clock (4.2 BSD). */
#defineSIGPROF27/* Profiling alarm clock (4.2 BSD). */
#defineSIGWINCH28/* Window size change (4.3 BSD, Sun). */
#defineSIGPOLLSIGIO/* Pollable event occurred (System V). */
#defineSIGIO29/* I/O now possible (4.2 BSD). */
#defineSIGPWR30/* Power failure restart (System V). */
#define SIGSYS31/* Bad system call. */
#define SIGUNUSED31
#define_NSIG65/* Biggest signal number + 1
(including real-time signals). */
#define SIGRTMIN (__libc_current_sigrtmin ())
#define SIGRTMAX (__libc_current_sigrtmax ())
/* These are the hard limits of the kernel. These values should not be
used directly at user level. */
#define __SIGRTMIN32
#define __SIGRTMAX(_NSIG - 1)
#endif/* included. */