Back to index

glibc  2.9
Go to the documentation of this file.
00001 /* Canonical list of all signal names.
00002    Copyright (C) 1996,97,98,99 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
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.
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
00013    Lesser General Public License for more details.
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.  */
00020 /* This file should be usable for any platform, since it just associates
00021    the SIG* macros with text names and descriptions.  The actual values
00022    come from <bits/signum.h> (via <signal.h>).  For any signal macros do not
00023    exist on every platform, we can use #ifdef tests here and still use
00024    this single common file for all platforms.  */
00026 /* This file is included multiple times.  */
00028 /* Standard signals  */
00029   init_sig (SIGHUP, "HUP", N_("Hangup"))
00030   init_sig (SIGINT, "INT", N_("Interrupt"))
00031   init_sig (SIGQUIT, "QUIT", N_("Quit"))
00032   init_sig (SIGILL, "ILL", N_("Illegal instruction"))
00033   init_sig (SIGTRAP, "TRAP", N_("Trace/breakpoint trap"))
00034   init_sig (SIGABRT, "ABRT", N_("Aborted"))
00035   init_sig (SIGFPE, "FPE", N_("Floating point exception"))
00036   init_sig (SIGKILL, "KILL", N_("Killed"))
00037   init_sig (SIGBUS, "BUS", N_("Bus error"))
00038   init_sig (SIGSEGV, "SEGV", N_("Segmentation fault"))
00039   init_sig (SIGPIPE, "PIPE", N_("Broken pipe"))
00040   init_sig (SIGALRM, "ALRM", N_("Alarm clock"))
00041   init_sig (SIGTERM, "TERM", N_("Terminated"))
00042   init_sig (SIGURG, "URG", N_("Urgent I/O condition"))
00043   init_sig (SIGSTOP, "STOP", N_("Stopped (signal)"))
00044   init_sig (SIGTSTP, "TSTP", N_("Stopped"))
00045   init_sig (SIGCONT, "CONT", N_("Continued"))
00046   init_sig (SIGCHLD, "CHLD", N_("Child exited"))
00047   init_sig (SIGTTIN, "TTIN", N_("Stopped (tty input)"))
00048   init_sig (SIGTTOU, "TTOU", N_("Stopped (tty output)"))
00049   init_sig (SIGIO, "IO", N_("I/O possible"))
00050   init_sig (SIGXCPU, "XCPU", N_("CPU time limit exceeded"))
00051   init_sig (SIGXFSZ, "XFSZ", N_("File size limit exceeded"))
00052   init_sig (SIGVTALRM, "VTALRM", N_("Virtual timer expired"))
00053   init_sig (SIGPROF, "PROF", N_("Profiling timer expired"))
00054   init_sig (SIGWINCH, "WINCH", N_("Window changed"))
00055   init_sig (SIGUSR1, "USR1", N_("User defined signal 1"))
00056   init_sig (SIGUSR2, "USR2", N_("User defined signal 2"))
00058 /* Variations  */
00059 #ifdef SIGEMT
00060   init_sig (SIGEMT, "EMT", N_("EMT trap"))
00061 #endif
00062 #ifdef SIGSYS
00063   init_sig (SIGSYS, "SYS", N_("Bad system call"))
00064 #endif
00065 #ifdef SIGSTKFLT
00066   init_sig (SIGSTKFLT, "STKFLT", N_("Stack fault"))
00067 #endif
00068 #ifdef SIGINFO
00069   init_sig (SIGINFO, "INFO", N_("Information request"))
00070 #elif defined(SIGPWR) && (!defined(SIGLOST) || (SIGPWR != SIGLOST))
00071   init_sig (SIGPWR, "PWR", N_("Power failure"))
00072 #endif
00073 #ifdef SIGLOST
00074   init_sig (SIGLOST, "LOST", N_("Resource lost"))
00075 #endif