xref: /illumos-gate/usr/src/ucblib/libucb/port/gen/siglist.c (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1997 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 /*
31  * University Copyright- Copyright (c) 1982, 1986, 1988
32  * The Regents of the University of California
33  * All Rights Reserved
34  *
35  * University Acknowledgment- Portions of this document are derived from
36  * software developed by the University of California, Berkeley, and its
37  * contributors.
38  */
39 
40 #pragma ident	"%Z%%M%	%I%	%E% SMI"
41 
42 /*LINTLIBRARY*/
43 
44 #include <sys/types.h>
45 #include <signal.h>
46 #include "libc.h"
47 
48 #ifndef NSIG
49 #define	NSIG 32
50 #endif
51 
52 char	*sys_siglist[NSIG] = {
53 	"Signal 0",
54 	"Hangup",			/* SIGHUP */
55 	"Interrupt",			/* SIGINT */
56 	"Quit",				/* SIGQUIT */
57 	"Illegal instruction",		/* SIGILL */
58 	"Trace/BPT trap",		/* SIGTRAP */
59 	"Abort",			/* SIGABRT */
60 	"Emulator trap",		/* SIGEMT */
61 	"Arithmetic exception",		/* SIGFPE */
62 	"Killed",			/* SIGKILL */
63 	"Bus error",			/* SIGBUS */
64 	"Segmentation fault",		/* SIGSEGV */
65 	"Bad system call",		/* SIGSYS */
66 	"Broken pipe",			/* SIGPIPE */
67 	"Alarm clock",			/* SIGALRM */
68 	"Terminated",			/* SIGTERM */
69 	"User defined signal 1",	/* SIGUSR1 */
70 	"User defined signal 2",	/* SIGUSR2 */
71 	"Child status change",		/* SIGCLD */
72 	"Power-fail restart",		/* SIGPWR */
73 	"Window changed",		/* SIGWINCH */
74 	"Handset, line status change",	/* SIGURG */
75 	"Pollable event occurred",	/* SIGPOLL */
76 	"Stopped (signal)",		/* SIGSTOP */
77 	"Stopped",			/* SIGTSTP */
78 	"Continued",			/* SIGCONT */
79 	"Stopped (tty input)",		/* SIGTTIN */
80 	"Stopped (tty output)",		/* SIGTTOU */
81 	"Virtual timer expired",	/* SIGVTALRM */
82 	"Profiling timer expired",	/* SIGPROF */
83 	"Cputime limit exceeded",	/* SIGXCPU */
84 	"Filesize limit exceeded", 	/* SIGXFSZ */
85 	"No runnable lwp",		/* SIGWAITING */
86 	"Inter-lwp signal",		/* SIGLWP */
87 };
88