Print this page
OS-4300 increase RT signal count
Reviewed by: Robert Mustacchi <rm@joyent.com>
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/lib/libc/port/gen/siglist.c
+++ new/usr/src/lib/libc/port/gen/siglist.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 + * Copyright 2015, Joyent, Inc.
25 26 */
26 27
27 28 /* Copyright (c) 1988 AT&T */
28 29 /* All Rights Reserved */
29 30
30 31 /*
31 32 * University Copyright- Copyright (c) 1982, 1986, 1988
32 33 * The Regents of the University of California
33 34 * All Rights Reserved
34 35 *
35 36 * University Acknowledgment- Portions of this document are derived from
36 37 * software developed by the University of California, Berkeley, and its
37 38 * contributors.
38 39 */
39 40
40 41 #include "lint.h"
41 42 #include <sys/types.h>
42 43 #include <signal.h>
43 44
44 45 #undef _sys_nsig
45 46 #undef _sys_siglist
46 47 #define OLDNSIG 34
47 48
48 49 const int _sys_nsig = OLDNSIG;
49 50
50 51 static const char STR_SIG_UNK[] = "UNKNOWN SIGNAL";
51 52 static const char STR_SIGHUP[] = "Hangup";
52 53 static const char STR_SIGINT[] = "Interrupt";
53 54 static const char STR_SIGQUIT[] = "Quit";
54 55 static const char STR_SIGILL[] = "Illegal Instruction";
55 56 static const char STR_SIGTRAP[] = "Trace/Breakpoint Trap";
56 57 static const char STR_SIGABRT[] = "Abort";
57 58 static const char STR_SIGEMT[] = "Emulation Trap";
58 59 static const char STR_SIGFPE[] = "Arithmetic Exception";
59 60 static const char STR_SIGKILL[] = "Killed";
60 61 static const char STR_SIGBUS[] = "Bus Error";
61 62 static const char STR_SIGSEGV[] = "Segmentation Fault";
62 63 static const char STR_SIGSYS[] = "Bad System Call";
63 64 static const char STR_SIGPIPE[] = "Broken Pipe";
64 65 static const char STR_SIGALRM[] = "Alarm Clock";
65 66 static const char STR_SIGTERM[] = "Terminated";
66 67 static const char STR_SIGUSR1[] = "User Signal 1";
67 68 static const char STR_SIGUSR2[] = "User Signal 2";
68 69 static const char STR_SIGCLD[] = "Child Status Changed";
69 70 static const char STR_SIGPWR[] = "Power-Fail/Restart";
70 71 static const char STR_SIGWINCH[] = "Window Size Change";
71 72 static const char STR_SIGURG[] = "Urgent Socket Condition";
72 73 static const char STR_SIGPOLL[] = "Pollable Event";
73 74 static const char STR_SIGSTOP[] = "Stopped (signal)";
74 75 static const char STR_SIGTSTP[] = "Stopped (user)";
75 76 static const char STR_SIGCONT[] = "Continued";
76 77 static const char STR_SIGTTIN[] = "Stopped (tty input)";
77 78 static const char STR_SIGTTOU[] = "Stopped (tty output)";
78 79 static const char STR_SIGVTALRM[] = "Virtual Timer Expired";
79 80 static const char STR_SIGPROF[] = "Profiling Timer Expired";
80 81 static const char STR_SIGXCPU[] = "Cpu Limit Exceeded";
81 82 static const char STR_SIGXFSZ[] = "File Size Limit Exceeded";
82 83 static const char STR_SIGWAITING[] = "No runnable lwp";
83 84 static const char STR_SIGLWP[] = "Inter-lwp signal";
84 85
85 86 const char *_sys_siglist[OLDNSIG] = {
86 87 STR_SIG_UNK, STR_SIGHUP, STR_SIGINT, STR_SIGQUIT,
87 88 STR_SIGILL, STR_SIGTRAP, STR_SIGABRT, STR_SIGEMT,
88 89 STR_SIGFPE, STR_SIGKILL, STR_SIGBUS, STR_SIGSEGV,
89 90 STR_SIGSYS, STR_SIGPIPE, STR_SIGALRM, STR_SIGTERM,
90 91 STR_SIGUSR1, STR_SIGUSR2, STR_SIGCLD, STR_SIGPWR,
91 92 STR_SIGWINCH, STR_SIGURG, STR_SIGPOLL, STR_SIGSTOP,
92 93 STR_SIGTSTP, STR_SIGCONT, STR_SIGTTIN, STR_SIGTTOU,
93 94 STR_SIGVTALRM, STR_SIGPROF, STR_SIGXCPU, STR_SIGXFSZ,
94 95 STR_SIGWAITING, STR_SIGLWP,
95 96 };
96 97
97 98 static const char *_sys_siglist_data[NSIG] = {
98 99 STR_SIG_UNK, STR_SIGHUP, STR_SIGINT, STR_SIGQUIT,
99 100 STR_SIGILL, STR_SIGTRAP, STR_SIGABRT, STR_SIGEMT,
100 101 STR_SIGFPE, STR_SIGKILL, STR_SIGBUS, STR_SIGSEGV,
101 102 STR_SIGSYS, STR_SIGPIPE, STR_SIGALRM, STR_SIGTERM,
102 103 STR_SIGUSR1, STR_SIGUSR2, STR_SIGCLD, STR_SIGPWR,
103 104 STR_SIGWINCH, STR_SIGURG, STR_SIGPOLL, STR_SIGSTOP,
104 105 STR_SIGTSTP, STR_SIGCONT, STR_SIGTTIN, STR_SIGTTOU,
105 106 STR_SIGVTALRM, STR_SIGPROF, STR_SIGXCPU, STR_SIGXFSZ,
106 107 STR_SIGWAITING, STR_SIGLWP,
107 108 "Checkpoint Freeze", /* SIGFREEZE */
108 109 "Checkpoint Thaw", /* SIGTHAW */
109 110 "Thread Cancellation", /* SIGCANCEL */
110 111 "Resource Lost", /* SIGLOST */
111 112 "Resource Control Exceeded", /* SIGXRES */
112 113 "Reserved for JVM 1", /* SIGJVM1 */
113 114 "Reserved for JVM 2", /* SIGJVM2 */
114 115 "Information Request", /* SIGINFO */
115 116 "First Realtime Signal", /* SIGRTMIN */
116 117 "Second Realtime Signal", /* SIGRTMIN+1 */
117 118 "Third Realtime Signal", /* SIGRTMIN+2 */
118 119 "Fourth Realtime Signal", /* SIGRTMIN+3 */
119 120 "Fifth Realtime Signal", /* SIGRTMIN+4 */
120 121 "Sixth Realtime Signal", /* SIGRTMIN+5 */
|
↓ open down ↓ |
86 lines elided |
↑ open up ↑ |
121 122 "Seventh Realtime Signal", /* SIGRTMIN+6 */
122 123 "Eighth Realtime Signal", /* SIGRTMIN+7 */
123 124 "Ninth Realtime Signal", /* SIGRTMIN+8 */
124 125 "Tenth Realtime Signal", /* SIGRTMIN+9 */
125 126 "Eleventh Realtime Signal", /* SIGRTMIN+10 */
126 127 "Twelfth Realtime Signal", /* SIGRTMIN+11 */
127 128 "Thirteenth Realtime Signal", /* SIGRTMIN+12 */
128 129 "Fourteenth Realtime Signal", /* SIGRTMIN+13 */
129 130 "Fifteenth Realtime Signal", /* SIGRTMIN+14 */
130 131 "Sixteenth Realtime Signal", /* SIGRTMIN+15 */
132 + "Seventeenth Realtime Signal", /* SIGRTMIN+16 */
131 133 "Sixteenth Last Realtime Signal", /* SIGRTMAX-15 */
132 134 "Fifteenth Last Realtime Signal", /* SIGRTMAX-14 */
133 135 "Fourteenth Last Realtime Signal", /* SIGRTMAX-13 */
134 136 "Thirteenth Last Realtime Signal", /* SIGRTMAX-12 */
135 137 "Twelfth Last Realtime Signal", /* SIGRTMAX-11 */
136 138 "Eleventh Last Realtime Signal", /* SIGRTMAX-10 */
137 139 "Tenth Last Realtime Signal", /* SIGRTMAX-9 */
138 140 "Ninth Last Realtime Signal", /* SIGRTMAX-8 */
139 141 "Eighth Last Realtime Signal", /* SIGRTMAX-7 */
140 142 "Seventh Last Realtime Signal", /* SIGRTMAX-6 */
141 143 "Sixth Last Realtime Signal", /* SIGRTMAX-5 */
142 144 "Fifth Last Realtime Signal", /* SIGRTMAX-4 */
143 145 "Fourth Last Realtime Signal", /* SIGRTMAX-3 */
144 146 "Third Last Realtime Signal", /* SIGRTMAX-2 */
145 147 "Second Last Realtime Signal", /* SIGRTMAX-1 */
146 148 "Last Realtime Signal" /* SIGRTMAX */
147 149 };
148 150
149 151 const int _sys_siglistn = sizeof (_sys_siglist_data) / sizeof (char *);
150 152 const char **_sys_siglistp = _sys_siglist_data;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX