[BACK]Return to siglist.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Annotation of src/lib/libc/gen/siglist.c, Revision 1.18

1.18    ! dholland    1: /*     $NetBSD: siglist.c,v 1.17 2007/01/17 23:24:22 hubertf Exp $     */
1.7       cgd         2:
1.1       cgd         3: /*
1.7       cgd         4:  * Copyright (c) 1983, 1993
                      5:  *     The Regents of the University of California.  All rights reserved.
1.6       jtc         6:  *
                      7:  * Redistribution and use in source and binary forms, with or without
                      8:  * modification, are permitted provided that the following conditions
                      9:  * are met:
                     10:  * 1. Redistributions of source code must retain the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer.
                     12:  * 2. Redistributions in binary form must reproduce the above copyright
                     13:  *    notice, this list of conditions and the following disclaimer in the
                     14:  *    documentation and/or other materials provided with the distribution.
1.15      agc        15:  * 3. Neither the name of the University nor the names of its contributors
1.6       jtc        16:  *    may be used to endorse or promote products derived from this software
                     17:  *    without specific prior written permission.
                     18:  *
                     19:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     20:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     21:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     22:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     23:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     24:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     25:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     26:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     27:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     28:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     29:  * SUCH DAMAGE.
1.1       cgd        30:  */
                     31:
1.9       christos   32: #include <sys/cdefs.h>
1.6       jtc        33: #if defined(LIBC_SCCS) && !defined(lint)
1.7       cgd        34: #if 0
                     35: static char sccsid[] = "@(#)siglist.c  8.1 (Berkeley) 6/4/93";
                     36: #else
1.18    ! dholland   37: __RCSID("$NetBSD: siglist.c,v 1.17 2007/01/17 23:24:22 hubertf Exp $");
1.7       cgd        38: #endif
1.6       jtc        39: #endif /* LIBC_SCCS and not lint */
1.14      mycroft    40:
1.16      christos   41: #include <signal.h>
1.1       cgd        42:
1.16      christos   43: static const char *const __siglist14[] = {
                     44:        "Signal 0",                     /* 0 */
                     45:        "Hangup",                       /* 1 SIGHUP */
                     46:        "Interrupt",                    /* 2 SIGINT */
                     47:        "Quit",                         /* 3 SIGQUIT */
                     48:        "Illegal instruction",          /* 4 SIGILL */
                     49:        "Trace/BPT trap",               /* 5 SIGTRAP */
                     50:        "Abort trap",                   /* 6 SIGABRT */
                     51:        "EMT trap",                     /* 7 SIGEMT */
                     52:        "Floating point exception",     /* 8 SIGFPE */
                     53:        "Killed",                       /* 9 SIGKILL */
                     54:        "Bus error",                    /* 10 SIGBUS */
                     55:        "Segmentation fault",           /* 11 SIGSEGV */
                     56:        "Bad system call",              /* 12 SIGSYS */
                     57:        "Broken pipe",                  /* 13 SIGPIPE */
                     58:        "Alarm clock",                  /* 14 SIGALRM */
                     59:        "Terminated",                   /* 15 SIGTERM */
                     60:        "Urgent I/O condition",         /* 16 SIGURG */
                     61:        "Suspended (signal)",           /* 17 SIGSTOP */
                     62:        "Suspended",                    /* 18 SIGTSTP */
                     63:        "Continued",                    /* 19 SIGCONT */
                     64:        "Child exited",                 /* 20 SIGCHLD */
                     65:        "Stopped (tty input)",          /* 21 SIGTTIN */
                     66:        "Stopped (tty output)",         /* 22 SIGTTOU */
                     67:        "I/O possible",                 /* 23 SIGIO */
1.18    ! dholland   68:        "CPU time limit exceeded",      /* 24 SIGXCPU */
        !            69:        "File size limit exceeded",     /* 25 SIGXFSZ */
1.16      christos   70:        "Virtual timer expired",        /* 26 SIGVTALRM */
                     71:        "Profiling timer expired",      /* 27 SIGPROF */
1.18    ! dholland   72:        "Window size changed",          /* 28 SIGWINCH */
1.16      christos   73:        "Information request",          /* 29 SIGINFO */
                     74:        "User defined signal 1",        /* 30 SIGUSR1 */
                     75:        "User defined signal 2",        /* 31 SIGUSR2 */
                     76:        "Power fail/restart",           /* 32 SIGPWR */
                     77:        "Real time signal 0",           /* 33 SIGRTMIN + 0 */
                     78:        "Real time signal 1",           /* 34 SIGRTMIN + 1 */
                     79:        "Real time signal 2",           /* 35 SIGRTMIN + 2 */
                     80:        "Real time signal 3",           /* 36 SIGRTMIN + 3 */
                     81:        "Real time signal 4",           /* 37 SIGRTMIN + 4 */
                     82:        "Real time signal 5",           /* 38 SIGRTMIN + 5 */
                     83:        "Real time signal 6",           /* 39 SIGRTMIN + 6 */
                     84:        "Real time signal 7",           /* 40 SIGRTMIN + 7 */
                     85:        "Real time signal 8",           /* 41 SIGRTMIN + 8 */
                     86:        "Real time signal 9",           /* 42 SIGRTMIN + 9 */
                     87:        "Real time signal 10",          /* 43 SIGRTMIN + 10 */
                     88:        "Real time signal 11",          /* 44 SIGRTMIN + 11 */
                     89:        "Real time signal 12",          /* 45 SIGRTMIN + 12 */
                     90:        "Real time signal 13",          /* 46 SIGRTMIN + 13 */
                     91:        "Real time signal 14",          /* 47 SIGRTMIN + 14 */
                     92:        "Real time signal 15",          /* 48 SIGRTMIN + 15 */
                     93:        "Real time signal 16",          /* 49 SIGRTMIN + 16 */
                     94:        "Real time signal 17",          /* 50 SIGRTMIN + 17 */
                     95:        "Real time signal 18",          /* 51 SIGRTMIN + 18 */
                     96:        "Real time signal 19",          /* 52 SIGRTMIN + 19 */
                     97:        "Real time signal 20",          /* 53 SIGRTMIN + 20 */
                     98:        "Real time signal 21",          /* 54 SIGRTMIN + 21 */
                     99:        "Real time signal 22",          /* 55 SIGRTMIN + 22 */
                    100:        "Real time signal 23",          /* 56 SIGRTMIN + 23 */
                    101:        "Real time signal 24",          /* 57 SIGRTMIN + 24 */
                    102:        "Real time signal 25",          /* 58 SIGRTMIN + 25 */
                    103:        "Real time signal 26",          /* 59 SIGRTMIN + 26 */
                    104:        "Real time signal 27",          /* 60 SIGRTMIN + 27 */
                    105:        "Real time signal 28",          /* 61 SIGRTMIN + 28 */
                    106:        "Real time signal 29",          /* 62 SIGRTMIN + 29 */
                    107:        "Real time signal 30",          /* 63 SIGRTMIN + 30 */
1.6       jtc       108: };
1.16      christos  109:
                    110: const int __sys_nsig14 = sizeof(__siglist14) / sizeof(__siglist14[0]);
                    111:
                    112: const char * const *__sys_siglist14 = __siglist14;

CVSweb <webmaster@jp.NetBSD.org>