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

Annotation of src/lib/libc/gen/signame.c, Revision 1.13

1.13    ! christos    1: /*     $NetBSD: __signame14.c,v 1.3 2003/08/07 16:42:45 agc Exp $      */
1.5       cgd         2:
1.1       mycroft     3: /*
                      4:  * Copyright (c) 1983 Regents of the University of California.
                      5:  * All rights reserved.
                      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.12      agc        15:  * 3. Neither the name of the University nor the names of its contributors
1.1       mycroft    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.
                     30:  */
                     31:
1.7       christos   32: #include <sys/cdefs.h>
1.1       mycroft    33: #if defined(LIBC_SCCS) && !defined(lint)
1.5       cgd        34: #if 0
                     35: static char sccsid[] = "from: @(#)siglist.c    5.6 (Berkeley) 2/23/91";*/
                     36: #else
1.13    ! christos   37: __RCSID("$NetBSD: __signame14.c,v 1.3 2003/08/07 16:42:45 agc Exp $");
1.5       cgd        38: #endif
1.1       mycroft    39: #endif /* LIBC_SCCS and not lint */
1.10      thorpej    40:
1.13    ! christos   41: #include <signal.h>
        !            42: #include <unistd.h>
1.1       mycroft    43:
1.13    ! christos   44: static const char *const __signame14[] = {
1.11      christos   45:        "Signal 0",     /* 0 */
                     46:        "HUP",          /* 1 SIGHUP */
                     47:        "INT",          /* 2 SIGINT */
                     48:        "QUIT",         /* 3 SIGQUIT */
                     49:        "ILL",          /* 4 SIGILL */
                     50:        "TRAP",         /* 5 SIGTRAP */
                     51:        "ABRT",         /* 6 SIGABRT */
                     52:        "EMT",          /* 7 SIGEMT */
                     53:        "FPE",          /* 8 SIGFPE */
                     54:        "KILL",         /* 9 SIGKILL */
                     55:        "BUS",          /* 10 SIGBUS */
                     56:        "SEGV",         /* 11 SIGSEGV */
                     57:        "SYS",          /* 12 SIGSYS */
                     58:        "PIPE",         /* 13 SIGPIPE */
                     59:        "ALRM",         /* 14 SIGALRM */
                     60:        "TERM",         /* 15 SIGTERM */
                     61:        "URG",          /* 16 SIGURG */
                     62:        "STOP",         /* 17 SIGSTOP */
                     63:        "TSTP",         /* 18 SIGTSTP */
                     64:        "CONT",         /* 19 SIGCONT */
                     65:        "CHLD",         /* 20 SIGCHLD */
                     66:        "TTIN",         /* 21 SIGTTIN */
                     67:        "TTOU",         /* 22 SIGTTOU */
                     68:        "IO",           /* 23 SIGIO */
                     69:        "XCPU",         /* 24 SIGXCPU */
                     70:        "XFSZ",         /* 25 SIGXFSZ */
                     71:        "VTALRM",       /* 26 SIGVTALRM */
                     72:        "PROF",         /* 27 SIGPROF */
                     73:        "WINCH",        /* 28 SIGWINCH */
                     74:        "INFO",         /* 29 SIGINFO */
                     75:        "USR1",         /* 30 SIGUSR1 */
                     76:        "USR2",         /* 31 SIGUSR2 */
1.13    ! christos   77:        "PWR",          /* 32 SIGPWR */
        !            78:        "RT0",          /* 33 SIGRTMIN + 0 */
        !            79:        "RT1",          /* 34 SIGRTMIN + 1 */
        !            80:        "RT2",          /* 35 SIGRTMIN + 2 */
        !            81:        "RT3",          /* 36 SIGRTMIN + 3 */
        !            82:        "RT4",          /* 37 SIGRTMIN + 4 */
        !            83:        "RT5",          /* 38 SIGRTMIN + 5 */
        !            84:        "RT6",          /* 39 SIGRTMIN + 6 */
        !            85:        "RT7",          /* 40 SIGRTMIN + 7 */
        !            86:        "RT8",          /* 41 SIGRTMIN + 8 */
        !            87:        "RT9",          /* 42 SIGRTMIN + 9 */
        !            88:        "RT10",         /* 43 SIGRTMIN + 10 */
        !            89:        "RT11",         /* 44 SIGRTMIN + 11 */
        !            90:        "RT12",         /* 45 SIGRTMIN + 12 */
        !            91:        "RT13",         /* 46 SIGRTMIN + 13 */
        !            92:        "RT14",         /* 47 SIGRTMIN + 14 */
        !            93:        "RT15",         /* 48 SIGRTMIN + 15 */
        !            94:        "RT16",         /* 49 SIGRTMIN + 16 */
        !            95:        "RT17",         /* 50 SIGRTMIN + 17 */
        !            96:        "RT18",         /* 51 SIGRTMIN + 18 */
        !            97:        "RT19",         /* 52 SIGRTMIN + 19 */
        !            98:        "RT20",         /* 53 SIGRTMIN + 20 */
        !            99:        "RT21",         /* 54 SIGRTMIN + 21 */
        !           100:        "RT22",         /* 55 SIGRTMIN + 22 */
        !           101:        "RT23",         /* 56 SIGRTMIN + 23 */
        !           102:        "RT24",         /* 57 SIGRTMIN + 24 */
        !           103:        "RT25",         /* 58 SIGRTMIN + 25 */
        !           104:        "RT26",         /* 59 SIGRTMIN + 26 */
        !           105:        "RT27",         /* 60 SIGRTMIN + 27 */
        !           106:        "RT28",         /* 61 SIGRTMIN + 28 */
        !           107:        "RT29",         /* 62 SIGRTMIN + 29 */
        !           108:        "RT30",         /* 63 SIGRTMIN + 30 */
1.1       mycroft   109: };
1.13    ! christos  110:
        !           111: const char * const *__sys_signame14 = __signame14;

CVSweb <webmaster@jp.NetBSD.org>