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