1c80476e4SDavid E. O'Brien /*
2c80476e4SDavid E. O'Brien * sh.init.c: Function and signal tables
3c80476e4SDavid E. O'Brien */
4c80476e4SDavid E. O'Brien /*-
5c80476e4SDavid E. O'Brien * Copyright (c) 1980, 1991 The Regents of the University of California.
6c80476e4SDavid E. O'Brien * All rights reserved.
7c80476e4SDavid E. O'Brien *
8c80476e4SDavid E. O'Brien * Redistribution and use in source and binary forms, with or without
9c80476e4SDavid E. O'Brien * modification, are permitted provided that the following conditions
10c80476e4SDavid E. O'Brien * are met:
11c80476e4SDavid E. O'Brien * 1. Redistributions of source code must retain the above copyright
12c80476e4SDavid E. O'Brien * notice, this list of conditions and the following disclaimer.
13c80476e4SDavid E. O'Brien * 2. Redistributions in binary form must reproduce the above copyright
14c80476e4SDavid E. O'Brien * notice, this list of conditions and the following disclaimer in the
15c80476e4SDavid E. O'Brien * documentation and/or other materials provided with the distribution.
1629301572SMark Peek * 3. Neither the name of the University nor the names of its contributors
17c80476e4SDavid E. O'Brien * may be used to endorse or promote products derived from this software
18c80476e4SDavid E. O'Brien * without specific prior written permission.
19c80476e4SDavid E. O'Brien *
20c80476e4SDavid E. O'Brien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21c80476e4SDavid E. O'Brien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22c80476e4SDavid E. O'Brien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23c80476e4SDavid E. O'Brien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24c80476e4SDavid E. O'Brien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25c80476e4SDavid E. O'Brien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26c80476e4SDavid E. O'Brien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27c80476e4SDavid E. O'Brien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28c80476e4SDavid E. O'Brien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29c80476e4SDavid E. O'Brien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30c80476e4SDavid E. O'Brien * SUCH DAMAGE.
31c80476e4SDavid E. O'Brien */
32c80476e4SDavid E. O'Brien #include "sh.h"
33c80476e4SDavid E. O'Brien #include "ed.h"
34c80476e4SDavid E. O'Brien #include "tw.h"
35c80476e4SDavid E. O'Brien
36c80476e4SDavid E. O'Brien /*
37c80476e4SDavid E. O'Brien * C shell
38c80476e4SDavid E. O'Brien */
39c80476e4SDavid E. O'Brien
4045e5710bSMark Peek #define INF INT_MAX
41c80476e4SDavid E. O'Brien
4245e5710bSMark Peek const struct biltins bfunc[] = {
43c80476e4SDavid E. O'Brien { ":", dozip, 0, INF },
44c80476e4SDavid E. O'Brien { "@", dolet, 0, INF },
45c80476e4SDavid E. O'Brien { "alias", doalias, 0, INF },
46c80476e4SDavid E. O'Brien { "alloc", showall, 0, 1 },
47c80476e4SDavid E. O'Brien #if defined(_CX_UX)
48c80476e4SDavid E. O'Brien { "att", doatt, 0, INF },
49c80476e4SDavid E. O'Brien #endif /* _CX_UX */
50c80476e4SDavid E. O'Brien { "bg", dobg, 0, INF },
51c80476e4SDavid E. O'Brien { "bindkey", dobindkey, 0, 8 },
52c80476e4SDavid E. O'Brien { "break", dobreak, 0, 0 },
53c80476e4SDavid E. O'Brien { "breaksw", doswbrk, 0, 0 },
54b2d5d167SMark Peek #ifdef _OSD_POSIX
55b2d5d167SMark Peek { "bs2cmd", dobs2cmd, 1, INF },
56b2d5d167SMark Peek #endif /* OBSOLETE */
57c80476e4SDavid E. O'Brien { "builtins", dobuiltins, 0, 0 },
58c80476e4SDavid E. O'Brien #ifdef KAI
59c80476e4SDavid E. O'Brien { "bye", goodbye, 0, 0 },
60c80476e4SDavid E. O'Brien #endif /* KAI */
61c80476e4SDavid E. O'Brien { "case", dozip, 0, 1 },
62c80476e4SDavid E. O'Brien { "cd", dochngd, 0, INF },
63c80476e4SDavid E. O'Brien { "chdir", dochngd, 0, INF },
64c80476e4SDavid E. O'Brien { "complete", docomplete, 0, INF },
65c80476e4SDavid E. O'Brien { "continue", docontin, 0, 0 },
66c80476e4SDavid E. O'Brien { "default", dozip, 0, 0 },
67c80476e4SDavid E. O'Brien { "dirs", dodirs, 0, INF },
68c80476e4SDavid E. O'Brien #if defined(_CRAY) && !defined(_CRAYMPP)
69c80476e4SDavid E. O'Brien { "dmmode", dodmmode, 0, 1 },
70c80476e4SDavid E. O'Brien #endif /* _CRAY && !_CRAYMPP */
71c80476e4SDavid E. O'Brien { "echo", doecho, 0, INF },
72c80476e4SDavid E. O'Brien { "echotc", doechotc, 0, INF },
73c80476e4SDavid E. O'Brien { "else", doelse, 0, INF },
74c80476e4SDavid E. O'Brien { "end", doend, 0, 0 },
75c80476e4SDavid E. O'Brien { "endif", dozip, 0, 0 },
76c80476e4SDavid E. O'Brien { "endsw", dozip, 0, 0 },
77c80476e4SDavid E. O'Brien { "eval", doeval, 0, INF },
78c80476e4SDavid E. O'Brien { "exec", execash, 1, INF },
79c80476e4SDavid E. O'Brien { "exit", doexit, 0, INF },
80c80476e4SDavid E. O'Brien { "fg", dofg, 0, INF },
81c80476e4SDavid E. O'Brien { "filetest", dofiletest, 2, INF },
82c80476e4SDavid E. O'Brien { "foreach", doforeach, 3, INF },
83c80476e4SDavid E. O'Brien #ifdef TCF
84c80476e4SDavid E. O'Brien { "getspath", dogetspath, 0, 0 },
85c80476e4SDavid E. O'Brien { "getxvers", dogetxvers, 0, 0 },
86c80476e4SDavid E. O'Brien #endif /* TCF */
87c80476e4SDavid E. O'Brien { "glob", doglob, 0, INF },
88c80476e4SDavid E. O'Brien { "goto", dogoto, 1, 1 },
89c80476e4SDavid E. O'Brien { "hashstat", hashstat, 0, 0 },
90c80476e4SDavid E. O'Brien { "history", dohist, 0, 2 },
91c80476e4SDavid E. O'Brien { "hup", dohup, 0, INF },
92c80476e4SDavid E. O'Brien { "if", doif, 1, INF },
93c80476e4SDavid E. O'Brien #ifdef apollo
94c80476e4SDavid E. O'Brien { "inlib", doinlib, 1, INF },
95c80476e4SDavid E. O'Brien #endif /* apollo */
96c80476e4SDavid E. O'Brien { "jobs", dojobs, 0, 1 },
97c80476e4SDavid E. O'Brien { "kill", dokill, 1, INF },
98c80476e4SDavid E. O'Brien #ifndef HAVENOLIMIT
99c80476e4SDavid E. O'Brien { "limit", dolimit, 0, 3 },
100c80476e4SDavid E. O'Brien #endif /* !HAVENOLIMIT */
101c80476e4SDavid E. O'Brien #ifdef OBSOLETE
102c80476e4SDavid E. O'Brien { "linedit", doecho, 0, INF },
103c80476e4SDavid E. O'Brien #endif /* OBSOLETE */
104c80476e4SDavid E. O'Brien #if !defined(HAVENOUTMP) && !defined(KAI)
105c80476e4SDavid E. O'Brien { "log", dolog, 0, 0 },
106c80476e4SDavid E. O'Brien #endif /* !HAVENOUTMP && !KAI */
107c80476e4SDavid E. O'Brien { "login", dologin, 0, 1 },
108c80476e4SDavid E. O'Brien { "logout", dologout, 0, 0 },
109c80476e4SDavid E. O'Brien { "ls-F", dolist, 0, INF },
110c80476e4SDavid E. O'Brien #ifdef TCF
111c80476e4SDavid E. O'Brien { "migrate", domigrate, 1, INF },
112c80476e4SDavid E. O'Brien #endif /* TCF */
113c80476e4SDavid E. O'Brien #ifdef NEWGRP
114b2d5d167SMark Peek { "newgrp", donewgrp, 0, 2 },
115c80476e4SDavid E. O'Brien #endif /* NEWGRP */
116c80476e4SDavid E. O'Brien { "nice", donice, 0, INF },
117c80476e4SDavid E. O'Brien { "nohup", donohup, 0, INF },
118c80476e4SDavid E. O'Brien { "notify", donotify, 0, INF },
119c80476e4SDavid E. O'Brien { "onintr", doonintr, 0, 2 },
120c80476e4SDavid E. O'Brien { "popd", dopopd, 0, INF },
121c80476e4SDavid E. O'Brien { "printenv", doprintenv, 0, 1 },
122c80476e4SDavid E. O'Brien { "pushd", dopushd, 0, INF },
123c80476e4SDavid E. O'Brien { "rehash", dohash, 0, 3 },
124c80476e4SDavid E. O'Brien { "repeat", dorepeat, 2, INF },
125c80476e4SDavid E. O'Brien #ifdef apollo
126c80476e4SDavid E. O'Brien { "rootnode", dorootnode, 1, 1 },
127c80476e4SDavid E. O'Brien #endif /* apollo */
128c80476e4SDavid E. O'Brien { "sched", dosched, 0, INF },
129c80476e4SDavid E. O'Brien { "set", doset, 0, INF },
130c80476e4SDavid E. O'Brien { "setenv", dosetenv, 0, 2 },
131c80476e4SDavid E. O'Brien #ifdef MACH
132c80476e4SDavid E. O'Brien { "setpath", dosetpath, 0, INF },
133c80476e4SDavid E. O'Brien #endif /* MACH */
134c80476e4SDavid E. O'Brien #ifdef TCF
135c80476e4SDavid E. O'Brien { "setspath", dosetspath, 1, INF },
136c80476e4SDavid E. O'Brien #endif /* TCF */
137c80476e4SDavid E. O'Brien { "settc", dosettc, 2, 2 },
138c80476e4SDavid E. O'Brien { "setty", dosetty, 0, INF },
139c80476e4SDavid E. O'Brien #ifdef TCF
140c80476e4SDavid E. O'Brien { "setxvers", dosetxvers, 0, 1 },
141c80476e4SDavid E. O'Brien #endif /* TCF */
142c80476e4SDavid E. O'Brien { "shift", shift, 0, 1 },
143c80476e4SDavid E. O'Brien { "source", dosource, 1, INF },
144c80476e4SDavid E. O'Brien { "stop", dostop, 1, INF },
145c80476e4SDavid E. O'Brien { "suspend", dosuspend, 0, 0 },
146c80476e4SDavid E. O'Brien { "switch", doswitch, 1, INF },
147c80476e4SDavid E. O'Brien { "telltc", dotelltc, 0, INF },
14823338178SMark Peek #ifndef WINNT_NATIVE
14923338178SMark Peek { "termname", dotermname, 0, 1 },
15023338178SMark Peek #endif
151c80476e4SDavid E. O'Brien { "time", dotime, 0, INF },
152c80476e4SDavid E. O'Brien #if defined(_CX_UX)
153c80476e4SDavid E. O'Brien { "ucb", doucb, 0, INF },
154c80476e4SDavid E. O'Brien #endif /* _CX_UX */
155c80476e4SDavid E. O'Brien { "umask", doumask, 0, 1 },
156c80476e4SDavid E. O'Brien { "unalias", unalias, 1, INF },
157c80476e4SDavid E. O'Brien { "uncomplete", douncomplete, 1, INF },
158c80476e4SDavid E. O'Brien { "unhash", dounhash, 0, 0 },
159c80476e4SDavid E. O'Brien #if defined(masscomp) || defined(_CX_UX)
160c80476e4SDavid E. O'Brien { "universe", douniverse, 0, INF },
161c80476e4SDavid E. O'Brien #endif /* masscomp || _CX_UX */
162c80476e4SDavid E. O'Brien #ifndef HAVENOLIMIT
163c80476e4SDavid E. O'Brien { "unlimit", dounlimit, 0, INF },
164c80476e4SDavid E. O'Brien #endif /* !HAVENOLIMIT */
165c80476e4SDavid E. O'Brien { "unset", unset, 1, INF },
166c80476e4SDavid E. O'Brien { "unsetenv", dounsetenv, 1, INF },
167c80476e4SDavid E. O'Brien #ifdef apollo
168c80476e4SDavid E. O'Brien { "ver", dover, 0, INF },
169c80476e4SDavid E. O'Brien #endif /* apollo */
170c80476e4SDavid E. O'Brien { "wait", dowait, 0, 0 },
171c80476e4SDavid E. O'Brien #ifdef WARP
172c80476e4SDavid E. O'Brien { "warp", dowarp, 0, 2 },
173c80476e4SDavid E. O'Brien #endif /* WARP */
174c80476e4SDavid E. O'Brien #if !defined(HAVENOUTMP) && defined(KAI)
175c80476e4SDavid E. O'Brien { "watchlog", dolog, 0, 0 },
176c80476e4SDavid E. O'Brien #endif /* !HAVENOUTMP && KAI */
177c80476e4SDavid E. O'Brien { "where", dowhere, 1, INF },
178c80476e4SDavid E. O'Brien { "which", dowhich, 1, INF },
179c80476e4SDavid E. O'Brien { "while", dowhile, 1, INF }
180c80476e4SDavid E. O'Brien };
181c80476e4SDavid E. O'Brien int nbfunc = sizeof bfunc / sizeof *bfunc;
182c80476e4SDavid E. O'Brien
183c80476e4SDavid E. O'Brien struct srch srchn[] = {
184c80476e4SDavid E. O'Brien { "@", TC_LET },
185c80476e4SDavid E. O'Brien { "break", TC_BREAK },
186c80476e4SDavid E. O'Brien { "breaksw", TC_BRKSW },
187c80476e4SDavid E. O'Brien { "case", TC_CASE },
188c80476e4SDavid E. O'Brien { "default", TC_DEFAULT },
189c80476e4SDavid E. O'Brien { "else", TC_ELSE },
190c80476e4SDavid E. O'Brien { "end", TC_END },
191c80476e4SDavid E. O'Brien { "endif", TC_ENDIF },
192c80476e4SDavid E. O'Brien { "endsw", TC_ENDSW },
193c80476e4SDavid E. O'Brien { "exit", TC_EXIT },
194c80476e4SDavid E. O'Brien { "foreach", TC_FOREACH },
195c80476e4SDavid E. O'Brien { "goto", TC_GOTO },
196c80476e4SDavid E. O'Brien { "if", TC_IF },
197c80476e4SDavid E. O'Brien { "label", TC_LABEL },
198c80476e4SDavid E. O'Brien { "set", TC_SET },
199c80476e4SDavid E. O'Brien { "switch", TC_SWITCH },
200c80476e4SDavid E. O'Brien { "while", TC_WHILE }
201c80476e4SDavid E. O'Brien };
202c80476e4SDavid E. O'Brien int nsrchn = sizeof srchn / sizeof *srchn;
203c80476e4SDavid E. O'Brien
204c80476e4SDavid E. O'Brien
205c80476e4SDavid E. O'Brien /*
206c80476e4SDavid E. O'Brien * Note: For some machines, (hpux eg.)
207c80476e4SDavid E. O'Brien * NSIG = number of signals + 1...
208c80476e4SDavid E. O'Brien * so we define 33 or 65 (POSIX) signals for
209c80476e4SDavid E. O'Brien * everybody
210c80476e4SDavid E. O'Brien */
211c80476e4SDavid E. O'Brien
212c80476e4SDavid E. O'Brien /* We define NUMSIG to avoid changing NSIG or MAXSIG */
213*19d2e3deSDmitry Chagin #if defined(POSIX) && (!defined(__CYGWIN__) || defined (__x86_64__))
214c80476e4SDavid E. O'Brien # define NUMSIG 65
215c80476e4SDavid E. O'Brien #else /* !POSIX */
216c80476e4SDavid E. O'Brien # define NUMSIG 33
217c80476e4SDavid E. O'Brien #endif /* POSIX */
218c80476e4SDavid E. O'Brien
219c80476e4SDavid E. O'Brien int nsig = NUMSIG - 1; /* This should be the number of real signals */
220c80476e4SDavid E. O'Brien /* not counting signal 0 */
221c80476e4SDavid E. O'Brien struct mesg mesg[NUMSIG]; /* Arrays start at [0] so we initialize from */
222c80476e4SDavid E. O'Brien /* 0 to 32 or 64, the max real signal number */
223c80476e4SDavid E. O'Brien
224c80476e4SDavid E. O'Brien void
mesginit(void)22545e5710bSMark Peek mesginit(void)
226c80476e4SDavid E. O'Brien {
227c80476e4SDavid E. O'Brien
228c80476e4SDavid E. O'Brien #ifdef NLS_CATALOGS
229c80476e4SDavid E. O'Brien int i;
230c80476e4SDavid E. O'Brien
231c80476e4SDavid E. O'Brien for (i = 0; i < NUMSIG; i++) {
23245e5710bSMark Peek xfree((char *)(intptr_t)mesg[i].pname);
233c80476e4SDavid E. O'Brien mesg[i].pname = NULL;
234c80476e4SDavid E. O'Brien }
235c80476e4SDavid E. O'Brien #endif /* NLS_CATALOGS */
236c80476e4SDavid E. O'Brien
237c80476e4SDavid E. O'Brien #if defined(SIGNULL) || defined(DECOSF1)
238c80476e4SDavid E. O'Brien # ifndef SIGNULL
239c80476e4SDavid E. O'Brien # define SIGNULL 0
240c80476e4SDavid E. O'Brien # endif /* !SIGNULL */
241c80476e4SDavid E. O'Brien if (mesg[SIGNULL].pname == NULL) {
242c80476e4SDavid E. O'Brien mesg[SIGNULL].iname = "NULL";
243c80476e4SDavid E. O'Brien mesg[SIGNULL].pname = CSAVS(2, 1, "Null signal");
244c80476e4SDavid E. O'Brien }
245c80476e4SDavid E. O'Brien #endif /* SIGNULL || DECOSF1 */
246c80476e4SDavid E. O'Brien
247c80476e4SDavid E. O'Brien #ifdef SIGHUP
248c80476e4SDavid E. O'Brien if (mesg[SIGHUP].pname == NULL) {
249c80476e4SDavid E. O'Brien mesg[SIGHUP].iname = "HUP";
250c80476e4SDavid E. O'Brien mesg[SIGHUP].pname = CSAVS(2, 2, "Hangup");
251c80476e4SDavid E. O'Brien }
252c80476e4SDavid E. O'Brien #endif /* SIGHUP */
253c80476e4SDavid E. O'Brien
254c80476e4SDavid E. O'Brien #ifdef SIGINT
255c80476e4SDavid E. O'Brien if (mesg[SIGINT].pname == NULL) {
256c80476e4SDavid E. O'Brien mesg[SIGINT].iname = "INT";
257c80476e4SDavid E. O'Brien mesg[SIGINT].pname = CSAVS(2, 3, "Interrupt");
258c80476e4SDavid E. O'Brien }
259c80476e4SDavid E. O'Brien #endif /* SIGINT */
260c80476e4SDavid E. O'Brien
261c80476e4SDavid E. O'Brien #ifdef SIGQUIT
262c80476e4SDavid E. O'Brien if (mesg[SIGQUIT].pname == NULL) {
263c80476e4SDavid E. O'Brien mesg[SIGQUIT].iname = "QUIT";
264c80476e4SDavid E. O'Brien mesg[SIGQUIT].pname = CSAVS(2, 4, "Quit");
265c80476e4SDavid E. O'Brien }
266c80476e4SDavid E. O'Brien #endif /* SIGQUIT */
267c80476e4SDavid E. O'Brien
268c80476e4SDavid E. O'Brien #ifdef SIGILL
269c80476e4SDavid E. O'Brien if (mesg[SIGILL].pname == NULL) {
270c80476e4SDavid E. O'Brien mesg[SIGILL].iname = "ILL";
271c80476e4SDavid E. O'Brien mesg[SIGILL].pname = CSAVS(2, 5, "Illegal instruction");
272c80476e4SDavid E. O'Brien }
273c80476e4SDavid E. O'Brien #endif /* SIGILL */
274c80476e4SDavid E. O'Brien
275c80476e4SDavid E. O'Brien #ifdef SIGTRAP
276c80476e4SDavid E. O'Brien if (mesg[SIGTRAP].pname == NULL) {
277c80476e4SDavid E. O'Brien mesg[SIGTRAP].iname = "TRAP";
278c80476e4SDavid E. O'Brien mesg[SIGTRAP].pname = CSAVS(2, 6, "Trace/BPT trap");
279c80476e4SDavid E. O'Brien }
280c80476e4SDavid E. O'Brien #endif /* SIGTRAP */
281c80476e4SDavid E. O'Brien
282c80476e4SDavid E. O'Brien #ifdef SIGABRT
283c80476e4SDavid E. O'Brien if (mesg[SIGABRT].pname == NULL) {
284c80476e4SDavid E. O'Brien mesg[SIGABRT].iname = "ABRT";
285c80476e4SDavid E. O'Brien mesg[SIGABRT].pname = CSAVS(2, 7, "Abort");
286c80476e4SDavid E. O'Brien }
287c80476e4SDavid E. O'Brien #endif /* SIGABRT */
288c80476e4SDavid E. O'Brien
289c80476e4SDavid E. O'Brien #ifdef SIGIOT
290c80476e4SDavid E. O'Brien if (mesg[SIGIOT].pname == NULL) {
291c80476e4SDavid E. O'Brien mesg[SIGIOT].iname = "IOT";
292c80476e4SDavid E. O'Brien mesg[SIGIOT].pname = CSAVS(2, 8, "IOT trap");
293c80476e4SDavid E. O'Brien }
294c80476e4SDavid E. O'Brien #endif /* SIGIOT */
295c80476e4SDavid E. O'Brien
296c80476e4SDavid E. O'Brien #ifdef SIGDANGER
297c80476e4SDavid E. O'Brien /* aiws */
298c80476e4SDavid E. O'Brien if (mesg[SIGDANGER].pname == NULL) {
299c80476e4SDavid E. O'Brien mesg[SIGDANGER].iname = "DANGER";
300c80476e4SDavid E. O'Brien mesg[SIGDANGER].pname = CSAVS(2, 9, "System Crash Imminent");
301c80476e4SDavid E. O'Brien }
302c80476e4SDavid E. O'Brien #endif /* SIGDANGER */
303c80476e4SDavid E. O'Brien
304c80476e4SDavid E. O'Brien #ifdef SIGERR
305c80476e4SDavid E. O'Brien /* _CRAY */
306c80476e4SDavid E. O'Brien if (mesg[SIGERR].pname == NULL) {
307c80476e4SDavid E. O'Brien mesg[SIGERR].iname = "ERR";
308c80476e4SDavid E. O'Brien mesg[SIGERR].pname = CSAVS(2, 10, "Error exit");
309c80476e4SDavid E. O'Brien }
310c80476e4SDavid E. O'Brien #endif /* SIGERR */
311c80476e4SDavid E. O'Brien
312c80476e4SDavid E. O'Brien #ifdef SIGEMT
313c80476e4SDavid E. O'Brien if (mesg[SIGEMT].pname == NULL) {
314c80476e4SDavid E. O'Brien mesg[SIGEMT].iname = "EMT";
315c80476e4SDavid E. O'Brien mesg[SIGEMT].pname = CSAVS(2, 11, "EMT trap");
316c80476e4SDavid E. O'Brien }
317c80476e4SDavid E. O'Brien #endif /* SIGEMT */
318c80476e4SDavid E. O'Brien
319c80476e4SDavid E. O'Brien #ifdef SIGFPE
320c80476e4SDavid E. O'Brien if (mesg[SIGFPE].pname == NULL) {
321c80476e4SDavid E. O'Brien mesg[SIGFPE].iname = "FPE";
322c80476e4SDavid E. O'Brien mesg[SIGFPE].pname = CSAVS(2, 12, "Floating exception");
323c80476e4SDavid E. O'Brien }
324c80476e4SDavid E. O'Brien #endif /* SIGFPE */
325c80476e4SDavid E. O'Brien
326c80476e4SDavid E. O'Brien #ifdef SIGKILL
327c80476e4SDavid E. O'Brien if (mesg[SIGKILL].pname == NULL) {
328c80476e4SDavid E. O'Brien mesg[SIGKILL].iname = "KILL";
329c80476e4SDavid E. O'Brien mesg[SIGKILL].pname = CSAVS(2, 13, "Killed");
330c80476e4SDavid E. O'Brien }
331c80476e4SDavid E. O'Brien #endif /* SIGKILL */
332c80476e4SDavid E. O'Brien
333c80476e4SDavid E. O'Brien #ifdef SIGUSR1
334c80476e4SDavid E. O'Brien if (mesg[SIGUSR1].pname == NULL) {
335c80476e4SDavid E. O'Brien mesg[SIGUSR1].iname = "USR1";
336c80476e4SDavid E. O'Brien mesg[SIGUSR1].pname = CSAVS(2, 14, "User signal 1");
337c80476e4SDavid E. O'Brien }
338c80476e4SDavid E. O'Brien #endif /* SIGUSR1 */
339c80476e4SDavid E. O'Brien
340c80476e4SDavid E. O'Brien #ifdef SIGUSR2
341c80476e4SDavid E. O'Brien if (mesg[SIGUSR2].pname == NULL) {
342c80476e4SDavid E. O'Brien mesg[SIGUSR2].iname = "USR2";
343c80476e4SDavid E. O'Brien mesg[SIGUSR2].pname = CSAVS(2, 15, "User signal 2");
344c80476e4SDavid E. O'Brien }
345c80476e4SDavid E. O'Brien #endif /* SIGUSR2 */
346c80476e4SDavid E. O'Brien
347c80476e4SDavid E. O'Brien #ifdef SIGSEGV
348c80476e4SDavid E. O'Brien if (mesg[SIGSEGV].pname == NULL) {
349c80476e4SDavid E. O'Brien mesg[SIGSEGV].iname = "SEGV";
350c80476e4SDavid E. O'Brien mesg[SIGSEGV].pname = CSAVS(2, 16, "Segmentation fault");
351c80476e4SDavid E. O'Brien }
352c80476e4SDavid E. O'Brien #endif /* SIGSEGV */
353c80476e4SDavid E. O'Brien
354c80476e4SDavid E. O'Brien #ifdef SIGBUS
355c80476e4SDavid E. O'Brien if (mesg[SIGBUS].pname == NULL) {
356c80476e4SDavid E. O'Brien mesg[SIGBUS].iname = "BUS";
357c80476e4SDavid E. O'Brien mesg[SIGBUS].pname = CSAVS(2, 17, "Bus error");
358c80476e4SDavid E. O'Brien }
359c80476e4SDavid E. O'Brien #endif /* SIGBUS */
360c80476e4SDavid E. O'Brien
361c80476e4SDavid E. O'Brien #ifdef SIGPRE
362c80476e4SDavid E. O'Brien /* _CRAY || IBMAIX */
363c80476e4SDavid E. O'Brien if (mesg[SIGPRE].pname == NULL) {
364c80476e4SDavid E. O'Brien mesg[SIGPRE].iname = "PRE";
365c80476e4SDavid E. O'Brien mesg[SIGPRE].pname = CSAVS(2, 18, "Program range error");
366c80476e4SDavid E. O'Brien }
367c80476e4SDavid E. O'Brien #endif /* SIGPRE */
368c80476e4SDavid E. O'Brien
369c80476e4SDavid E. O'Brien #ifdef SIGORE
370c80476e4SDavid E. O'Brien /* _CRAY */
371c80476e4SDavid E. O'Brien if (mesg[SIGORE].pname == NULL) {
372c80476e4SDavid E. O'Brien mesg[SIGORE].iname = "ORE";
373c80476e4SDavid E. O'Brien mesg[SIGORE].pname = CSAVS(2, 19, "Operand range error");
374c80476e4SDavid E. O'Brien }
375c80476e4SDavid E. O'Brien #endif /* SIGORE */
376c80476e4SDavid E. O'Brien
377c80476e4SDavid E. O'Brien #ifdef SIGSYS
378c80476e4SDavid E. O'Brien if (mesg[SIGSYS].pname == NULL) {
379c80476e4SDavid E. O'Brien mesg[SIGSYS].iname = "SYS";
380c80476e4SDavid E. O'Brien mesg[SIGSYS].pname = CSAVS(2, 20, "Bad system call");
381c80476e4SDavid E. O'Brien }
382c80476e4SDavid E. O'Brien #endif /* SIGSYS */
383c80476e4SDavid E. O'Brien
384c80476e4SDavid E. O'Brien #ifdef SIGPIPE
385c80476e4SDavid E. O'Brien if (mesg[SIGPIPE].pname == NULL) {
386c80476e4SDavid E. O'Brien mesg[SIGPIPE].iname = "PIPE";
387c80476e4SDavid E. O'Brien mesg[SIGPIPE].pname = CSAVS(2, 21, "Broken pipe");
388c80476e4SDavid E. O'Brien }
389c80476e4SDavid E. O'Brien #endif /* SIGPIPE */
390c80476e4SDavid E. O'Brien
391c80476e4SDavid E. O'Brien #ifdef SIGALRM
392c80476e4SDavid E. O'Brien if (mesg[SIGALRM].pname == NULL) {
393c80476e4SDavid E. O'Brien mesg[SIGALRM].iname = "ALRM";
394c80476e4SDavid E. O'Brien mesg[SIGALRM].pname = CSAVS(2, 22, "Alarm clock");
395c80476e4SDavid E. O'Brien }
396c80476e4SDavid E. O'Brien #endif /* SIGALRM */
397c80476e4SDavid E. O'Brien
398c80476e4SDavid E. O'Brien #ifdef SIGTERM
399c80476e4SDavid E. O'Brien if (mesg[SIGTERM].pname == NULL) {
400c80476e4SDavid E. O'Brien mesg[SIGTERM].iname = "TERM";
401c80476e4SDavid E. O'Brien mesg[SIGTERM].pname = CSAVS(2, 23, "Terminated");
402c80476e4SDavid E. O'Brien }
403c80476e4SDavid E. O'Brien #endif /* SIGTERM */
404c80476e4SDavid E. O'Brien
405c80476e4SDavid E. O'Brien /* SIGCLD vs SIGCHLD */
406c80476e4SDavid E. O'Brien #if !defined(SIGCHLD) || defined(SOLARIS2) || defined(apollo) || defined(__EMX__)
407c80476e4SDavid E. O'Brien /* If we don't define SIGCHLD, or our OS prefers SIGCLD to SIGCHLD, */
408c80476e4SDavid E. O'Brien /* check for SIGCLD */
409c80476e4SDavid E. O'Brien # ifdef SIGCLD
410c80476e4SDavid E. O'Brien if (mesg[SIGCLD].pname == NULL) {
411c80476e4SDavid E. O'Brien mesg[SIGCLD].iname = "CLD";
412c80476e4SDavid E. O'Brien # ifdef BSDJOBS
413c80476e4SDavid E. O'Brien mesg[SIGCLD].pname = CSAVS(2, 24, "Child status change");
414c80476e4SDavid E. O'Brien # else /* !BSDJOBS */
415c80476e4SDavid E. O'Brien mesg[SIGCLD].pname = CSAVS(2, 25, "Death of child");
416c80476e4SDavid E. O'Brien # endif /* BSDJOBS */
417c80476e4SDavid E. O'Brien }
418c80476e4SDavid E. O'Brien # endif /* SIGCLD */
419c80476e4SDavid E. O'Brien #else /* !(!SIGCHLD || SOLARIS2 || apollo || __EMX__) */
420c80476e4SDavid E. O'Brien /* We probably define SIGCHLD */
421c80476e4SDavid E. O'Brien # ifdef SIGCHLD
422c80476e4SDavid E. O'Brien if (mesg[SIGCHLD].pname == NULL) {
423c80476e4SDavid E. O'Brien mesg[SIGCHLD].iname = "CHLD";
424c80476e4SDavid E. O'Brien # ifdef BSDJOBS
425c80476e4SDavid E. O'Brien mesg[SIGCHLD].pname = CSAVS(2, 27, "Child stopped or exited");
426c80476e4SDavid E. O'Brien # else /* !BSDJOBS */
427c80476e4SDavid E. O'Brien mesg[SIGCHLD].pname = CSAVS(2, 28, "Child exited");
428c80476e4SDavid E. O'Brien # endif /* BSDJOBS */
429c80476e4SDavid E. O'Brien }
430c80476e4SDavid E. O'Brien # endif /* SIGCHLD */
431c80476e4SDavid E. O'Brien #endif /* !SIGCHLD || SOLARIS2 || apollo || __EMX__ */
432c80476e4SDavid E. O'Brien
433c80476e4SDavid E. O'Brien #ifdef SIGAPOLLO
434c80476e4SDavid E. O'Brien /* apollo */
435c80476e4SDavid E. O'Brien if (mesg[SIGAPOLLO].pname == NULL) {
436c80476e4SDavid E. O'Brien mesg[SIGAPOLLO].iname = "APOLLO";
437c80476e4SDavid E. O'Brien mesg[SIGAPOLLO].pname = CSAVS(2, 26, "Apollo-specific fault");
438c80476e4SDavid E. O'Brien }
439c80476e4SDavid E. O'Brien #endif /* SIGAPOLLO */
440c80476e4SDavid E. O'Brien
441c80476e4SDavid E. O'Brien #ifdef SIGPWR
442c80476e4SDavid E. O'Brien if (mesg[SIGPWR].pname == NULL) {
443c80476e4SDavid E. O'Brien mesg[SIGPWR].iname = "PWR";
444c80476e4SDavid E. O'Brien mesg[SIGPWR].pname = CSAVS(2, 29, "Power failure");
445c80476e4SDavid E. O'Brien }
446c80476e4SDavid E. O'Brien #endif /* SIGPWR */
447c80476e4SDavid E. O'Brien
448c80476e4SDavid E. O'Brien #ifdef SIGLOST
449c80476e4SDavid E. O'Brien if (mesg[SIGLOST].pname == NULL) {
450c80476e4SDavid E. O'Brien mesg[SIGLOST].iname = "LOST";
451c80476e4SDavid E. O'Brien mesg[SIGLOST].pname = CSAVS(2, 30, "Resource Lost");
452c80476e4SDavid E. O'Brien }
453c80476e4SDavid E. O'Brien #endif /* SIGLOST */
454c80476e4SDavid E. O'Brien
455c80476e4SDavid E. O'Brien #ifdef SIGBREAK
456c80476e4SDavid E. O'Brien /* __EMX__ */
457c80476e4SDavid E. O'Brien if (mesg[SIGBREAK].pname == NULL) {
458c80476e4SDavid E. O'Brien mesg[SIGBREAK].iname = "BREAK";
459c80476e4SDavid E. O'Brien mesg[SIGBREAK].pname = CSAVS(2, 31, "Break (Ctrl-Break)");
460c80476e4SDavid E. O'Brien }
461c80476e4SDavid E. O'Brien #endif /* SIGBREAK */
462c80476e4SDavid E. O'Brien
463c80476e4SDavid E. O'Brien #ifdef SIGIO
464c80476e4SDavid E. O'Brien # if !defined(SIGPOLL) || SIGPOLL != SIGIO
465c80476e4SDavid E. O'Brien if (mesg[SIGIO].pname == NULL) {
466c80476e4SDavid E. O'Brien mesg[SIGIO].iname = "IO";
467c80476e4SDavid E. O'Brien # ifdef cray
468c80476e4SDavid E. O'Brien mesg[SIGIO].pname = CSAVS(2, 32, "Input/output possible signal");
469c80476e4SDavid E. O'Brien # else /* !cray */
470c80476e4SDavid E. O'Brien mesg[SIGIO].pname = CSAVS(2, 33, "Asynchronous I/O (select)");
471c80476e4SDavid E. O'Brien # endif /* cray */
472c80476e4SDavid E. O'Brien }
473c80476e4SDavid E. O'Brien # endif /* !SIGPOLL || SIGPOLL != SIGIO */
474c80476e4SDavid E. O'Brien #endif /* SIGIO */
475c80476e4SDavid E. O'Brien
476c80476e4SDavid E. O'Brien #ifdef SIGURG
477c80476e4SDavid E. O'Brien if (mesg[SIGURG].pname == NULL) {
478c80476e4SDavid E. O'Brien mesg[SIGURG].iname = "URG";
479c80476e4SDavid E. O'Brien mesg[SIGURG].pname = CSAVS(2, 34, "Urgent condition on I/O channel");
480c80476e4SDavid E. O'Brien }
481c80476e4SDavid E. O'Brien #endif /* SIGURG */
482c80476e4SDavid E. O'Brien
483c80476e4SDavid E. O'Brien #ifdef SIGMT
484c80476e4SDavid E. O'Brien /* cray */
485c80476e4SDavid E. O'Brien if (mesg[SIGMT].pname == NULL) {
486c80476e4SDavid E. O'Brien mesg[SIGMT].iname = "MT";
487c80476e4SDavid E. O'Brien mesg[SIGMT].pname = CSAVS(2, 35, "Multitasking wake-up");
488c80476e4SDavid E. O'Brien }
489c80476e4SDavid E. O'Brien #endif /* SIGMT */
490c80476e4SDavid E. O'Brien
491c80476e4SDavid E. O'Brien #ifdef SIGMTKILL
492c80476e4SDavid E. O'Brien /* cray */
493c80476e4SDavid E. O'Brien if (mesg[SIGMTKILL].pname == NULL) {
494c80476e4SDavid E. O'Brien mesg[SIGMTKILL].iname = "MTKILL";
495c80476e4SDavid E. O'Brien mesg[SIGMTKILL].pname = CSAVS(2, 36, "Multitasking kill");
496c80476e4SDavid E. O'Brien }
497c80476e4SDavid E. O'Brien #endif /* SIGMTKILL */
498c80476e4SDavid E. O'Brien
499c80476e4SDavid E. O'Brien #ifdef SIGBUFIO
500c80476e4SDavid E. O'Brien /* _CRAYCOM */
501c80476e4SDavid E. O'Brien if (mesg[SIGBUFIO].pname == NULL) {
502c80476e4SDavid E. O'Brien mesg[SIGBUFIO].iname = "BUFIO";
503c80476e4SDavid E. O'Brien mesg[SIGBUFIO].pname = CSAVS(2, 37,
504c80476e4SDavid E. O'Brien "Fortran asynchronous I/O completion");
505c80476e4SDavid E. O'Brien }
506c80476e4SDavid E. O'Brien #endif /* SIGBUFIO */
507c80476e4SDavid E. O'Brien
508c80476e4SDavid E. O'Brien #ifdef SIGRECOVERY
509c80476e4SDavid E. O'Brien /* _CRAYCOM */
510c80476e4SDavid E. O'Brien if (mesg[SIGRECOVERY].pname == NULL) {
511c80476e4SDavid E. O'Brien mesg[SIGRECOVERY].iname = "RECOVERY";
512c80476e4SDavid E. O'Brien mesg[SIGRECOVERY].pname = CSAVS(2, 38, "Recovery");
513c80476e4SDavid E. O'Brien }
514c80476e4SDavid E. O'Brien #endif /* SIGRECOVERY */
515c80476e4SDavid E. O'Brien
516c80476e4SDavid E. O'Brien #ifdef SIGUME
517c80476e4SDavid E. O'Brien /* _CRAYCOM */
518c80476e4SDavid E. O'Brien if (mesg[SIGUME].pname == NULL) {
519c80476e4SDavid E. O'Brien mesg[SIGUME].iname = "UME";
520c80476e4SDavid E. O'Brien mesg[SIGUME].pname = CSAVS(2, 39, "Uncorrectable memory error");
521c80476e4SDavid E. O'Brien }
522c80476e4SDavid E. O'Brien #endif /* SIGUME */
523c80476e4SDavid E. O'Brien
524c80476e4SDavid E. O'Brien #ifdef SIGCPULIM
525c80476e4SDavid E. O'Brien /* _CRAYCOM */
526c80476e4SDavid E. O'Brien if (mesg[SIGCPULIM].pname == NULL) {
527c80476e4SDavid E. O'Brien mesg[SIGCPULIM].iname = "CPULIM";
528c80476e4SDavid E. O'Brien mesg[SIGCPULIM].pname = CSAVS(2, 40, "CPU time limit exceeded");
529c80476e4SDavid E. O'Brien }
530c80476e4SDavid E. O'Brien #endif /* SIGCPULIM */
531c80476e4SDavid E. O'Brien
532c80476e4SDavid E. O'Brien #ifdef SIGSHUTDN
533c80476e4SDavid E. O'Brien /* _CRAYCOM */
534c80476e4SDavid E. O'Brien if (mesg[SIGSHUTDN].pname == NULL) {
535c80476e4SDavid E. O'Brien mesg[SIGSHUTDN].iname = "SHUTDN";
536c80476e4SDavid E. O'Brien mesg[SIGSHUTDN].pname = CSAVS(2, 41, "System shutdown imminent");
537c80476e4SDavid E. O'Brien }
538c80476e4SDavid E. O'Brien #endif /* SIGSHUTDN */
539c80476e4SDavid E. O'Brien
540c80476e4SDavid E. O'Brien #ifdef SIGNOWAK
541c80476e4SDavid E. O'Brien /* _CRAYCOM */
542c80476e4SDavid E. O'Brien if (mesg[SIGNOWAK].pname == NULL) {
543c80476e4SDavid E. O'Brien mesg[SIGNOWAK].iname = "NOWAK";
544c80476e4SDavid E. O'Brien mesg[SIGNOWAK].pname = CSAVS(2, 42,
545c80476e4SDavid E. O'Brien "Micro-tasking group-no wakeup flag set");
546c80476e4SDavid E. O'Brien }
547c80476e4SDavid E. O'Brien #endif /* SIGNOWAK */
548c80476e4SDavid E. O'Brien
549c80476e4SDavid E. O'Brien #ifdef SIGTHERR
550c80476e4SDavid E. O'Brien /* _CRAYCOM */
551c80476e4SDavid E. O'Brien if (mesg[SIGTHERR].pname == NULL) {
552c80476e4SDavid E. O'Brien mesg[SIGTHERR].iname = "THERR";
553c80476e4SDavid E. O'Brien mesg[SIGTHERR].pname = CSAVS(2, 43,
554c80476e4SDavid E. O'Brien "Thread error - (use cord -T for detailed info)");
555c80476e4SDavid E. O'Brien }
556c80476e4SDavid E. O'Brien #endif /* SIGTHERR */
557c80476e4SDavid E. O'Brien
558c80476e4SDavid E. O'Brien #ifdef SIGRPE
559c80476e4SDavid E. O'Brien /* cray */
560c80476e4SDavid E. O'Brien if (mesg[SIGRPE].pname == NULL) {
561c80476e4SDavid E. O'Brien mesg[SIGRPE].pname = CSAVS(2, 44, "CRAY Y-MP register parity error");
562c80476e4SDavid E. O'Brien mesg[SIGRPE].iname = "RPE";
563c80476e4SDavid E. O'Brien }
564c80476e4SDavid E. O'Brien #endif /* SIGRPE */
565c80476e4SDavid E. O'Brien
566c80476e4SDavid E. O'Brien #ifdef SIGINFO
567c80476e4SDavid E. O'Brien if (mesg[SIGINFO].pname == NULL) {
568c80476e4SDavid E. O'Brien mesg[SIGINFO].iname = "INFO";
569c80476e4SDavid E. O'Brien mesg[SIGINFO].pname = CSAVS(2, 45, "Information request");
570c80476e4SDavid E. O'Brien }
571c80476e4SDavid E. O'Brien #endif /* SIGINFO */
572c80476e4SDavid E. O'Brien
573c80476e4SDavid E. O'Brien #ifdef SIGSTOP
574c80476e4SDavid E. O'Brien if (mesg[SIGSTOP].pname == NULL) {
575c80476e4SDavid E. O'Brien mesg[SIGSTOP].iname = "STOP";
576c80476e4SDavid E. O'Brien # ifdef SUSPENDED
577c80476e4SDavid E. O'Brien mesg[SIGSTOP].pname = CSAVS(2, 46, "Suspended (signal)");
578c80476e4SDavid E. O'Brien # else /* !SUSPENDED */
579c80476e4SDavid E. O'Brien mesg[SIGSTOP].pname = CSAVS(2, 47, "Stopped (signal)");
580c80476e4SDavid E. O'Brien # endif /* SUSPENDED */
581c80476e4SDavid E. O'Brien }
582c80476e4SDavid E. O'Brien #endif /* SIGSTOP */
583c80476e4SDavid E. O'Brien
584c80476e4SDavid E. O'Brien #ifdef SIGTSTP
585c80476e4SDavid E. O'Brien if (mesg[SIGTSTP].pname == NULL) {
586c80476e4SDavid E. O'Brien mesg[SIGTSTP].iname = "TSTP";
587c80476e4SDavid E. O'Brien # ifdef SUSPENDED
588c80476e4SDavid E. O'Brien mesg[SIGTSTP].pname = CSAVS(2, 48, "Suspended");
589c80476e4SDavid E. O'Brien # else /* !SUSPENDED */
590c80476e4SDavid E. O'Brien mesg[SIGTSTP].pname = CSAVS(2, 49, "Stopped");
591c80476e4SDavid E. O'Brien # endif /* SUSPENDED */
592c80476e4SDavid E. O'Brien }
593c80476e4SDavid E. O'Brien #endif /* SIGTSTP */
594c80476e4SDavid E. O'Brien
595c80476e4SDavid E. O'Brien #ifdef SIGCONT
596c80476e4SDavid E. O'Brien if (mesg[SIGCONT].pname == NULL) {
597c80476e4SDavid E. O'Brien mesg[SIGCONT].iname = "CONT";
598c80476e4SDavid E. O'Brien mesg[SIGCONT].pname = CSAVS(2, 50, "Continued");
599c80476e4SDavid E. O'Brien }
600c80476e4SDavid E. O'Brien #endif /* SIGCONT */
601c80476e4SDavid E. O'Brien
602c80476e4SDavid E. O'Brien #ifdef SIGTTIN
603c80476e4SDavid E. O'Brien if (mesg[SIGTTIN].pname == NULL) {
604c80476e4SDavid E. O'Brien mesg[SIGTTIN].iname = "TTIN";
605c80476e4SDavid E. O'Brien # ifdef SUSPENDED
606c80476e4SDavid E. O'Brien mesg[SIGTTIN].pname = CSAVS(2, 51, "Suspended (tty input)");
607c80476e4SDavid E. O'Brien # else /* !SUSPENDED */
608c80476e4SDavid E. O'Brien mesg[SIGTTIN].pname = CSAVS(2, 52, "Stopped (tty input)");
609c80476e4SDavid E. O'Brien # endif /* SUSPENDED */
610c80476e4SDavid E. O'Brien }
611c80476e4SDavid E. O'Brien #endif /* SIGTTIN */
612c80476e4SDavid E. O'Brien
613c80476e4SDavid E. O'Brien #ifdef SIGTTOU
614c80476e4SDavid E. O'Brien if (mesg[SIGTTOU].pname == NULL) {
615c80476e4SDavid E. O'Brien mesg[SIGTTOU].iname = "TTOU";
616c80476e4SDavid E. O'Brien # ifdef SUSPENDED
617c80476e4SDavid E. O'Brien mesg[SIGTTOU].pname = CSAVS(2, 53, "Suspended (tty output)");
618c80476e4SDavid E. O'Brien # else /* SUSPENDED */
619c80476e4SDavid E. O'Brien mesg[SIGTTOU].pname = CSAVS(2, 54, "Stopped (tty output)");
620c80476e4SDavid E. O'Brien # endif /* SUSPENDED */
621c80476e4SDavid E. O'Brien }
622c80476e4SDavid E. O'Brien #endif /* SIGTTOU */
623c80476e4SDavid E. O'Brien
624c80476e4SDavid E. O'Brien #ifdef SIGWIND
625c80476e4SDavid E. O'Brien /* UNIXPC */
626c80476e4SDavid E. O'Brien if (mesg[SIGWIND].pname == NULL) {
627c80476e4SDavid E. O'Brien mesg[SIGWIND].iname = "WIND";
628c80476e4SDavid E. O'Brien mesg[SIGWIND].pname = CSAVS(2, 55, "Window status changed");
629c80476e4SDavid E. O'Brien }
630c80476e4SDavid E. O'Brien #endif /* SIGWIND */
631c80476e4SDavid E. O'Brien
632c80476e4SDavid E. O'Brien #ifdef SIGWINDOW
633c80476e4SDavid E. O'Brien if (mesg[SIGWINDOW].pname == NULL) {
634c80476e4SDavid E. O'Brien mesg[SIGWINDOW].iname = "WINDOW";
635c80476e4SDavid E. O'Brien mesg[SIGWINDOW].pname = CSAVS(2, 56, "Window size changed");
636c80476e4SDavid E. O'Brien }
637c80476e4SDavid E. O'Brien #endif /* SIGWINDOW */
638c80476e4SDavid E. O'Brien
639c80476e4SDavid E. O'Brien #ifdef SIGWINCH
640c80476e4SDavid E. O'Brien if (mesg[SIGWINCH].pname == NULL) {
641c80476e4SDavid E. O'Brien mesg[SIGWINCH].iname = "WINCH";
642c80476e4SDavid E. O'Brien mesg[SIGWINCH].pname = CSAVS(2, 56, "Window size changed");
643c80476e4SDavid E. O'Brien }
644c80476e4SDavid E. O'Brien #endif /* SIGWINCH */
645c80476e4SDavid E. O'Brien
646c80476e4SDavid E. O'Brien #ifdef SIGPHONE
647c80476e4SDavid E. O'Brien /* UNIXPC */
648c80476e4SDavid E. O'Brien if (mesg[SIGPHONE].pname == NULL) {
649c80476e4SDavid E. O'Brien mesg[SIGPHONE].iname = "PHONE";
650c80476e4SDavid E. O'Brien mesg[SIGPHONE].pname = CSAVS(2, 57, "Phone status changed");
651c80476e4SDavid E. O'Brien }
652c80476e4SDavid E. O'Brien # endif /* SIGPHONE */
653c80476e4SDavid E. O'Brien
654c80476e4SDavid E. O'Brien #ifdef SIGXCPU
655c80476e4SDavid E. O'Brien if (mesg[SIGXCPU].pname == NULL) {
656c80476e4SDavid E. O'Brien mesg[SIGXCPU].iname = "XCPU";
657c80476e4SDavid E. O'Brien mesg[SIGXCPU].pname = CSAVS(2, 58, "Cputime limit exceeded");
658c80476e4SDavid E. O'Brien }
659c80476e4SDavid E. O'Brien #endif /* SIGXCPU */
660c80476e4SDavid E. O'Brien
661c80476e4SDavid E. O'Brien #ifdef SIGXFSZ
662c80476e4SDavid E. O'Brien if (mesg[SIGXFSZ].pname == NULL) {
663c80476e4SDavid E. O'Brien mesg[SIGXFSZ].iname = "XFSZ";
664c80476e4SDavid E. O'Brien mesg[SIGXFSZ].pname = CSAVS(2, 59, "Filesize limit exceeded");
665c80476e4SDavid E. O'Brien }
666c80476e4SDavid E. O'Brien #endif /* SIGXFSZ */
667c80476e4SDavid E. O'Brien
668c80476e4SDavid E. O'Brien #ifdef SIGVTALRM
669c80476e4SDavid E. O'Brien if (mesg[SIGVTALRM].pname == NULL) {
670c80476e4SDavid E. O'Brien mesg[SIGVTALRM].iname = "VTALRM";
671c80476e4SDavid E. O'Brien mesg[SIGVTALRM].pname = CSAVS(2, 60, "Virtual time alarm");
672c80476e4SDavid E. O'Brien }
673c80476e4SDavid E. O'Brien #endif /* SIGVTALRM */
674c80476e4SDavid E. O'Brien
675c80476e4SDavid E. O'Brien #ifdef SIGPROF
676c80476e4SDavid E. O'Brien if (mesg[SIGPROF].pname == NULL) {
677c80476e4SDavid E. O'Brien mesg[SIGPROF].iname = "PROF";
678c80476e4SDavid E. O'Brien mesg[SIGPROF].pname = CSAVS(2, 61, "Profiling time alarm");
679c80476e4SDavid E. O'Brien }
680c80476e4SDavid E. O'Brien #endif /* SIGPROF */
681c80476e4SDavid E. O'Brien
682c80476e4SDavid E. O'Brien #ifdef SIGDIL
683c80476e4SDavid E. O'Brien /* hpux */
684c80476e4SDavid E. O'Brien if (mesg[SIGDIL].pname == NULL) {
685c80476e4SDavid E. O'Brien mesg[SIGDIL].iname = "DIL";
686c80476e4SDavid E. O'Brien mesg[SIGDIL].pname = CSAVS(2, 62, "DIL signal");
687c80476e4SDavid E. O'Brien }
688c80476e4SDavid E. O'Brien #endif /* SIGDIL */
689c80476e4SDavid E. O'Brien
690c80476e4SDavid E. O'Brien #ifdef SIGPOLL
691c80476e4SDavid E. O'Brien if (mesg[SIGPOLL].pname == NULL) {
692c80476e4SDavid E. O'Brien mesg[SIGPOLL].iname = "POLL";
693c80476e4SDavid E. O'Brien mesg[SIGPOLL].pname = CSAVS(2, 63, "Pollable event occured");
694c80476e4SDavid E. O'Brien }
695c80476e4SDavid E. O'Brien #endif /* SIGPOLL */
696c80476e4SDavid E. O'Brien
697c80476e4SDavid E. O'Brien #ifdef SIGWAITING
698c80476e4SDavid E. O'Brien /* solaris */
699c80476e4SDavid E. O'Brien if (mesg[SIGWAITING].pname == NULL) {
700c80476e4SDavid E. O'Brien mesg[SIGWAITING].iname = "WAITING";
701c80476e4SDavid E. O'Brien mesg[SIGWAITING].pname = CSAVS(2, 64, "Process's lwps are blocked");
702c80476e4SDavid E. O'Brien }
703c80476e4SDavid E. O'Brien #endif /* SIGWAITING */
704c80476e4SDavid E. O'Brien
705c80476e4SDavid E. O'Brien #ifdef SIGLWP
706c80476e4SDavid E. O'Brien /* solaris */
707c80476e4SDavid E. O'Brien if (mesg[SIGLWP].pname == NULL) {
708c80476e4SDavid E. O'Brien mesg[SIGLWP].iname = "LWP";
709c80476e4SDavid E. O'Brien mesg[SIGLWP].pname = CSAVS(2, 65, "Special LWP signal");
710c80476e4SDavid E. O'Brien }
711c80476e4SDavid E. O'Brien #endif /* SIGLWP */
712c80476e4SDavid E. O'Brien
713c80476e4SDavid E. O'Brien #ifdef SIGFREEZE
714c80476e4SDavid E. O'Brien /* solaris */
715c80476e4SDavid E. O'Brien if (mesg[SIGFREEZE].pname == NULL) {
716c80476e4SDavid E. O'Brien mesg[SIGFREEZE].iname = "FREEZE";
717c80476e4SDavid E. O'Brien mesg[SIGFREEZE].pname = CSAVS(2, 66, "Special CPR Signal");
718c80476e4SDavid E. O'Brien }
719c80476e4SDavid E. O'Brien #endif /* SIGFREEZE */
720c80476e4SDavid E. O'Brien
721c80476e4SDavid E. O'Brien #ifdef SIGTHAW
722c80476e4SDavid E. O'Brien /* solaris */
723c80476e4SDavid E. O'Brien if (mesg[SIGTHAW].pname == NULL) {
724c80476e4SDavid E. O'Brien mesg[SIGTHAW].iname = "THAW";
725c80476e4SDavid E. O'Brien mesg[SIGTHAW].pname = CSAVS(2, 67, "Special CPR Signal");
726c80476e4SDavid E. O'Brien }
727c80476e4SDavid E. O'Brien #endif /* SIGTHAW */
728c80476e4SDavid E. O'Brien
729c80476e4SDavid E. O'Brien #ifdef SIGCANCEL
730c80476e4SDavid E. O'Brien /* solaris */
731c80476e4SDavid E. O'Brien if (mesg[SIGCANCEL].pname == NULL) {
732c80476e4SDavid E. O'Brien mesg[SIGCANCEL].iname = "CANCEL";
733c80476e4SDavid E. O'Brien mesg[SIGCANCEL].pname = CSAVS(2, 109,
734c80476e4SDavid E. O'Brien "Thread cancellation signal used by libthread");
735c80476e4SDavid E. O'Brien }
736c80476e4SDavid E. O'Brien #endif /* SIGCANCEL */
737c80476e4SDavid E. O'Brien
738c80476e4SDavid E. O'Brien /*
739c80476e4SDavid E. O'Brien * Careful, some OS's (HP/UX 10.0) define these as -1
740c80476e4SDavid E. O'Brien */
741c80476e4SDavid E. O'Brien #ifdef SIGRTMIN
742c80476e4SDavid E. O'Brien /*
743c80476e4SDavid E. O'Brien * Cannot do this at compile time; Solaris2 uses _sysconf for these
744c80476e4SDavid E. O'Brien */
745c80476e4SDavid E. O'Brien if (SIGRTMIN > 0 && SIGRTMIN < NUMSIG) {
746c80476e4SDavid E. O'Brien if (mesg[SIGRTMIN].pname == NULL) {
747c80476e4SDavid E. O'Brien mesg[SIGRTMIN].iname = "RTMIN";
748c80476e4SDavid E. O'Brien mesg[SIGRTMIN].pname = CSAVS(2, 68, "First Realtime Signal");
749c80476e4SDavid E. O'Brien }
750c80476e4SDavid E. O'Brien
75145e5710bSMark Peek if (SIGRTMIN + 1 < SIGRTMAX && SIGRTMIN + 1 < NUMSIG &&
75245e5710bSMark Peek mesg[SIGRTMIN+1].pname == NULL) {
753c80476e4SDavid E. O'Brien mesg[SIGRTMIN+1].iname = "RTMIN+1";
754c80476e4SDavid E. O'Brien mesg[SIGRTMIN+1].pname = CSAVS(2, 69, "Second Realtime Signal");
755c80476e4SDavid E. O'Brien }
756c80476e4SDavid E. O'Brien
75745e5710bSMark Peek if (SIGRTMIN + 2 < SIGRTMAX && SIGRTMIN + 2 < NUMSIG &&
75845e5710bSMark Peek mesg[SIGRTMIN+2].pname == NULL) {
759c80476e4SDavid E. O'Brien mesg[SIGRTMIN+2].iname = "RTMIN+2";
760c80476e4SDavid E. O'Brien mesg[SIGRTMIN+2].pname = CSAVS(2, 70, "Third Realtime Signal");
761c80476e4SDavid E. O'Brien }
762c80476e4SDavid E. O'Brien
76345e5710bSMark Peek if (SIGRTMIN + 3 < SIGRTMAX && SIGRTMIN + 3 < NUMSIG &&
76445e5710bSMark Peek mesg[SIGRTMIN+3].pname == NULL) {
765c80476e4SDavid E. O'Brien mesg[SIGRTMIN+3].iname = "RTMIN+3";
766c80476e4SDavid E. O'Brien mesg[SIGRTMIN+3].pname = CSAVS(2, 71, "Fourth Realtime Signal");
767c80476e4SDavid E. O'Brien }
768c80476e4SDavid E. O'Brien }
769c80476e4SDavid E. O'Brien #endif /* SIGRTMIN */
770c80476e4SDavid E. O'Brien
771c80476e4SDavid E. O'Brien #ifdef SIGRTMAX
772c80476e4SDavid E. O'Brien /*
773c80476e4SDavid E. O'Brien * Cannot do this at compile time; Solaris2 uses _sysconf for these
774c80476e4SDavid E. O'Brien */
775c80476e4SDavid E. O'Brien if (SIGRTMAX > 0 && SIGRTMAX < NUMSIG) {
77645e5710bSMark Peek if (SIGRTMAX - 3 > SIGRTMIN && mesg[SIGRTMAX-3].pname == NULL) {
777c80476e4SDavid E. O'Brien mesg[SIGRTMAX-3].iname = "RTMAX-3";
778c80476e4SDavid E. O'Brien mesg[SIGRTMAX-3].pname = CSAVS(2, 72,
779c80476e4SDavid E. O'Brien "Fourth Last Realtime Signal");
780c80476e4SDavid E. O'Brien }
781c80476e4SDavid E. O'Brien
78245e5710bSMark Peek if (SIGRTMAX - 2 > SIGRTMIN && mesg[SIGRTMAX-2].pname == NULL) {
783c80476e4SDavid E. O'Brien mesg[SIGRTMAX-2].iname = "RTMAX-2";
784c80476e4SDavid E. O'Brien mesg[SIGRTMAX-2].pname = CSAVS(2, 73,
785c80476e4SDavid E. O'Brien "Third Last Realtime Signal");
786c80476e4SDavid E. O'Brien }
787c80476e4SDavid E. O'Brien
78845e5710bSMark Peek if (SIGRTMAX - 1 > SIGRTMIN && mesg[SIGRTMAX-1].pname == NULL) {
789c80476e4SDavid E. O'Brien mesg[SIGRTMAX-1].iname = "RTMAX-1";
790c80476e4SDavid E. O'Brien mesg[SIGRTMAX-1].pname = CSAVS(2, 74,
791c80476e4SDavid E. O'Brien "Second Last Realtime Signal");
792c80476e4SDavid E. O'Brien }
793c80476e4SDavid E. O'Brien
79445e5710bSMark Peek if (SIGRTMAX > SIGRTMIN && mesg[SIGRTMAX].pname == NULL) {
795c80476e4SDavid E. O'Brien mesg[SIGRTMAX].iname = "RTMAX";
796c80476e4SDavid E. O'Brien mesg[SIGRTMAX].pname = CSAVS(2, 75,
797c80476e4SDavid E. O'Brien "Last Realtime Signal");
798c80476e4SDavid E. O'Brien }
799c80476e4SDavid E. O'Brien }
800c80476e4SDavid E. O'Brien #endif /* SIGRTMAX */
801c80476e4SDavid E. O'Brien
802c80476e4SDavid E. O'Brien
803c80476e4SDavid E. O'Brien #ifdef SIGAIO
804c80476e4SDavid E. O'Brien /* aiws */
805c80476e4SDavid E. O'Brien if (mesg[SIGAIO].pname == NULL) {
806c80476e4SDavid E. O'Brien mesg[SIGAIO].iname = "AIO";
807c80476e4SDavid E. O'Brien mesg[SIGAIO].pname = CSAVS(2, 76, "LAN Asyncronous I/O");
808c80476e4SDavid E. O'Brien }
809c80476e4SDavid E. O'Brien #endif /* SIGAIO */
810c80476e4SDavid E. O'Brien
811c80476e4SDavid E. O'Brien #ifdef SIGPTY
812c80476e4SDavid E. O'Brien /* aiws */
813c80476e4SDavid E. O'Brien if (mesg[SIGPTY].pname == NULL) {
814c80476e4SDavid E. O'Brien mesg[SIGPTY].iname = "PTY";
815c80476e4SDavid E. O'Brien mesg[SIGPTY].pname = CSAVS(2, 77, "PTY read/write availability");
816c80476e4SDavid E. O'Brien }
817c80476e4SDavid E. O'Brien #endif /* SIGPTY */
818c80476e4SDavid E. O'Brien
819c80476e4SDavid E. O'Brien #ifdef SIGIOINT
820c80476e4SDavid E. O'Brien /* aiws */
821c80476e4SDavid E. O'Brien if (mesg[SIGIOINT].pname == NULL) {
822c80476e4SDavid E. O'Brien mesg[SIGIOINT].iname = "IOINT";
823c80476e4SDavid E. O'Brien mesg[SIGIOINT].pname = CSAVS(2, 78, "I/O intervention required");
824c80476e4SDavid E. O'Brien }
825c80476e4SDavid E. O'Brien #endif /* SIGIOINT */
826c80476e4SDavid E. O'Brien
827c80476e4SDavid E. O'Brien #ifdef SIGGRANT
828c80476e4SDavid E. O'Brien /* aiws */
829c80476e4SDavid E. O'Brien if (mesg[SIGGRANT].pname == NULL) {
830c80476e4SDavid E. O'Brien mesg[SIGGRANT].iname = "GRANT";
831c80476e4SDavid E. O'Brien mesg[SIGGRANT].pname = CSAVS(2, 79, "HFT monitor mode granted");
832c80476e4SDavid E. O'Brien }
833c80476e4SDavid E. O'Brien #endif /* SIGGRANT */
834c80476e4SDavid E. O'Brien
835c80476e4SDavid E. O'Brien #ifdef SIGRETRACT
836c80476e4SDavid E. O'Brien /* aiws */
837c80476e4SDavid E. O'Brien if (mesg[SIGRETRACT].pname == NULL) {
838c80476e4SDavid E. O'Brien mesg[SIGRETRACT].iname = "RETRACT";
839c80476e4SDavid E. O'Brien mesg[SIGRETRACT].pname = CSAVS(2, 80,
840c80476e4SDavid E. O'Brien "HFT monitor mode should be relinguished");
841c80476e4SDavid E. O'Brien }
842c80476e4SDavid E. O'Brien #endif /* SIGRETRACT */
843c80476e4SDavid E. O'Brien
844c80476e4SDavid E. O'Brien #ifdef SIGSOUND
845c80476e4SDavid E. O'Brien /* aiws */
846c80476e4SDavid E. O'Brien if (mesg[SIGSOUND].pname == NULL) {
847c80476e4SDavid E. O'Brien mesg[SIGSOUND].iname = "SOUND";
848c80476e4SDavid E. O'Brien mesg[SIGSOUND].pname = CSAVS(2, 81, "HFT sound control has completed");
849c80476e4SDavid E. O'Brien }
850c80476e4SDavid E. O'Brien #endif /* SIGSOUND */
851c80476e4SDavid E. O'Brien
852c80476e4SDavid E. O'Brien #ifdef SIGSMSG
853c80476e4SDavid E. O'Brien /* aiws */
854c80476e4SDavid E. O'Brien if (mesg[SIGSMSG].pname == NULL) {
855c80476e4SDavid E. O'Brien mesg[SIGSMSG].iname = "SMSG";
856c80476e4SDavid E. O'Brien mesg[SIGSMSG].pname = CSAVS(2, 82, "Data in HFT ring buffer");
857c80476e4SDavid E. O'Brien }
858c80476e4SDavid E. O'Brien #endif /* SIGMSG */
859c80476e4SDavid E. O'Brien
860c80476e4SDavid E. O'Brien #ifdef SIGMIGRATE
861c80476e4SDavid E. O'Brien /* IBMAIX */
862c80476e4SDavid E. O'Brien if (mesg[SIGMIGRATE].pname == NULL) {
863c80476e4SDavid E. O'Brien mesg[SIGMIGRATE].iname = "MIGRATE";
864c80476e4SDavid E. O'Brien mesg[SIGMIGRATE].pname = CSAVS(2, 83, "Migrate process");
865c80476e4SDavid E. O'Brien }
866c80476e4SDavid E. O'Brien #endif /* SIGMIGRATE */
867c80476e4SDavid E. O'Brien
868c80476e4SDavid E. O'Brien #ifdef SIGSAK
869c80476e4SDavid E. O'Brien /* IBMAIX */
870c80476e4SDavid E. O'Brien if (mesg[SIGSAK].pname == NULL) {
871c80476e4SDavid E. O'Brien mesg[SIGSAK].iname = "SAK";
872c80476e4SDavid E. O'Brien mesg[SIGSAK].pname = CSAVS(2, 84, "Secure attention key");
873c80476e4SDavid E. O'Brien }
874c80476e4SDavid E. O'Brien #endif /* SIGSAK */
875c80476e4SDavid E. O'Brien
876c80476e4SDavid E. O'Brien #ifdef SIGRESCHED
877c80476e4SDavid E. O'Brien /* CX/UX */
878c80476e4SDavid E. O'Brien if (mesg[SIGRESCHED].pname == NULL) {
879c80476e4SDavid E. O'Brien mesg[SIGRESCHED].iname = "RESCHED";
880c80476e4SDavid E. O'Brien mesg[SIGRESCHED].pname = CSAVS(2, 85, "Reschedule");
881c80476e4SDavid E. O'Brien }
882c80476e4SDavid E. O'Brien #endif /* SIGRESCHED */
883c80476e4SDavid E. O'Brien
884c80476e4SDavid E. O'Brien #ifdef SIGDEBUG
885c80476e4SDavid E. O'Brien /* VMS_POSIX */
886c80476e4SDavid E. O'Brien if (mesg[SIGDEBUG].pname == NULL) {
887c80476e4SDavid E. O'Brien mesg[SIGDEBUG].iname = "DEBUG";
888c80476e4SDavid E. O'Brien mesg[SIGDEBUG].pname = CSAVS(2, 86, "Signaling SS$_DEBUG");
889c80476e4SDavid E. O'Brien }
890c80476e4SDavid E. O'Brien #endif /* SIGDEBUG */
891c80476e4SDavid E. O'Brien
892c80476e4SDavid E. O'Brien #ifdef SIGPRIO
893c80476e4SDavid E. O'Brien /* Lynx */
894c80476e4SDavid E. O'Brien if (mesg[SIGPRIO].pname == NULL) {
895c80476e4SDavid E. O'Brien mesg[SIGPRIO].iname = "PRIO";
896c80476e4SDavid E. O'Brien mesg[SIGPRIO].pname = CSAVS(2, 87, "Priority changed");
897c80476e4SDavid E. O'Brien }
898c80476e4SDavid E. O'Brien #endif /* SIGPRIO */
899c80476e4SDavid E. O'Brien
900c80476e4SDavid E. O'Brien #ifdef SIGDLK
901c80476e4SDavid E. O'Brien /* cray */
902c80476e4SDavid E. O'Brien if (mesg[SIGDLK].pname == NULL) {
903c80476e4SDavid E. O'Brien mesg[SIGDLK].iname = "DLK";
904c80476e4SDavid E. O'Brien mesg[SIGDLK].pname = CSAVS(2, 88, "True deadlock detected");
905c80476e4SDavid E. O'Brien }
906c80476e4SDavid E. O'Brien #endif /* SIGDLK */
907c80476e4SDavid E. O'Brien
908c80476e4SDavid E. O'Brien #ifdef SIGTINT
909c80476e4SDavid E. O'Brien /* masscomp */
910c80476e4SDavid E. O'Brien if (mesg[SIGTINT].pname == NULL) {
911c80476e4SDavid E. O'Brien mesg[SIGTINT].iname = "TINT";
912c80476e4SDavid E. O'Brien mesg[SIGTINT].pname = CSAVS(2, 89, "New input character");
913c80476e4SDavid E. O'Brien }
914c80476e4SDavid E. O'Brien #endif /* SIGTINT */
915c80476e4SDavid E. O'Brien
916c80476e4SDavid E. O'Brien #ifdef SIGSTKFLT
917c80476e4SDavid E. O'Brien if (mesg[SIGSTKFLT].pname == NULL) {
918c80476e4SDavid E. O'Brien mesg[SIGSTKFLT].iname = "STKFLT";
919c80476e4SDavid E. O'Brien mesg[SIGSTKFLT].pname = CSAVS(2, 90, "Stack limit exceeded");
920c80476e4SDavid E. O'Brien }
921c80476e4SDavid E. O'Brien #endif /* SIGSTKFLT */
922c80476e4SDavid E. O'Brien
923c80476e4SDavid E. O'Brien #ifdef SIGUNUSED
924c80476e4SDavid E. O'Brien if (mesg[SIGUNUSED].pname == NULL) {
925c80476e4SDavid E. O'Brien mesg[SIGUNUSED].iname = "UNUSED";
926c80476e4SDavid E. O'Brien mesg[SIGUNUSED].pname = CSAVS(2, 91, "Unused signal");
927c80476e4SDavid E. O'Brien }
928c80476e4SDavid E. O'Brien #endif /* SIGUNUSED */
929c80476e4SDavid E. O'Brien
930c80476e4SDavid E. O'Brien #ifdef SIGOVLY
931c80476e4SDavid E. O'Brien /* SX-4 */
932c80476e4SDavid E. O'Brien if (mesg[SIGOVLY].pname == NULL) {
933c80476e4SDavid E. O'Brien mesg[SIGOVLY].iname = "OVLY";
934c80476e4SDavid E. O'Brien mesg[SIGOVLY].pname = CSAVS(2, 92, "LM overlay");
935c80476e4SDavid E. O'Brien }
936c80476e4SDavid E. O'Brien #endif /* SIGOVLY */
937c80476e4SDavid E. O'Brien
938c80476e4SDavid E. O'Brien #ifdef SIGFRZ
939c80476e4SDavid E. O'Brien /* SX-4 */
940c80476e4SDavid E. O'Brien if (mesg[SIGFRZ].pname == NULL) {
941c80476e4SDavid E. O'Brien mesg[SIGFRZ].iname = "FRZ";
942c80476e4SDavid E. O'Brien mesg[SIGFRZ].pname = CSAVS(2, 93, "system freeze");
943c80476e4SDavid E. O'Brien }
944c80476e4SDavid E. O'Brien #endif /* SIGFRZ */
945c80476e4SDavid E. O'Brien
946c80476e4SDavid E. O'Brien #ifdef SIGDFRZ
947c80476e4SDavid E. O'Brien /* SX-4 */
948c80476e4SDavid E. O'Brien if (mesg[SIGDFRZ].pname == NULL) {
949c80476e4SDavid E. O'Brien mesg[SIGDFRZ].iname = "DFRZ";
950c80476e4SDavid E. O'Brien mesg[SIGDFRZ].pname = CSAVS(2, 94, "system defreeze");
951c80476e4SDavid E. O'Brien }
952c80476e4SDavid E. O'Brien #endif /* SIGDFRZ */
953c80476e4SDavid E. O'Brien
954c80476e4SDavid E. O'Brien #ifdef SIGDEAD
955c80476e4SDavid E. O'Brien /* SX-4 */
956c80476e4SDavid E. O'Brien if (mesg[SIGDEAD].pname == NULL) {
957c80476e4SDavid E. O'Brien mesg[SIGDEAD].iname = "DEAD";
958c80476e4SDavid E. O'Brien mesg[SIGDEAD].pname = CSAVS(2, 95, "dead lock");
959c80476e4SDavid E. O'Brien }
960c80476e4SDavid E. O'Brien #endif /* SIGDEAD */
961c80476e4SDavid E. O'Brien
962c80476e4SDavid E. O'Brien #ifdef SIGXMEM
963c80476e4SDavid E. O'Brien /* SX-4 */
964c80476e4SDavid E. O'Brien if (mesg[SIGXMEM].pname == NULL) {
965c80476e4SDavid E. O'Brien mesg[SIGXMEM].iname = "XMEM";
966c80476e4SDavid E. O'Brien mesg[SIGXMEM].pname = CSAVS(2, 96, "exceeded memory size limit");
967c80476e4SDavid E. O'Brien }
968c80476e4SDavid E. O'Brien #endif /* SIGXMEM */
969c80476e4SDavid E. O'Brien
970c80476e4SDavid E. O'Brien #ifdef SIGXDSZ
971c80476e4SDavid E. O'Brien /* SX-4 */
972c80476e4SDavid E. O'Brien if (mesg[SIGXDSZ].pname == NULL) {
973c80476e4SDavid E. O'Brien mesg[SIGXDSZ].iname = "XDSZ";
974c80476e4SDavid E. O'Brien mesg[SIGXDSZ].pname = CSAVS(2, 97, "exceeded data size limit");
975c80476e4SDavid E. O'Brien }
976c80476e4SDavid E. O'Brien #endif /* SIGXDSZ */
977c80476e4SDavid E. O'Brien
978c80476e4SDavid E. O'Brien #ifdef SIGMEM32
979c80476e4SDavid E. O'Brien /* SX-4 */
980c80476e4SDavid E. O'Brien if (mesg[SIGMEM32].pname == NULL) {
981c80476e4SDavid E. O'Brien mesg[SIGMEM32].iname = "MEM32";
982c80476e4SDavid E. O'Brien mesg[SIGMEM32].pname = CSAVS(2, 98, "exceeded memory size limit of 32KB");
983c80476e4SDavid E. O'Brien }
984c80476e4SDavid E. O'Brien #endif /* SIGMEM32 */
985c80476e4SDavid E. O'Brien
986c80476e4SDavid E. O'Brien #ifdef SIGNMEM
987c80476e4SDavid E. O'Brien /* SX-4 */
988c80476e4SDavid E. O'Brien if (mesg[SIGNMEM].pname == NULL) {
989c80476e4SDavid E. O'Brien mesg[SIGNMEM].iname = "NMEM";
990c80476e4SDavid E. O'Brien mesg[SIGNMEM].pname = CSAVS(2, 99, "exce error for no memory");
991c80476e4SDavid E. O'Brien }
992c80476e4SDavid E. O'Brien #endif /* SIGNMEM */
993c80476e4SDavid E. O'Brien
994c80476e4SDavid E. O'Brien #ifdef SIGCHKP
995c80476e4SDavid E. O'Brien /* SX-4 */
996c80476e4SDavid E. O'Brien if (mesg[SIGCHKP].pname == NULL) {
997c80476e4SDavid E. O'Brien mesg[SIGCHKP].iname = "CHKP";
998c80476e4SDavid E. O'Brien mesg[SIGCHKP].pname = CSAVS(2, 100, "check point start");
999c80476e4SDavid E. O'Brien }
1000c80476e4SDavid E. O'Brien #endif /* SIGCHKP */
1001c80476e4SDavid E. O'Brien
1002c80476e4SDavid E. O'Brien #ifdef SIGKCHKP
1003c80476e4SDavid E. O'Brien #if 0
1004c80476e4SDavid E. O'Brien /* SX-4 */
1005c80476e4SDavid E. O'Brien if (mesg[SIGKCHKP].pname == NULL) {
1006c80476e4SDavid E. O'Brien mesg[SIGKCHKP].iname = "KCHKP";
1007c80476e4SDavid E. O'Brien mesg[SIGKCHKP].pname = CSAVS(2, 101, "check point start of kernel");
1008c80476e4SDavid E. O'Brien }
1009c80476e4SDavid E. O'Brien #endif
1010c80476e4SDavid E. O'Brien #endif /* SIGKCHKP */
1011c80476e4SDavid E. O'Brien
1012c80476e4SDavid E. O'Brien #ifdef SIGRSTA
1013c80476e4SDavid E. O'Brien /* SX-4 */
1014c80476e4SDavid E. O'Brien if (mesg[SIGRSTA].pname == NULL) {
1015c80476e4SDavid E. O'Brien mesg[SIGRSTA].iname = "RSTA";
1016c80476e4SDavid E. O'Brien mesg[SIGRSTA].pname = CSAVS(2, 102, "restart start");
1017c80476e4SDavid E. O'Brien }
1018c80476e4SDavid E. O'Brien #endif /* SIGRSTA */
1019c80476e4SDavid E. O'Brien
1020c80476e4SDavid E. O'Brien #ifdef SIGKRSTA
1021c80476e4SDavid E. O'Brien #if 0
1022c80476e4SDavid E. O'Brien /* SX-4 */
1023c80476e4SDavid E. O'Brien if (mesg[SIGKRSTA].pname == NULL) {
1024c80476e4SDavid E. O'Brien mesg[SIGKRSTA].iname = "KRSTA";
1025c80476e4SDavid E. O'Brien mesg[SIGKRSTA].pname = CSAVS(2, 103, "restart of kernel");
1026c80476e4SDavid E. O'Brien }
1027c80476e4SDavid E. O'Brien #endif
1028c80476e4SDavid E. O'Brien #endif /* SIGKRSTA */
1029c80476e4SDavid E. O'Brien
1030c80476e4SDavid E. O'Brien #ifdef SIGXXMU
1031c80476e4SDavid E. O'Brien /* SX-4 */
1032c80476e4SDavid E. O'Brien if (mesg[SIGXXMU].pname == NULL) {
1033c80476e4SDavid E. O'Brien mesg[SIGXXMU].iname = "XXMU";
1034c80476e4SDavid E. O'Brien mesg[SIGXXMU].pname = CSAVS(2, 104, "exeeded XMU size limit");
1035c80476e4SDavid E. O'Brien }
1036c80476e4SDavid E. O'Brien #endif /* SIGXXMU */
1037c80476e4SDavid E. O'Brien
1038c80476e4SDavid E. O'Brien #ifdef SIGXRLG0
1039c80476e4SDavid E. O'Brien /* SX-4 */
1040c80476e4SDavid E. O'Brien if (mesg[SIGXRLG0].pname == NULL) {
1041c80476e4SDavid E. O'Brien mesg[SIGXRLG0].iname = "XRLG0";
1042c80476e4SDavid E. O'Brien mesg[SIGXRLG0].pname = CSAVS(2, 105, "exeeded RLG0 limit");
1043c80476e4SDavid E. O'Brien }
1044c80476e4SDavid E. O'Brien #endif /* SIGXRLG0 */
1045c80476e4SDavid E. O'Brien
1046c80476e4SDavid E. O'Brien #ifdef SIGXRLG1
1047c80476e4SDavid E. O'Brien /* SX-4 */
1048c80476e4SDavid E. O'Brien if (mesg[SIGXRLG1].pname == NULL) {
1049c80476e4SDavid E. O'Brien mesg[SIGXRLG1].iname = "XRLG1";
1050c80476e4SDavid E. O'Brien mesg[SIGXRLG1].pname = CSAVS(2, 106, "exeeded RLG1 limit");
1051c80476e4SDavid E. O'Brien }
1052c80476e4SDavid E. O'Brien #endif /* SIGXRLG1 */
1053c80476e4SDavid E. O'Brien
1054c80476e4SDavid E. O'Brien #ifdef SIGXRLG2
1055c80476e4SDavid E. O'Brien /* SX-4 */
1056c80476e4SDavid E. O'Brien if (mesg[SIGXRLG2].pname == NULL) {
1057c80476e4SDavid E. O'Brien mesg[SIGXRLG2].iname = "XRLG2";
1058c80476e4SDavid E. O'Brien mesg[SIGXRLG2].pname = CSAVS(2, 107, "exeeded RLG2 limit");
1059c80476e4SDavid E. O'Brien }
1060c80476e4SDavid E. O'Brien #endif /* SIGXRLG2 */
1061c80476e4SDavid E. O'Brien
1062c80476e4SDavid E. O'Brien #ifdef SIGXRLG3
1063c80476e4SDavid E. O'Brien /* SX-4 */
1064c80476e4SDavid E. O'Brien if (mesg[SIGXRLG3].pname == NULL) {
1065c80476e4SDavid E. O'Brien mesg[SIGXRLG3].iname = "XRLG3";
1066c80476e4SDavid E. O'Brien mesg[SIGXRLG3].pname = CSAVS(2, 108, "exeeded RLG3 limit");
1067c80476e4SDavid E. O'Brien }
1068c80476e4SDavid E. O'Brien #endif /* SIGXRLG3 */
1069c80476e4SDavid E. O'Brien }
1070