xref: /dragonfly/contrib/tcsh-6/sh.init.c (revision d6ab524c)
17d8fb588SMatthias Schmidt /*
27d8fb588SMatthias Schmidt  * sh.init.c: Function and signal tables
37d8fb588SMatthias Schmidt  */
47d8fb588SMatthias Schmidt /*-
57d8fb588SMatthias Schmidt  * Copyright (c) 1980, 1991 The Regents of the University of California.
67d8fb588SMatthias Schmidt  * All rights reserved.
77d8fb588SMatthias Schmidt  *
87d8fb588SMatthias Schmidt  * Redistribution and use in source and binary forms, with or without
97d8fb588SMatthias Schmidt  * modification, are permitted provided that the following conditions
107d8fb588SMatthias Schmidt  * are met:
117d8fb588SMatthias Schmidt  * 1. Redistributions of source code must retain the above copyright
127d8fb588SMatthias Schmidt  *    notice, this list of conditions and the following disclaimer.
137d8fb588SMatthias Schmidt  * 2. Redistributions in binary form must reproduce the above copyright
147d8fb588SMatthias Schmidt  *    notice, this list of conditions and the following disclaimer in the
157d8fb588SMatthias Schmidt  *    documentation and/or other materials provided with the distribution.
167d8fb588SMatthias Schmidt  * 3. Neither the name of the University nor the names of its contributors
177d8fb588SMatthias Schmidt  *    may be used to endorse or promote products derived from this software
187d8fb588SMatthias Schmidt  *    without specific prior written permission.
197d8fb588SMatthias Schmidt  *
207d8fb588SMatthias Schmidt  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
217d8fb588SMatthias Schmidt  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
227d8fb588SMatthias Schmidt  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
237d8fb588SMatthias Schmidt  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
247d8fb588SMatthias Schmidt  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
257d8fb588SMatthias Schmidt  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
267d8fb588SMatthias Schmidt  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
277d8fb588SMatthias Schmidt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
287d8fb588SMatthias Schmidt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
297d8fb588SMatthias Schmidt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
307d8fb588SMatthias Schmidt  * SUCH DAMAGE.
317d8fb588SMatthias Schmidt  */
327d8fb588SMatthias Schmidt #include "sh.h"
337d8fb588SMatthias Schmidt #include "ed.h"
347d8fb588SMatthias Schmidt #include "tw.h"
357d8fb588SMatthias Schmidt 
367d8fb588SMatthias Schmidt /*
377d8fb588SMatthias Schmidt  * C shell
387d8fb588SMatthias Schmidt  */
397d8fb588SMatthias Schmidt 
407d8fb588SMatthias Schmidt #define	INF INT_MAX
417d8fb588SMatthias Schmidt 
427d8fb588SMatthias Schmidt const struct biltins bfunc[] = {
437d8fb588SMatthias Schmidt     { ":",		dozip,		0,	INF	},
447d8fb588SMatthias Schmidt     { "@",		dolet,		0,	INF	},
457d8fb588SMatthias Schmidt     { "alias",		doalias,	0,	INF	},
467d8fb588SMatthias Schmidt     { "alloc",		showall,	0,	1	},
477d8fb588SMatthias Schmidt #if defined(_CX_UX)
487d8fb588SMatthias Schmidt     { "att",		doatt,		0,	INF	},
497d8fb588SMatthias Schmidt #endif /* _CX_UX */
507d8fb588SMatthias Schmidt     { "bg",		dobg,		0,	INF	},
517d8fb588SMatthias Schmidt     { "bindkey",	dobindkey,	0,	8	},
527d8fb588SMatthias Schmidt     { "break",		dobreak,	0,	0	},
537d8fb588SMatthias Schmidt     { "breaksw",	doswbrk,	0,	0	},
547d8fb588SMatthias Schmidt #ifdef _OSD_POSIX
557d8fb588SMatthias Schmidt     { "bs2cmd",		dobs2cmd,	1,	INF	},
567d8fb588SMatthias Schmidt #endif /* OBSOLETE */
577d8fb588SMatthias Schmidt     { "builtins",	dobuiltins,	0,	0	},
587d8fb588SMatthias Schmidt #ifdef KAI
597d8fb588SMatthias Schmidt     { "bye",		goodbye,	0,	0	},
607d8fb588SMatthias Schmidt #endif /* KAI */
617d8fb588SMatthias Schmidt     { "case",		dozip,		0,	1	},
627d8fb588SMatthias Schmidt     { "cd",		dochngd,	0,	INF	},
637d8fb588SMatthias Schmidt     { "chdir",		dochngd,	0,	INF	},
647d8fb588SMatthias Schmidt     { "complete",	docomplete,	0,	INF	},
657d8fb588SMatthias Schmidt     { "continue",	docontin,	0,	0	},
667d8fb588SMatthias Schmidt     { "default",	dozip,		0,	0	},
677d8fb588SMatthias Schmidt     { "dirs",		dodirs,		0,	INF	},
687d8fb588SMatthias Schmidt #if defined(_CRAY) && !defined(_CRAYMPP)
697d8fb588SMatthias Schmidt     { "dmmode",		dodmmode,	0,	1	},
707d8fb588SMatthias Schmidt #endif /* _CRAY && !_CRAYMPP */
717d8fb588SMatthias Schmidt     { "echo",		doecho,		0,	INF	},
727d8fb588SMatthias Schmidt     { "echotc",		doechotc,	0,	INF	},
737d8fb588SMatthias Schmidt     { "else",		doelse,		0,	INF	},
747d8fb588SMatthias Schmidt     { "end",		doend,		0,	0	},
757d8fb588SMatthias Schmidt     { "endif",		dozip,		0,	0	},
767d8fb588SMatthias Schmidt     { "endsw",		dozip,		0,	0	},
777d8fb588SMatthias Schmidt     { "eval",		doeval,		0,	INF	},
787d8fb588SMatthias Schmidt     { "exec",		execash,	1,	INF	},
797d8fb588SMatthias Schmidt     { "exit",		doexit,		0,	INF	},
807d8fb588SMatthias Schmidt     { "fg",		dofg,		0,	INF	},
817d8fb588SMatthias Schmidt     { "filetest",	dofiletest,	2,	INF	},
827d8fb588SMatthias Schmidt     { "foreach",	doforeach,	3,	INF	},
837d8fb588SMatthias Schmidt #ifdef TCF
847d8fb588SMatthias Schmidt     { "getspath",	dogetspath,	0,	0	},
857d8fb588SMatthias Schmidt     { "getxvers",	dogetxvers,	0,	0	},
867d8fb588SMatthias Schmidt #endif /* TCF */
877d8fb588SMatthias Schmidt     { "glob",		doglob,		0,	INF	},
887d8fb588SMatthias Schmidt     { "goto",		dogoto,		1,	1	},
897d8fb588SMatthias Schmidt     { "hashstat",	hashstat,	0,	0	},
907d8fb588SMatthias Schmidt     { "history",	dohist,		0,	2	},
917d8fb588SMatthias Schmidt     { "hup",		dohup,		0,	INF	},
927d8fb588SMatthias Schmidt     { "if",		doif,		1,	INF	},
937d8fb588SMatthias Schmidt #ifdef apollo
947d8fb588SMatthias Schmidt     { "inlib", 		doinlib,	1,	INF	},
957d8fb588SMatthias Schmidt #endif /* apollo */
96*d6ab524cSAntonio Huete Jimenez     { "jobs",		dojobs,		0,	2	},
977d8fb588SMatthias Schmidt     { "kill",		dokill,		1,	INF	},
987d8fb588SMatthias Schmidt #ifndef HAVENOLIMIT
997d8fb588SMatthias Schmidt     { "limit",		dolimit,	0,	3	},
1007d8fb588SMatthias Schmidt #endif /* !HAVENOLIMIT */
1017d8fb588SMatthias Schmidt #ifdef OBSOLETE
1027d8fb588SMatthias Schmidt     { "linedit",	doecho,		0,	INF	},
1037d8fb588SMatthias Schmidt #endif /* OBSOLETE */
1047d8fb588SMatthias Schmidt #if !defined(HAVENOUTMP) && !defined(KAI)
1057d8fb588SMatthias Schmidt     { "log",		dolog,		0,	0	},
1067d8fb588SMatthias Schmidt #endif /* !HAVENOUTMP && !KAI */
1077d8fb588SMatthias Schmidt     { "login",		dologin,	0,	1	},
1087d8fb588SMatthias Schmidt     { "logout",		dologout,	0,	0	},
1097d8fb588SMatthias Schmidt     { "ls-F",		dolist,		0,	INF	},
1107d8fb588SMatthias Schmidt #ifdef TCF
1117d8fb588SMatthias Schmidt     { "migrate",	domigrate,	1,	INF	},
1127d8fb588SMatthias Schmidt #endif /* TCF */
1137d8fb588SMatthias Schmidt #ifdef NEWGRP
1147d8fb588SMatthias Schmidt     { "newgrp",		donewgrp,	0,	2	},
1157d8fb588SMatthias Schmidt #endif /* NEWGRP */
1167d8fb588SMatthias Schmidt     { "nice",		donice,		0,	INF	},
1177d8fb588SMatthias Schmidt     { "nohup",		donohup,	0,	INF	},
1187d8fb588SMatthias Schmidt     { "notify",		donotify,	0,	INF	},
1197d8fb588SMatthias Schmidt     { "onintr",		doonintr,	0,	2	},
1207d8fb588SMatthias Schmidt     { "popd",		dopopd,		0,	INF	},
1217d8fb588SMatthias Schmidt     { "printenv",	doprintenv,	0,	1	},
1227d8fb588SMatthias Schmidt     { "pushd",		dopushd,	0,	INF	},
1237d8fb588SMatthias Schmidt     { "rehash",		dohash,		0,	3	},
1247d8fb588SMatthias Schmidt     { "repeat",		dorepeat,	2,	INF	},
1257d8fb588SMatthias Schmidt #ifdef apollo
1267d8fb588SMatthias Schmidt     { "rootnode",	dorootnode,	1,	1	},
1277d8fb588SMatthias Schmidt #endif /* apollo */
1287d8fb588SMatthias Schmidt     { "sched",		dosched,	0,	INF	},
1297d8fb588SMatthias Schmidt     { "set",		doset,		0,	INF	},
1307d8fb588SMatthias Schmidt     { "setenv",		dosetenv,	0,	2	},
1317d8fb588SMatthias Schmidt #ifdef MACH
1327d8fb588SMatthias Schmidt     { "setpath",	dosetpath,	0,	INF	},
1337d8fb588SMatthias Schmidt #endif	/* MACH */
1347d8fb588SMatthias Schmidt #ifdef TCF
1357d8fb588SMatthias Schmidt     { "setspath",	dosetspath,	1,	INF	},
1367d8fb588SMatthias Schmidt #endif /* TCF */
1377d8fb588SMatthias Schmidt     { "settc",		dosettc,	2,	2	},
1387d8fb588SMatthias Schmidt     { "setty", 		dosetty,	0,      INF	},
1397d8fb588SMatthias Schmidt #ifdef TCF
1407d8fb588SMatthias Schmidt     { "setxvers",	dosetxvers,	0,	1	},
1417d8fb588SMatthias Schmidt #endif /* TCF */
1427d8fb588SMatthias Schmidt     { "shift",		shift,		0,	1	},
1437d8fb588SMatthias Schmidt     { "source",		dosource,	1,	INF	},
1447d8fb588SMatthias Schmidt     { "stop",		dostop,		1,	INF	},
1457d8fb588SMatthias Schmidt     { "suspend",	dosuspend,	0,	0	},
1467d8fb588SMatthias Schmidt     { "switch",		doswitch,	1,	INF	},
1477d8fb588SMatthias Schmidt     { "telltc",		dotelltc,	0,	INF	},
1487d8fb588SMatthias Schmidt #ifndef WINNT_NATIVE
1497d8fb588SMatthias Schmidt     { "termname",	dotermname,	0,  	1       },
1507d8fb588SMatthias Schmidt #endif
1517d8fb588SMatthias Schmidt     { "time",		dotime,		0,	INF	},
1527d8fb588SMatthias Schmidt #if defined(_CX_UX)
1537d8fb588SMatthias Schmidt     { "ucb",		doucb,		0,	INF	},
1547d8fb588SMatthias Schmidt #endif /* _CX_UX */
1557d8fb588SMatthias Schmidt     { "umask",		doumask,	0,	1	},
1567d8fb588SMatthias Schmidt     { "unalias",	unalias,	1,	INF	},
1577d8fb588SMatthias Schmidt     { "uncomplete",	douncomplete,	1,	INF	},
1587d8fb588SMatthias Schmidt     { "unhash",		dounhash,	0,	0	},
1597d8fb588SMatthias Schmidt #if defined(masscomp) || defined(_CX_UX)
1607d8fb588SMatthias Schmidt     { "universe",	douniverse,	0,	INF	},
1617d8fb588SMatthias Schmidt #endif /* masscomp || _CX_UX */
1627d8fb588SMatthias Schmidt #ifndef HAVENOLIMIT
1637d8fb588SMatthias Schmidt     { "unlimit",	dounlimit,	0,	INF	},
1647d8fb588SMatthias Schmidt #endif /* !HAVENOLIMIT */
1657d8fb588SMatthias Schmidt     { "unset",		unset,		1,	INF	},
1667d8fb588SMatthias Schmidt     { "unsetenv",	dounsetenv,	1,	INF	},
1677d8fb588SMatthias Schmidt #ifdef apollo
1687d8fb588SMatthias Schmidt     { "ver",		dover,		0,	INF	},
1697d8fb588SMatthias Schmidt #endif /* apollo */
1707d8fb588SMatthias Schmidt     { "wait",		dowait,		0,	0	},
1717d8fb588SMatthias Schmidt #ifdef WARP
1727d8fb588SMatthias Schmidt     { "warp",		dowarp,		0,	2	},
1737d8fb588SMatthias Schmidt #endif /* WARP */
1747d8fb588SMatthias Schmidt #if !defined(HAVENOUTMP) && defined(KAI)
1757d8fb588SMatthias Schmidt     { "watchlog",	dolog,		0,	0	},
1767d8fb588SMatthias Schmidt #endif /* !HAVENOUTMP && KAI */
1777d8fb588SMatthias Schmidt     { "where",		dowhere,	1,	INF	},
1787d8fb588SMatthias Schmidt     { "which",		dowhich,	1,	INF	},
1797d8fb588SMatthias Schmidt     { "while",		dowhile,	1,	INF	}
1807d8fb588SMatthias Schmidt };
1817d8fb588SMatthias Schmidt int nbfunc = sizeof bfunc / sizeof *bfunc;
1827d8fb588SMatthias Schmidt 
1837d8fb588SMatthias Schmidt struct srch srchn[] = {
1847d8fb588SMatthias Schmidt     { "@",		TC_LET		},
1857d8fb588SMatthias Schmidt     { "break",		TC_BREAK	},
1867d8fb588SMatthias Schmidt     { "breaksw",	TC_BRKSW	},
1877d8fb588SMatthias Schmidt     { "case",		TC_CASE		},
1887d8fb588SMatthias Schmidt     { "default", 	TC_DEFAULT	},
1897d8fb588SMatthias Schmidt     { "else",		TC_ELSE		},
1907d8fb588SMatthias Schmidt     { "end",		TC_END		},
1917d8fb588SMatthias Schmidt     { "endif",		TC_ENDIF	},
1927d8fb588SMatthias Schmidt     { "endsw",		TC_ENDSW	},
1937d8fb588SMatthias Schmidt     { "exit",		TC_EXIT		},
1947d8fb588SMatthias Schmidt     { "foreach", 	TC_FOREACH	},
1957d8fb588SMatthias Schmidt     { "goto",		TC_GOTO		},
1967d8fb588SMatthias Schmidt     { "if",		TC_IF		},
1977d8fb588SMatthias Schmidt     { "label",		TC_LABEL	},
1987d8fb588SMatthias Schmidt     { "set",		TC_SET		},
1997d8fb588SMatthias Schmidt     { "switch",		TC_SWITCH	},
2007d8fb588SMatthias Schmidt     { "while",		TC_WHILE	}
2017d8fb588SMatthias Schmidt };
2027d8fb588SMatthias Schmidt int nsrchn = sizeof srchn / sizeof *srchn;
2037d8fb588SMatthias Schmidt 
2047d8fb588SMatthias Schmidt 
2057d8fb588SMatthias Schmidt /*
2067d8fb588SMatthias Schmidt  * Note: For some machines, (hpux eg.)
2077d8fb588SMatthias Schmidt  * NSIG = number of signals + 1...
2087d8fb588SMatthias Schmidt  * so we define 33 or 65 (POSIX) signals for
2097d8fb588SMatthias Schmidt  * everybody
2107d8fb588SMatthias Schmidt  */
2117d8fb588SMatthias Schmidt 
2127d8fb588SMatthias Schmidt /* We define NUMSIG to avoid changing NSIG or MAXSIG */
21360962bbcSJohn Marino #if defined(POSIX) && (!defined(__CYGWIN__) || defined (__x86_64__))
2147d8fb588SMatthias Schmidt # define NUMSIG 65
2157d8fb588SMatthias Schmidt #else /* !POSIX */
2167d8fb588SMatthias Schmidt # define NUMSIG 33
2177d8fb588SMatthias Schmidt #endif /* POSIX */
2187d8fb588SMatthias Schmidt 
2197d8fb588SMatthias Schmidt int	nsig = NUMSIG - 1;	/* This should be the number of real signals */
2207d8fb588SMatthias Schmidt 				/* not counting signal 0 */
2217d8fb588SMatthias Schmidt struct mesg mesg[NUMSIG];	/* Arrays start at [0] so we initialize from */
2227d8fb588SMatthias Schmidt 				/* 0 to 32 or 64, the max real signal number */
2237d8fb588SMatthias Schmidt 
2247d8fb588SMatthias Schmidt void
mesginit(void)2257d8fb588SMatthias Schmidt mesginit(void)
2267d8fb588SMatthias Schmidt {
2277d8fb588SMatthias Schmidt 
2287d8fb588SMatthias Schmidt #ifdef NLS_CATALOGS
2297d8fb588SMatthias Schmidt     int i;
2307d8fb588SMatthias Schmidt 
2317d8fb588SMatthias Schmidt     for (i = 0; i < NUMSIG; i++) {
2327d8fb588SMatthias Schmidt         xfree((char *)(intptr_t)mesg[i].pname);
2337d8fb588SMatthias Schmidt 	mesg[i].pname = NULL;
2347d8fb588SMatthias Schmidt     }
2357d8fb588SMatthias Schmidt #endif /* NLS_CATALOGS */
2367d8fb588SMatthias Schmidt 
2377d8fb588SMatthias Schmidt #if defined(SIGNULL) || defined(DECOSF1)
2387d8fb588SMatthias Schmidt # ifndef SIGNULL
2397d8fb588SMatthias Schmidt #  define SIGNULL 0
2407d8fb588SMatthias Schmidt # endif /* !SIGNULL */
2417d8fb588SMatthias Schmidt     if (mesg[SIGNULL].pname == NULL) {
2427d8fb588SMatthias Schmidt 	mesg[SIGNULL].iname = "NULL";
2437d8fb588SMatthias Schmidt 	mesg[SIGNULL].pname = CSAVS(2, 1, "Null signal");
2447d8fb588SMatthias Schmidt     }
2457d8fb588SMatthias Schmidt #endif /* SIGNULL || DECOSF1 */
2467d8fb588SMatthias Schmidt 
2477d8fb588SMatthias Schmidt #ifdef SIGHUP
2487d8fb588SMatthias Schmidt     if (mesg[SIGHUP].pname == NULL) {
2497d8fb588SMatthias Schmidt 	mesg[SIGHUP].iname = "HUP";
2507d8fb588SMatthias Schmidt 	mesg[SIGHUP].pname = CSAVS(2, 2, "Hangup");
2517d8fb588SMatthias Schmidt     }
2527d8fb588SMatthias Schmidt #endif /* SIGHUP */
2537d8fb588SMatthias Schmidt 
2547d8fb588SMatthias Schmidt #ifdef SIGINT
2557d8fb588SMatthias Schmidt     if (mesg[SIGINT].pname == NULL) {
2567d8fb588SMatthias Schmidt 	mesg[SIGINT].iname = "INT";
2577d8fb588SMatthias Schmidt 	mesg[SIGINT].pname = CSAVS(2, 3, "Interrupt");
2587d8fb588SMatthias Schmidt     }
2597d8fb588SMatthias Schmidt #endif /* SIGINT */
2607d8fb588SMatthias Schmidt 
2617d8fb588SMatthias Schmidt #ifdef SIGQUIT
2627d8fb588SMatthias Schmidt     if (mesg[SIGQUIT].pname == NULL) {
2637d8fb588SMatthias Schmidt 	mesg[SIGQUIT].iname = "QUIT";
2647d8fb588SMatthias Schmidt 	mesg[SIGQUIT].pname = CSAVS(2, 4, "Quit");
2657d8fb588SMatthias Schmidt     }
2667d8fb588SMatthias Schmidt #endif /* SIGQUIT */
2677d8fb588SMatthias Schmidt 
2687d8fb588SMatthias Schmidt #ifdef SIGILL
2697d8fb588SMatthias Schmidt     if (mesg[SIGILL].pname == NULL) {
2707d8fb588SMatthias Schmidt 	mesg[SIGILL].iname = "ILL";
2717d8fb588SMatthias Schmidt 	mesg[SIGILL].pname = CSAVS(2, 5, "Illegal instruction");
2727d8fb588SMatthias Schmidt     }
2737d8fb588SMatthias Schmidt #endif /* SIGILL */
2747d8fb588SMatthias Schmidt 
2757d8fb588SMatthias Schmidt #ifdef SIGTRAP
2767d8fb588SMatthias Schmidt     if (mesg[SIGTRAP].pname == NULL) {
2777d8fb588SMatthias Schmidt 	mesg[SIGTRAP].iname = "TRAP";
2787d8fb588SMatthias Schmidt 	mesg[SIGTRAP].pname = CSAVS(2, 6, "Trace/BPT trap");
2797d8fb588SMatthias Schmidt     }
2807d8fb588SMatthias Schmidt #endif /* SIGTRAP */
2817d8fb588SMatthias Schmidt 
2827d8fb588SMatthias Schmidt #ifdef SIGABRT
2837d8fb588SMatthias Schmidt     if (mesg[SIGABRT].pname == NULL) {
2847d8fb588SMatthias Schmidt 	mesg[SIGABRT].iname = "ABRT";
2857d8fb588SMatthias Schmidt 	mesg[SIGABRT].pname = CSAVS(2, 7, "Abort");
2867d8fb588SMatthias Schmidt     }
2877d8fb588SMatthias Schmidt #endif /* SIGABRT */
2887d8fb588SMatthias Schmidt 
2897d8fb588SMatthias Schmidt #ifdef SIGIOT
2907d8fb588SMatthias Schmidt     if (mesg[SIGIOT].pname == NULL) {
2917d8fb588SMatthias Schmidt 	mesg[SIGIOT].iname = "IOT";
2927d8fb588SMatthias Schmidt 	mesg[SIGIOT].pname = CSAVS(2, 8, "IOT trap");
2937d8fb588SMatthias Schmidt     }
2947d8fb588SMatthias Schmidt #endif /* SIGIOT */
2957d8fb588SMatthias Schmidt 
2967d8fb588SMatthias Schmidt #ifdef SIGDANGER
2977d8fb588SMatthias Schmidt     /* aiws */
2987d8fb588SMatthias Schmidt     if (mesg[SIGDANGER].pname == NULL) {
2997d8fb588SMatthias Schmidt 	mesg[SIGDANGER].iname = "DANGER";
3007d8fb588SMatthias Schmidt 	mesg[SIGDANGER].pname = CSAVS(2, 9, "System Crash Imminent");
3017d8fb588SMatthias Schmidt     }
3027d8fb588SMatthias Schmidt #endif /* SIGDANGER */
3037d8fb588SMatthias Schmidt 
3047d8fb588SMatthias Schmidt #ifdef SIGERR
3057d8fb588SMatthias Schmidt     /* _CRAY */
3067d8fb588SMatthias Schmidt     if (mesg[SIGERR].pname == NULL) {
3077d8fb588SMatthias Schmidt 	mesg[SIGERR].iname = "ERR";
3087d8fb588SMatthias Schmidt 	mesg[SIGERR].pname = CSAVS(2, 10, "Error exit");
3097d8fb588SMatthias Schmidt     }
3107d8fb588SMatthias Schmidt #endif /* SIGERR */
3117d8fb588SMatthias Schmidt 
3127d8fb588SMatthias Schmidt #ifdef SIGEMT
3137d8fb588SMatthias Schmidt     if (mesg[SIGEMT].pname == NULL) {
3147d8fb588SMatthias Schmidt 	mesg[SIGEMT].iname = "EMT";
3157d8fb588SMatthias Schmidt 	mesg[SIGEMT].pname = CSAVS(2, 11, "EMT trap");
3167d8fb588SMatthias Schmidt     }
3177d8fb588SMatthias Schmidt #endif /* SIGEMT */
3187d8fb588SMatthias Schmidt 
3197d8fb588SMatthias Schmidt #ifdef SIGFPE
3207d8fb588SMatthias Schmidt     if (mesg[SIGFPE].pname == NULL) {
3217d8fb588SMatthias Schmidt 	mesg[SIGFPE].iname = "FPE";
3227d8fb588SMatthias Schmidt 	mesg[SIGFPE].pname = CSAVS(2, 12, "Floating exception");
3237d8fb588SMatthias Schmidt     }
3247d8fb588SMatthias Schmidt #endif /* SIGFPE */
3257d8fb588SMatthias Schmidt 
3267d8fb588SMatthias Schmidt #ifdef SIGKILL
3277d8fb588SMatthias Schmidt     if (mesg[SIGKILL].pname == NULL) {
3287d8fb588SMatthias Schmidt 	mesg[SIGKILL].iname = "KILL";
3297d8fb588SMatthias Schmidt 	mesg[SIGKILL].pname = CSAVS(2, 13, "Killed");
3307d8fb588SMatthias Schmidt     }
3317d8fb588SMatthias Schmidt #endif /* SIGKILL */
3327d8fb588SMatthias Schmidt 
3337d8fb588SMatthias Schmidt #ifdef SIGUSR1
3347d8fb588SMatthias Schmidt     if (mesg[SIGUSR1].pname == NULL) {
3357d8fb588SMatthias Schmidt 	mesg[SIGUSR1].iname = "USR1";
3367d8fb588SMatthias Schmidt 	mesg[SIGUSR1].pname = CSAVS(2, 14, "User signal 1");
3377d8fb588SMatthias Schmidt     }
3387d8fb588SMatthias Schmidt #endif /* SIGUSR1 */
3397d8fb588SMatthias Schmidt 
3407d8fb588SMatthias Schmidt #ifdef SIGUSR2
3417d8fb588SMatthias Schmidt     if (mesg[SIGUSR2].pname == NULL) {
3427d8fb588SMatthias Schmidt 	mesg[SIGUSR2].iname = "USR2";
3437d8fb588SMatthias Schmidt 	mesg[SIGUSR2].pname = CSAVS(2, 15, "User signal 2");
3447d8fb588SMatthias Schmidt     }
3457d8fb588SMatthias Schmidt #endif /* SIGUSR2 */
3467d8fb588SMatthias Schmidt 
3477d8fb588SMatthias Schmidt #ifdef SIGSEGV
3487d8fb588SMatthias Schmidt     if (mesg[SIGSEGV].pname == NULL) {
3497d8fb588SMatthias Schmidt 	mesg[SIGSEGV].iname = "SEGV";
3507d8fb588SMatthias Schmidt 	mesg[SIGSEGV].pname = CSAVS(2, 16, "Segmentation fault");
3517d8fb588SMatthias Schmidt     }
3527d8fb588SMatthias Schmidt #endif /* SIGSEGV */
3537d8fb588SMatthias Schmidt 
3547d8fb588SMatthias Schmidt #ifdef SIGBUS
3557d8fb588SMatthias Schmidt     if (mesg[SIGBUS].pname == NULL) {
3567d8fb588SMatthias Schmidt 	mesg[SIGBUS].iname = "BUS";
3577d8fb588SMatthias Schmidt 	mesg[SIGBUS].pname = CSAVS(2, 17, "Bus error");
3587d8fb588SMatthias Schmidt     }
3597d8fb588SMatthias Schmidt #endif /* SIGBUS */
3607d8fb588SMatthias Schmidt 
3617d8fb588SMatthias Schmidt #ifdef SIGPRE
3627d8fb588SMatthias Schmidt     /* _CRAY || IBMAIX */
3637d8fb588SMatthias Schmidt     if (mesg[SIGPRE].pname == NULL) {
3647d8fb588SMatthias Schmidt 	mesg[SIGPRE].iname = "PRE";
3657d8fb588SMatthias Schmidt 	mesg[SIGPRE].pname = CSAVS(2, 18, "Program range error");
3667d8fb588SMatthias Schmidt     }
3677d8fb588SMatthias Schmidt #endif /* SIGPRE */
3687d8fb588SMatthias Schmidt 
3697d8fb588SMatthias Schmidt #ifdef SIGORE
3707d8fb588SMatthias Schmidt     /* _CRAY */
3717d8fb588SMatthias Schmidt     if (mesg[SIGORE].pname == NULL) {
3727d8fb588SMatthias Schmidt 	mesg[SIGORE].iname = "ORE";
3737d8fb588SMatthias Schmidt 	mesg[SIGORE].pname = CSAVS(2, 19, "Operand range error");
3747d8fb588SMatthias Schmidt     }
3757d8fb588SMatthias Schmidt #endif /* SIGORE */
3767d8fb588SMatthias Schmidt 
3777d8fb588SMatthias Schmidt #ifdef SIGSYS
3787d8fb588SMatthias Schmidt     if (mesg[SIGSYS].pname == NULL) {
3797d8fb588SMatthias Schmidt 	mesg[SIGSYS].iname = "SYS";
3807d8fb588SMatthias Schmidt 	mesg[SIGSYS].pname = CSAVS(2, 20, "Bad system call");
3817d8fb588SMatthias Schmidt     }
3827d8fb588SMatthias Schmidt #endif /* SIGSYS */
3837d8fb588SMatthias Schmidt 
3847d8fb588SMatthias Schmidt #ifdef SIGPIPE
3857d8fb588SMatthias Schmidt     if (mesg[SIGPIPE].pname == NULL) {
3867d8fb588SMatthias Schmidt 	mesg[SIGPIPE].iname = "PIPE";
3877d8fb588SMatthias Schmidt 	mesg[SIGPIPE].pname = CSAVS(2, 21, "Broken pipe");
3887d8fb588SMatthias Schmidt     }
3897d8fb588SMatthias Schmidt #endif /* SIGPIPE */
3907d8fb588SMatthias Schmidt 
3917d8fb588SMatthias Schmidt #ifdef SIGALRM
3927d8fb588SMatthias Schmidt     if (mesg[SIGALRM].pname == NULL) {
3937d8fb588SMatthias Schmidt 	mesg[SIGALRM].iname = "ALRM";
3947d8fb588SMatthias Schmidt 	mesg[SIGALRM].pname = CSAVS(2, 22, "Alarm clock");
3957d8fb588SMatthias Schmidt     }
3967d8fb588SMatthias Schmidt #endif /* SIGALRM */
3977d8fb588SMatthias Schmidt 
3987d8fb588SMatthias Schmidt #ifdef SIGTERM
3997d8fb588SMatthias Schmidt     if (mesg[SIGTERM].pname == NULL) {
4007d8fb588SMatthias Schmidt 	mesg[SIGTERM].iname = "TERM";
4017d8fb588SMatthias Schmidt 	mesg[SIGTERM].pname = CSAVS(2, 23, "Terminated");
4027d8fb588SMatthias Schmidt     }
4037d8fb588SMatthias Schmidt #endif /* SIGTERM */
4047d8fb588SMatthias Schmidt 
4057d8fb588SMatthias Schmidt /* SIGCLD vs SIGCHLD */
4067d8fb588SMatthias Schmidt #if !defined(SIGCHLD) || defined(SOLARIS2) || defined(apollo) || defined(__EMX__)
4077d8fb588SMatthias Schmidt     /* If we don't define SIGCHLD, or our OS prefers SIGCLD to SIGCHLD, */
4087d8fb588SMatthias Schmidt     /* check for SIGCLD */
4097d8fb588SMatthias Schmidt # ifdef SIGCLD
4107d8fb588SMatthias Schmidt     if (mesg[SIGCLD].pname == NULL) {
4117d8fb588SMatthias Schmidt 	mesg[SIGCLD].iname = "CLD";
4127d8fb588SMatthias Schmidt #  ifdef BSDJOBS
4137d8fb588SMatthias Schmidt 	mesg[SIGCLD].pname = CSAVS(2, 24, "Child status change");
4147d8fb588SMatthias Schmidt #  else /* !BSDJOBS */
4157d8fb588SMatthias Schmidt 	mesg[SIGCLD].pname = CSAVS(2, 25, "Death of child");
4167d8fb588SMatthias Schmidt #  endif /* BSDJOBS */
4177d8fb588SMatthias Schmidt     }
4187d8fb588SMatthias Schmidt # endif /* SIGCLD */
4197d8fb588SMatthias Schmidt #else /* !(!SIGCHLD || SOLARIS2 || apollo || __EMX__) */
4207d8fb588SMatthias Schmidt     /* We probably define SIGCHLD */
4217d8fb588SMatthias Schmidt # ifdef SIGCHLD
4227d8fb588SMatthias Schmidt     if (mesg[SIGCHLD].pname == NULL) {
4237d8fb588SMatthias Schmidt 	mesg[SIGCHLD].iname = "CHLD";
4247d8fb588SMatthias Schmidt #  ifdef BSDJOBS
4257d8fb588SMatthias Schmidt 	mesg[SIGCHLD].pname = CSAVS(2, 27, "Child stopped or exited");
4267d8fb588SMatthias Schmidt #  else /* !BSDJOBS */
4277d8fb588SMatthias Schmidt 	mesg[SIGCHLD].pname = CSAVS(2, 28, "Child exited");
4287d8fb588SMatthias Schmidt #  endif /* BSDJOBS */
4297d8fb588SMatthias Schmidt     }
4307d8fb588SMatthias Schmidt # endif /* SIGCHLD */
4317d8fb588SMatthias Schmidt #endif /* !SIGCHLD || SOLARIS2 || apollo || __EMX__ */
4327d8fb588SMatthias Schmidt 
4337d8fb588SMatthias Schmidt #ifdef SIGAPOLLO
4347d8fb588SMatthias Schmidt     /* apollo */
4357d8fb588SMatthias Schmidt     if (mesg[SIGAPOLLO].pname == NULL) {
4367d8fb588SMatthias Schmidt 	mesg[SIGAPOLLO].iname = "APOLLO";
4377d8fb588SMatthias Schmidt 	mesg[SIGAPOLLO].pname = CSAVS(2, 26, "Apollo-specific fault");
4387d8fb588SMatthias Schmidt     }
4397d8fb588SMatthias Schmidt #endif /* SIGAPOLLO */
4407d8fb588SMatthias Schmidt 
4417d8fb588SMatthias Schmidt #ifdef SIGPWR
4427d8fb588SMatthias Schmidt     if (mesg[SIGPWR].pname == NULL) {
4437d8fb588SMatthias Schmidt 	mesg[SIGPWR].iname = "PWR";
4447d8fb588SMatthias Schmidt 	mesg[SIGPWR].pname = CSAVS(2, 29, "Power failure");
4457d8fb588SMatthias Schmidt     }
4467d8fb588SMatthias Schmidt #endif /* SIGPWR */
4477d8fb588SMatthias Schmidt 
4487d8fb588SMatthias Schmidt #ifdef SIGLOST
4497d8fb588SMatthias Schmidt     if (mesg[SIGLOST].pname == NULL) {
4507d8fb588SMatthias Schmidt 	mesg[SIGLOST].iname = "LOST";
4517d8fb588SMatthias Schmidt 	mesg[SIGLOST].pname = CSAVS(2, 30, "Resource Lost");
4527d8fb588SMatthias Schmidt     }
4537d8fb588SMatthias Schmidt #endif /* SIGLOST */
4547d8fb588SMatthias Schmidt 
4557d8fb588SMatthias Schmidt #ifdef SIGBREAK
4567d8fb588SMatthias Schmidt     /* __EMX__ */
4577d8fb588SMatthias Schmidt     if (mesg[SIGBREAK].pname == NULL) {
4587d8fb588SMatthias Schmidt 	mesg[SIGBREAK].iname = "BREAK";
4597d8fb588SMatthias Schmidt 	mesg[SIGBREAK].pname = CSAVS(2, 31, "Break (Ctrl-Break)");
4607d8fb588SMatthias Schmidt     }
4617d8fb588SMatthias Schmidt #endif /* SIGBREAK */
4627d8fb588SMatthias Schmidt 
4637d8fb588SMatthias Schmidt #ifdef SIGIO
4647d8fb588SMatthias Schmidt # if !defined(SIGPOLL) || SIGPOLL != SIGIO
4657d8fb588SMatthias Schmidt     if (mesg[SIGIO].pname == NULL) {
4667d8fb588SMatthias Schmidt 	mesg[SIGIO].iname = "IO";
4677d8fb588SMatthias Schmidt #  ifdef cray
4687d8fb588SMatthias Schmidt 	mesg[SIGIO].pname = CSAVS(2, 32, "Input/output possible signal");
4697d8fb588SMatthias Schmidt #  else /* !cray */
4707d8fb588SMatthias Schmidt 	mesg[SIGIO].pname = CSAVS(2, 33, "Asynchronous I/O (select)");
4717d8fb588SMatthias Schmidt #  endif /* cray */
4727d8fb588SMatthias Schmidt     }
4737d8fb588SMatthias Schmidt # endif /* !SIGPOLL || SIGPOLL != SIGIO */
4747d8fb588SMatthias Schmidt #endif /* SIGIO */
4757d8fb588SMatthias Schmidt 
4767d8fb588SMatthias Schmidt #ifdef SIGURG
4777d8fb588SMatthias Schmidt     if (mesg[SIGURG].pname == NULL) {
4787d8fb588SMatthias Schmidt 	mesg[SIGURG].iname = "URG";
4797d8fb588SMatthias Schmidt 	mesg[SIGURG].pname = CSAVS(2, 34, "Urgent condition on I/O channel");
4807d8fb588SMatthias Schmidt     }
4817d8fb588SMatthias Schmidt #endif /* SIGURG */
4827d8fb588SMatthias Schmidt 
4837d8fb588SMatthias Schmidt #ifdef SIGMT
4847d8fb588SMatthias Schmidt     /* cray */
4857d8fb588SMatthias Schmidt     if (mesg[SIGMT].pname == NULL) {
4867d8fb588SMatthias Schmidt 	mesg[SIGMT].iname = "MT";
4877d8fb588SMatthias Schmidt 	mesg[SIGMT].pname = CSAVS(2, 35, "Multitasking wake-up");
4887d8fb588SMatthias Schmidt     }
4897d8fb588SMatthias Schmidt #endif /* SIGMT */
4907d8fb588SMatthias Schmidt 
4917d8fb588SMatthias Schmidt #ifdef SIGMTKILL
4927d8fb588SMatthias Schmidt     /* cray */
4937d8fb588SMatthias Schmidt     if (mesg[SIGMTKILL].pname == NULL) {
4947d8fb588SMatthias Schmidt 	mesg[SIGMTKILL].iname = "MTKILL";
4957d8fb588SMatthias Schmidt 	mesg[SIGMTKILL].pname = CSAVS(2, 36, "Multitasking kill");
4967d8fb588SMatthias Schmidt     }
4977d8fb588SMatthias Schmidt #endif /* SIGMTKILL */
4987d8fb588SMatthias Schmidt 
4997d8fb588SMatthias Schmidt #ifdef SIGBUFIO
5007d8fb588SMatthias Schmidt     /* _CRAYCOM */
5017d8fb588SMatthias Schmidt     if (mesg[SIGBUFIO].pname == NULL) {
5027d8fb588SMatthias Schmidt 	mesg[SIGBUFIO].iname = "BUFIO";
5037d8fb588SMatthias Schmidt 	mesg[SIGBUFIO].pname = CSAVS(2, 37,
5047d8fb588SMatthias Schmidt 				    "Fortran asynchronous I/O completion");
5057d8fb588SMatthias Schmidt     }
5067d8fb588SMatthias Schmidt #endif /* SIGBUFIO */
5077d8fb588SMatthias Schmidt 
5087d8fb588SMatthias Schmidt #ifdef SIGRECOVERY
5097d8fb588SMatthias Schmidt     /* _CRAYCOM */
5107d8fb588SMatthias Schmidt     if (mesg[SIGRECOVERY].pname == NULL) {
5117d8fb588SMatthias Schmidt 	mesg[SIGRECOVERY].iname = "RECOVERY";
5127d8fb588SMatthias Schmidt 	mesg[SIGRECOVERY].pname = CSAVS(2, 38, "Recovery");
5137d8fb588SMatthias Schmidt     }
5147d8fb588SMatthias Schmidt #endif /* SIGRECOVERY */
5157d8fb588SMatthias Schmidt 
5167d8fb588SMatthias Schmidt #ifdef SIGUME
5177d8fb588SMatthias Schmidt     /* _CRAYCOM */
5187d8fb588SMatthias Schmidt     if (mesg[SIGUME].pname == NULL) {
5197d8fb588SMatthias Schmidt 	mesg[SIGUME].iname = "UME";
5207d8fb588SMatthias Schmidt 	mesg[SIGUME].pname = CSAVS(2, 39, "Uncorrectable memory error");
5217d8fb588SMatthias Schmidt     }
5227d8fb588SMatthias Schmidt #endif /* SIGUME */
5237d8fb588SMatthias Schmidt 
5247d8fb588SMatthias Schmidt #ifdef SIGCPULIM
5257d8fb588SMatthias Schmidt     /* _CRAYCOM */
5267d8fb588SMatthias Schmidt     if (mesg[SIGCPULIM].pname == NULL) {
5277d8fb588SMatthias Schmidt 	mesg[SIGCPULIM].iname = "CPULIM";
5287d8fb588SMatthias Schmidt 	mesg[SIGCPULIM].pname = CSAVS(2, 40, "CPU time limit exceeded");
5297d8fb588SMatthias Schmidt     }
5307d8fb588SMatthias Schmidt #endif /* SIGCPULIM */
5317d8fb588SMatthias Schmidt 
5327d8fb588SMatthias Schmidt #ifdef SIGSHUTDN
5337d8fb588SMatthias Schmidt     /* _CRAYCOM */
5347d8fb588SMatthias Schmidt     if (mesg[SIGSHUTDN].pname == NULL) {
5357d8fb588SMatthias Schmidt 	mesg[SIGSHUTDN].iname = "SHUTDN";
5367d8fb588SMatthias Schmidt 	mesg[SIGSHUTDN].pname = CSAVS(2, 41, "System shutdown imminent");
5377d8fb588SMatthias Schmidt     }
5387d8fb588SMatthias Schmidt #endif /* SIGSHUTDN */
5397d8fb588SMatthias Schmidt 
5407d8fb588SMatthias Schmidt #ifdef SIGNOWAK
5417d8fb588SMatthias Schmidt     /* _CRAYCOM */
5427d8fb588SMatthias Schmidt     if (mesg[SIGNOWAK].pname == NULL) {
5437d8fb588SMatthias Schmidt 	mesg[SIGNOWAK].iname = "NOWAK";
5447d8fb588SMatthias Schmidt 	mesg[SIGNOWAK].pname = CSAVS(2, 42,
5457d8fb588SMatthias Schmidt 				    "Micro-tasking group-no wakeup flag set");
5467d8fb588SMatthias Schmidt     }
5477d8fb588SMatthias Schmidt #endif /* SIGNOWAK */
5487d8fb588SMatthias Schmidt 
5497d8fb588SMatthias Schmidt #ifdef SIGTHERR
5507d8fb588SMatthias Schmidt     /* _CRAYCOM */
5517d8fb588SMatthias Schmidt     if (mesg[SIGTHERR].pname == NULL) {
5527d8fb588SMatthias Schmidt 	mesg[SIGTHERR].iname = "THERR";
5537d8fb588SMatthias Schmidt 	mesg[SIGTHERR].pname = CSAVS(2, 43,
5547d8fb588SMatthias Schmidt 			    "Thread error - (use cord -T for detailed info)");
5557d8fb588SMatthias Schmidt     }
5567d8fb588SMatthias Schmidt #endif /* SIGTHERR */
5577d8fb588SMatthias Schmidt 
5587d8fb588SMatthias Schmidt #ifdef SIGRPE
5597d8fb588SMatthias Schmidt     /* cray */
5607d8fb588SMatthias Schmidt     if (mesg[SIGRPE].pname == NULL) {
5617d8fb588SMatthias Schmidt 	mesg[SIGRPE].pname = CSAVS(2, 44, "CRAY Y-MP register parity error");
5627d8fb588SMatthias Schmidt 	mesg[SIGRPE].iname = "RPE";
5637d8fb588SMatthias Schmidt     }
5647d8fb588SMatthias Schmidt #endif /* SIGRPE */
5657d8fb588SMatthias Schmidt 
5667d8fb588SMatthias Schmidt #ifdef SIGINFO
5677d8fb588SMatthias Schmidt     if (mesg[SIGINFO].pname == NULL) {
5687d8fb588SMatthias Schmidt 	mesg[SIGINFO].iname = "INFO";
5697d8fb588SMatthias Schmidt 	mesg[SIGINFO].pname = CSAVS(2, 45, "Information request");
5707d8fb588SMatthias Schmidt     }
5717d8fb588SMatthias Schmidt #endif /* SIGINFO */
5727d8fb588SMatthias Schmidt 
5737d8fb588SMatthias Schmidt #ifdef SIGSTOP
5747d8fb588SMatthias Schmidt     if (mesg[SIGSTOP].pname == NULL) {
5757d8fb588SMatthias Schmidt 	mesg[SIGSTOP].iname = "STOP";
5767d8fb588SMatthias Schmidt # ifdef SUSPENDED
5777d8fb588SMatthias Schmidt 	mesg[SIGSTOP].pname = CSAVS(2, 46, "Suspended (signal)");
5787d8fb588SMatthias Schmidt # else /* !SUSPENDED */
5797d8fb588SMatthias Schmidt 	mesg[SIGSTOP].pname = CSAVS(2, 47, "Stopped (signal)");
5807d8fb588SMatthias Schmidt # endif /* SUSPENDED */
5817d8fb588SMatthias Schmidt     }
5827d8fb588SMatthias Schmidt #endif /* SIGSTOP */
5837d8fb588SMatthias Schmidt 
5847d8fb588SMatthias Schmidt #ifdef SIGTSTP
5857d8fb588SMatthias Schmidt     if (mesg[SIGTSTP].pname == NULL) {
5867d8fb588SMatthias Schmidt 	mesg[SIGTSTP].iname = "TSTP";
5877d8fb588SMatthias Schmidt # ifdef SUSPENDED
5887d8fb588SMatthias Schmidt 	mesg[SIGTSTP].pname = CSAVS(2, 48, "Suspended");
5897d8fb588SMatthias Schmidt # else /* !SUSPENDED */
5907d8fb588SMatthias Schmidt 	mesg[SIGTSTP].pname = CSAVS(2, 49, "Stopped");
5917d8fb588SMatthias Schmidt # endif /* SUSPENDED */
5927d8fb588SMatthias Schmidt     }
5937d8fb588SMatthias Schmidt #endif /* SIGTSTP */
5947d8fb588SMatthias Schmidt 
5957d8fb588SMatthias Schmidt #ifdef SIGCONT
5967d8fb588SMatthias Schmidt     if (mesg[SIGCONT].pname == NULL) {
5977d8fb588SMatthias Schmidt 	mesg[SIGCONT].iname = "CONT";
5987d8fb588SMatthias Schmidt 	mesg[SIGCONT].pname = CSAVS(2, 50, "Continued");
5997d8fb588SMatthias Schmidt     }
6007d8fb588SMatthias Schmidt #endif /* SIGCONT */
6017d8fb588SMatthias Schmidt 
6027d8fb588SMatthias Schmidt #ifdef SIGTTIN
6037d8fb588SMatthias Schmidt     if (mesg[SIGTTIN].pname == NULL) {
6047d8fb588SMatthias Schmidt 	mesg[SIGTTIN].iname = "TTIN";
6057d8fb588SMatthias Schmidt # ifdef SUSPENDED
6067d8fb588SMatthias Schmidt 	mesg[SIGTTIN].pname = CSAVS(2, 51, "Suspended (tty input)");
6077d8fb588SMatthias Schmidt # else /* !SUSPENDED */
6087d8fb588SMatthias Schmidt 	mesg[SIGTTIN].pname = CSAVS(2, 52, "Stopped (tty input)");
6097d8fb588SMatthias Schmidt # endif /* SUSPENDED */
6107d8fb588SMatthias Schmidt     }
6117d8fb588SMatthias Schmidt #endif /* SIGTTIN */
6127d8fb588SMatthias Schmidt 
6137d8fb588SMatthias Schmidt #ifdef SIGTTOU
6147d8fb588SMatthias Schmidt     if (mesg[SIGTTOU].pname == NULL) {
6157d8fb588SMatthias Schmidt 	mesg[SIGTTOU].iname = "TTOU";
6167d8fb588SMatthias Schmidt # ifdef SUSPENDED
6177d8fb588SMatthias Schmidt 	mesg[SIGTTOU].pname = CSAVS(2, 53, "Suspended (tty output)");
6187d8fb588SMatthias Schmidt # else /* SUSPENDED */
6197d8fb588SMatthias Schmidt 	mesg[SIGTTOU].pname = CSAVS(2, 54, "Stopped (tty output)");
6207d8fb588SMatthias Schmidt # endif /* SUSPENDED */
6217d8fb588SMatthias Schmidt     }
6227d8fb588SMatthias Schmidt #endif /* SIGTTOU */
6237d8fb588SMatthias Schmidt 
6247d8fb588SMatthias Schmidt #ifdef SIGWIND
6257d8fb588SMatthias Schmidt     /* UNIXPC */
6267d8fb588SMatthias Schmidt     if (mesg[SIGWIND].pname == NULL) {
6277d8fb588SMatthias Schmidt 	mesg[SIGWIND].iname = "WIND";
6287d8fb588SMatthias Schmidt 	mesg[SIGWIND].pname = CSAVS(2, 55, "Window status changed");
6297d8fb588SMatthias Schmidt     }
6307d8fb588SMatthias Schmidt #endif /* SIGWIND */
6317d8fb588SMatthias Schmidt 
6327d8fb588SMatthias Schmidt #ifdef SIGWINDOW
6337d8fb588SMatthias Schmidt     if (mesg[SIGWINDOW].pname == NULL) {
6347d8fb588SMatthias Schmidt 	mesg[SIGWINDOW].iname = "WINDOW";
6357d8fb588SMatthias Schmidt 	mesg[SIGWINDOW].pname = CSAVS(2, 56, "Window size changed");
6367d8fb588SMatthias Schmidt     }
6377d8fb588SMatthias Schmidt #endif /* SIGWINDOW */
6387d8fb588SMatthias Schmidt 
6397d8fb588SMatthias Schmidt #ifdef SIGWINCH
6407d8fb588SMatthias Schmidt     if (mesg[SIGWINCH].pname == NULL) {
6417d8fb588SMatthias Schmidt 	mesg[SIGWINCH].iname = "WINCH";
6427d8fb588SMatthias Schmidt 	mesg[SIGWINCH].pname = CSAVS(2, 56, "Window size changed");
6437d8fb588SMatthias Schmidt     }
6447d8fb588SMatthias Schmidt #endif /* SIGWINCH */
6457d8fb588SMatthias Schmidt 
6467d8fb588SMatthias Schmidt #ifdef SIGPHONE
6477d8fb588SMatthias Schmidt     /* UNIXPC */
6487d8fb588SMatthias Schmidt     if (mesg[SIGPHONE].pname == NULL) {
6497d8fb588SMatthias Schmidt 	mesg[SIGPHONE].iname = "PHONE";
6507d8fb588SMatthias Schmidt 	mesg[SIGPHONE].pname = CSAVS(2, 57, "Phone status changed");
6517d8fb588SMatthias Schmidt     }
6527d8fb588SMatthias Schmidt # endif /* SIGPHONE */
6537d8fb588SMatthias Schmidt 
6547d8fb588SMatthias Schmidt #ifdef SIGXCPU
6557d8fb588SMatthias Schmidt     if (mesg[SIGXCPU].pname == NULL) {
6567d8fb588SMatthias Schmidt 	mesg[SIGXCPU].iname = "XCPU";
6577d8fb588SMatthias Schmidt 	mesg[SIGXCPU].pname = CSAVS(2, 58, "Cputime limit exceeded");
6587d8fb588SMatthias Schmidt     }
6597d8fb588SMatthias Schmidt #endif /* SIGXCPU */
6607d8fb588SMatthias Schmidt 
6617d8fb588SMatthias Schmidt #ifdef SIGXFSZ
6627d8fb588SMatthias Schmidt     if (mesg[SIGXFSZ].pname == NULL) {
6637d8fb588SMatthias Schmidt 	mesg[SIGXFSZ].iname = "XFSZ";
6647d8fb588SMatthias Schmidt 	mesg[SIGXFSZ].pname = CSAVS(2, 59, "Filesize limit exceeded");
6657d8fb588SMatthias Schmidt     }
6667d8fb588SMatthias Schmidt #endif /* SIGXFSZ */
6677d8fb588SMatthias Schmidt 
6687d8fb588SMatthias Schmidt #ifdef SIGVTALRM
6697d8fb588SMatthias Schmidt     if (mesg[SIGVTALRM].pname == NULL) {
6707d8fb588SMatthias Schmidt 	mesg[SIGVTALRM].iname = "VTALRM";
6717d8fb588SMatthias Schmidt 	mesg[SIGVTALRM].pname = CSAVS(2, 60, "Virtual time alarm");
6727d8fb588SMatthias Schmidt     }
6737d8fb588SMatthias Schmidt #endif /* SIGVTALRM */
6747d8fb588SMatthias Schmidt 
6757d8fb588SMatthias Schmidt #ifdef SIGPROF
6767d8fb588SMatthias Schmidt     if (mesg[SIGPROF].pname == NULL) {
6777d8fb588SMatthias Schmidt 	mesg[SIGPROF].iname = "PROF";
6787d8fb588SMatthias Schmidt 	mesg[SIGPROF].pname = CSAVS(2, 61, "Profiling time alarm");
6797d8fb588SMatthias Schmidt     }
6807d8fb588SMatthias Schmidt #endif /* SIGPROF */
6817d8fb588SMatthias Schmidt 
6827d8fb588SMatthias Schmidt #ifdef SIGDIL
6837d8fb588SMatthias Schmidt     /* hpux */
6847d8fb588SMatthias Schmidt     if (mesg[SIGDIL].pname == NULL) {
6857d8fb588SMatthias Schmidt 	mesg[SIGDIL].iname = "DIL";
6867d8fb588SMatthias Schmidt 	mesg[SIGDIL].pname = CSAVS(2, 62, "DIL signal");
6877d8fb588SMatthias Schmidt     }
6887d8fb588SMatthias Schmidt #endif /* SIGDIL */
6897d8fb588SMatthias Schmidt 
6907d8fb588SMatthias Schmidt #ifdef SIGPOLL
6917d8fb588SMatthias Schmidt     if (mesg[SIGPOLL].pname == NULL) {
6927d8fb588SMatthias Schmidt 	mesg[SIGPOLL].iname = "POLL";
693*d6ab524cSAntonio Huete Jimenez 	mesg[SIGPOLL].pname = CSAVS(2, 63, "Pollable event occurred");
6947d8fb588SMatthias Schmidt     }
6957d8fb588SMatthias Schmidt #endif /* SIGPOLL */
6967d8fb588SMatthias Schmidt 
6977d8fb588SMatthias Schmidt #ifdef SIGWAITING
6987d8fb588SMatthias Schmidt     /* solaris */
6997d8fb588SMatthias Schmidt     if (mesg[SIGWAITING].pname == NULL) {
7007d8fb588SMatthias Schmidt 	mesg[SIGWAITING].iname = "WAITING";
7017d8fb588SMatthias Schmidt 	mesg[SIGWAITING].pname = CSAVS(2, 64, "Process's lwps are blocked");
7027d8fb588SMatthias Schmidt     }
7037d8fb588SMatthias Schmidt #endif /* SIGWAITING */
7047d8fb588SMatthias Schmidt 
7057d8fb588SMatthias Schmidt #ifdef SIGLWP
7067d8fb588SMatthias Schmidt     /* solaris */
7077d8fb588SMatthias Schmidt     if (mesg[SIGLWP].pname == NULL) {
7087d8fb588SMatthias Schmidt 	mesg[SIGLWP].iname = "LWP";
7097d8fb588SMatthias Schmidt 	mesg[SIGLWP].pname = CSAVS(2, 65, "Special LWP signal");
7107d8fb588SMatthias Schmidt     }
7117d8fb588SMatthias Schmidt #endif /* SIGLWP */
7127d8fb588SMatthias Schmidt 
7137d8fb588SMatthias Schmidt #ifdef SIGFREEZE
7147d8fb588SMatthias Schmidt     /* solaris */
7157d8fb588SMatthias Schmidt     if (mesg[SIGFREEZE].pname == NULL) {
7167d8fb588SMatthias Schmidt 	mesg[SIGFREEZE].iname = "FREEZE";
7177d8fb588SMatthias Schmidt 	mesg[SIGFREEZE].pname = CSAVS(2, 66, "Special CPR Signal");
7187d8fb588SMatthias Schmidt     }
7197d8fb588SMatthias Schmidt #endif /* SIGFREEZE */
7207d8fb588SMatthias Schmidt 
7217d8fb588SMatthias Schmidt #ifdef SIGTHAW
7227d8fb588SMatthias Schmidt     /* solaris */
7237d8fb588SMatthias Schmidt     if (mesg[SIGTHAW].pname == NULL) {
7247d8fb588SMatthias Schmidt 	mesg[SIGTHAW].iname = "THAW";
7257d8fb588SMatthias Schmidt 	mesg[SIGTHAW].pname = CSAVS(2, 67, "Special CPR Signal");
7267d8fb588SMatthias Schmidt     }
7277d8fb588SMatthias Schmidt #endif /* SIGTHAW */
7287d8fb588SMatthias Schmidt 
7297d8fb588SMatthias Schmidt #ifdef SIGCANCEL
7307d8fb588SMatthias Schmidt     /* solaris */
7317d8fb588SMatthias Schmidt     if (mesg[SIGCANCEL].pname == NULL) {
7327d8fb588SMatthias Schmidt 	mesg[SIGCANCEL].iname = "CANCEL";
7337d8fb588SMatthias Schmidt 	mesg[SIGCANCEL].pname = CSAVS(2, 109,
7347d8fb588SMatthias Schmidt 	    "Thread cancellation signal used by libthread");
7357d8fb588SMatthias Schmidt     }
7367d8fb588SMatthias Schmidt #endif /* SIGCANCEL */
7377d8fb588SMatthias Schmidt 
7387d8fb588SMatthias Schmidt /*
7397d8fb588SMatthias Schmidt  * Careful, some OS's (HP/UX 10.0) define these as -1
7407d8fb588SMatthias Schmidt  */
7417d8fb588SMatthias Schmidt #ifdef SIGRTMIN
7427d8fb588SMatthias Schmidt     /*
7437d8fb588SMatthias Schmidt      * Cannot do this at compile time; Solaris2 uses _sysconf for these
7447d8fb588SMatthias Schmidt      */
7457d8fb588SMatthias Schmidt     if (SIGRTMIN > 0 && SIGRTMIN < NUMSIG) {
7467d8fb588SMatthias Schmidt 	if (mesg[SIGRTMIN].pname == NULL) {
7477d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN].iname = "RTMIN";
7487d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN].pname = CSAVS(2, 68, "First Realtime Signal");
7497d8fb588SMatthias Schmidt 	}
7507d8fb588SMatthias Schmidt 
7517d8fb588SMatthias Schmidt 	if (SIGRTMIN + 1 < SIGRTMAX && SIGRTMIN + 1 < NUMSIG &&
7527d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+1].pname == NULL) {
7537d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+1].iname = "RTMIN+1";
7547d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+1].pname = CSAVS(2, 69, "Second Realtime Signal");
7557d8fb588SMatthias Schmidt 	}
7567d8fb588SMatthias Schmidt 
7577d8fb588SMatthias Schmidt 	if (SIGRTMIN + 2 < SIGRTMAX && SIGRTMIN + 2 < NUMSIG &&
7587d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+2].pname == NULL) {
7597d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+2].iname = "RTMIN+2";
7607d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+2].pname = CSAVS(2, 70, "Third Realtime Signal");
7617d8fb588SMatthias Schmidt 	}
7627d8fb588SMatthias Schmidt 
7637d8fb588SMatthias Schmidt 	if (SIGRTMIN + 3 < SIGRTMAX && SIGRTMIN + 3 < NUMSIG &&
7647d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+3].pname == NULL) {
7657d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+3].iname = "RTMIN+3";
7667d8fb588SMatthias Schmidt 	    mesg[SIGRTMIN+3].pname = CSAVS(2, 71, "Fourth Realtime Signal");
7677d8fb588SMatthias Schmidt 	}
7687d8fb588SMatthias Schmidt     }
7697d8fb588SMatthias Schmidt #endif /* SIGRTMIN */
7707d8fb588SMatthias Schmidt 
7717d8fb588SMatthias Schmidt #ifdef SIGRTMAX
7727d8fb588SMatthias Schmidt     /*
7737d8fb588SMatthias Schmidt      * Cannot do this at compile time; Solaris2 uses _sysconf for these
7747d8fb588SMatthias Schmidt      */
7757d8fb588SMatthias Schmidt     if (SIGRTMAX > 0 && SIGRTMAX < NUMSIG) {
7767d8fb588SMatthias Schmidt 	if (SIGRTMAX - 3 > SIGRTMIN && mesg[SIGRTMAX-3].pname == NULL) {
7777d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX-3].iname = "RTMAX-3";
7787d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX-3].pname = CSAVS(2, 72,
7797d8fb588SMatthias Schmidt 					   "Fourth Last Realtime Signal");
7807d8fb588SMatthias Schmidt 	}
7817d8fb588SMatthias Schmidt 
7827d8fb588SMatthias Schmidt 	if (SIGRTMAX - 2 > SIGRTMIN && mesg[SIGRTMAX-2].pname == NULL) {
7837d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX-2].iname = "RTMAX-2";
7847d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX-2].pname = CSAVS(2, 73,
7857d8fb588SMatthias Schmidt 					   "Third Last Realtime Signal");
7867d8fb588SMatthias Schmidt 	}
7877d8fb588SMatthias Schmidt 
7887d8fb588SMatthias Schmidt 	if (SIGRTMAX - 1 > SIGRTMIN && mesg[SIGRTMAX-1].pname == NULL) {
7897d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX-1].iname = "RTMAX-1";
7907d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX-1].pname = CSAVS(2, 74,
7917d8fb588SMatthias Schmidt 					   "Second Last Realtime Signal");
7927d8fb588SMatthias Schmidt 	}
7937d8fb588SMatthias Schmidt 
7947d8fb588SMatthias Schmidt 	if (SIGRTMAX > SIGRTMIN && mesg[SIGRTMAX].pname == NULL) {
7957d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX].iname = "RTMAX";
7967d8fb588SMatthias Schmidt 	    mesg[SIGRTMAX].pname = CSAVS(2, 75,
7977d8fb588SMatthias Schmidt 					 "Last Realtime Signal");
7987d8fb588SMatthias Schmidt 	}
7997d8fb588SMatthias Schmidt     }
8007d8fb588SMatthias Schmidt #endif /* SIGRTMAX */
8017d8fb588SMatthias Schmidt 
8027d8fb588SMatthias Schmidt 
8037d8fb588SMatthias Schmidt #ifdef SIGAIO
8047d8fb588SMatthias Schmidt     /* aiws */
8057d8fb588SMatthias Schmidt     if (mesg[SIGAIO].pname == NULL) {
8067d8fb588SMatthias Schmidt 	mesg[SIGAIO].iname = "AIO";
8077d8fb588SMatthias Schmidt 	mesg[SIGAIO].pname = CSAVS(2, 76, "LAN Asyncronous I/O");
8087d8fb588SMatthias Schmidt     }
8097d8fb588SMatthias Schmidt #endif /* SIGAIO */
8107d8fb588SMatthias Schmidt 
8117d8fb588SMatthias Schmidt #ifdef SIGPTY
8127d8fb588SMatthias Schmidt     /* aiws */
8137d8fb588SMatthias Schmidt     if (mesg[SIGPTY].pname == NULL) {
8147d8fb588SMatthias Schmidt 	mesg[SIGPTY].iname = "PTY";
8157d8fb588SMatthias Schmidt 	mesg[SIGPTY].pname = CSAVS(2, 77, "PTY read/write availability");
8167d8fb588SMatthias Schmidt     }
8177d8fb588SMatthias Schmidt #endif /* SIGPTY */
8187d8fb588SMatthias Schmidt 
8197d8fb588SMatthias Schmidt #ifdef SIGIOINT
8207d8fb588SMatthias Schmidt     /* aiws */
8217d8fb588SMatthias Schmidt     if (mesg[SIGIOINT].pname == NULL) {
8227d8fb588SMatthias Schmidt 	mesg[SIGIOINT].iname = "IOINT";
8237d8fb588SMatthias Schmidt 	mesg[SIGIOINT].pname = CSAVS(2, 78, "I/O intervention required");
8247d8fb588SMatthias Schmidt     }
8257d8fb588SMatthias Schmidt #endif /* SIGIOINT */
8267d8fb588SMatthias Schmidt 
8277d8fb588SMatthias Schmidt #ifdef SIGGRANT
8287d8fb588SMatthias Schmidt     /* aiws */
8297d8fb588SMatthias Schmidt     if (mesg[SIGGRANT].pname == NULL) {
8307d8fb588SMatthias Schmidt 	mesg[SIGGRANT].iname = "GRANT";
8317d8fb588SMatthias Schmidt 	mesg[SIGGRANT].pname = CSAVS(2, 79, "HFT monitor mode granted");
8327d8fb588SMatthias Schmidt     }
8337d8fb588SMatthias Schmidt #endif /* SIGGRANT */
8347d8fb588SMatthias Schmidt 
8357d8fb588SMatthias Schmidt #ifdef SIGRETRACT
8367d8fb588SMatthias Schmidt     /* aiws */
8377d8fb588SMatthias Schmidt     if (mesg[SIGRETRACT].pname == NULL) {
8387d8fb588SMatthias Schmidt 	mesg[SIGRETRACT].iname = "RETRACT";
8397d8fb588SMatthias Schmidt 	mesg[SIGRETRACT].pname = CSAVS(2, 80,
8407d8fb588SMatthias Schmidt 				  "HFT monitor mode should be relinguished");
8417d8fb588SMatthias Schmidt     }
8427d8fb588SMatthias Schmidt #endif /* SIGRETRACT */
8437d8fb588SMatthias Schmidt 
8447d8fb588SMatthias Schmidt #ifdef SIGSOUND
8457d8fb588SMatthias Schmidt     /* aiws */
8467d8fb588SMatthias Schmidt     if (mesg[SIGSOUND].pname == NULL) {
8477d8fb588SMatthias Schmidt 	mesg[SIGSOUND].iname = "SOUND";
8487d8fb588SMatthias Schmidt 	mesg[SIGSOUND].pname = CSAVS(2, 81, "HFT sound control has completed");
8497d8fb588SMatthias Schmidt     }
8507d8fb588SMatthias Schmidt #endif /* SIGSOUND */
8517d8fb588SMatthias Schmidt 
8527d8fb588SMatthias Schmidt #ifdef SIGSMSG
8537d8fb588SMatthias Schmidt     /* aiws */
8547d8fb588SMatthias Schmidt     if (mesg[SIGSMSG].pname == NULL) {
8557d8fb588SMatthias Schmidt 	mesg[SIGSMSG].iname = "SMSG";
8567d8fb588SMatthias Schmidt 	mesg[SIGSMSG].pname = CSAVS(2, 82, "Data in HFT ring buffer");
8577d8fb588SMatthias Schmidt     }
8587d8fb588SMatthias Schmidt #endif /* SIGMSG */
8597d8fb588SMatthias Schmidt 
8607d8fb588SMatthias Schmidt #ifdef SIGMIGRATE
8617d8fb588SMatthias Schmidt     /* IBMAIX */
8627d8fb588SMatthias Schmidt     if (mesg[SIGMIGRATE].pname == NULL) {
8637d8fb588SMatthias Schmidt 	mesg[SIGMIGRATE].iname = "MIGRATE";
8647d8fb588SMatthias Schmidt 	mesg[SIGMIGRATE].pname = CSAVS(2, 83, "Migrate process");
8657d8fb588SMatthias Schmidt     }
8667d8fb588SMatthias Schmidt #endif /* SIGMIGRATE */
8677d8fb588SMatthias Schmidt 
8687d8fb588SMatthias Schmidt #ifdef SIGSAK
8697d8fb588SMatthias Schmidt     /* IBMAIX */
8707d8fb588SMatthias Schmidt     if (mesg[SIGSAK].pname == NULL) {
8717d8fb588SMatthias Schmidt 	mesg[SIGSAK].iname = "SAK";
8727d8fb588SMatthias Schmidt 	mesg[SIGSAK].pname = CSAVS(2, 84, "Secure attention key");
8737d8fb588SMatthias Schmidt     }
8747d8fb588SMatthias Schmidt #endif /* SIGSAK */
8757d8fb588SMatthias Schmidt 
8767d8fb588SMatthias Schmidt #ifdef SIGRESCHED
8777d8fb588SMatthias Schmidt     /* CX/UX */
8787d8fb588SMatthias Schmidt     if (mesg[SIGRESCHED].pname == NULL) {
8797d8fb588SMatthias Schmidt 	mesg[SIGRESCHED].iname = "RESCHED";
8807d8fb588SMatthias Schmidt 	mesg[SIGRESCHED].pname = CSAVS(2, 85, "Reschedule");
8817d8fb588SMatthias Schmidt     }
8827d8fb588SMatthias Schmidt #endif /* SIGRESCHED */
8837d8fb588SMatthias Schmidt 
8847d8fb588SMatthias Schmidt #ifdef SIGDEBUG
8857d8fb588SMatthias Schmidt     /* VMS_POSIX */
8867d8fb588SMatthias Schmidt     if (mesg[SIGDEBUG].pname == NULL) {
8877d8fb588SMatthias Schmidt 	mesg[SIGDEBUG].iname = "DEBUG";
8887d8fb588SMatthias Schmidt 	mesg[SIGDEBUG].pname = CSAVS(2, 86, "Signaling SS$_DEBUG");
8897d8fb588SMatthias Schmidt     }
8907d8fb588SMatthias Schmidt #endif /* SIGDEBUG */
8917d8fb588SMatthias Schmidt 
8927d8fb588SMatthias Schmidt #ifdef SIGPRIO
8937d8fb588SMatthias Schmidt     /* Lynx */
8947d8fb588SMatthias Schmidt     if (mesg[SIGPRIO].pname == NULL) {
8957d8fb588SMatthias Schmidt 	mesg[SIGPRIO].iname = "PRIO";
8967d8fb588SMatthias Schmidt 	mesg[SIGPRIO].pname = CSAVS(2, 87, "Priority changed");
8977d8fb588SMatthias Schmidt     }
8987d8fb588SMatthias Schmidt #endif /* SIGPRIO */
8997d8fb588SMatthias Schmidt 
9007d8fb588SMatthias Schmidt #ifdef SIGDLK
9017d8fb588SMatthias Schmidt     /* cray */
9027d8fb588SMatthias Schmidt     if (mesg[SIGDLK].pname == NULL) {
9037d8fb588SMatthias Schmidt 	mesg[SIGDLK].iname = "DLK";
9047d8fb588SMatthias Schmidt 	mesg[SIGDLK].pname = CSAVS(2, 88, "True deadlock detected");
9057d8fb588SMatthias Schmidt     }
9067d8fb588SMatthias Schmidt #endif /* SIGDLK */
9077d8fb588SMatthias Schmidt 
9087d8fb588SMatthias Schmidt #ifdef SIGTINT
9097d8fb588SMatthias Schmidt     /* masscomp */
9107d8fb588SMatthias Schmidt     if (mesg[SIGTINT].pname == NULL) {
9117d8fb588SMatthias Schmidt 	mesg[SIGTINT].iname = "TINT";
9127d8fb588SMatthias Schmidt 	mesg[SIGTINT].pname = CSAVS(2, 89, "New input character");
9137d8fb588SMatthias Schmidt     }
9147d8fb588SMatthias Schmidt #endif /* SIGTINT */
9157d8fb588SMatthias Schmidt 
9167d8fb588SMatthias Schmidt #ifdef SIGSTKFLT
9177d8fb588SMatthias Schmidt     if (mesg[SIGSTKFLT].pname == NULL) {
9187d8fb588SMatthias Schmidt 	mesg[SIGSTKFLT].iname = "STKFLT";
9197d8fb588SMatthias Schmidt 	mesg[SIGSTKFLT].pname = CSAVS(2, 90, "Stack limit exceeded");
9207d8fb588SMatthias Schmidt     }
9217d8fb588SMatthias Schmidt #endif /* SIGSTKFLT */
9227d8fb588SMatthias Schmidt 
9237d8fb588SMatthias Schmidt #ifdef SIGUNUSED
9247d8fb588SMatthias Schmidt     if (mesg[SIGUNUSED].pname == NULL) {
9257d8fb588SMatthias Schmidt 	mesg[SIGUNUSED].iname = "UNUSED";
9267d8fb588SMatthias Schmidt 	mesg[SIGUNUSED].pname = CSAVS(2, 91, "Unused signal");
9277d8fb588SMatthias Schmidt     }
9287d8fb588SMatthias Schmidt #endif /* SIGUNUSED */
9297d8fb588SMatthias Schmidt 
9307d8fb588SMatthias Schmidt #ifdef SIGOVLY
9317d8fb588SMatthias Schmidt     /* SX-4 */
9327d8fb588SMatthias Schmidt     if (mesg[SIGOVLY].pname == NULL) {
9337d8fb588SMatthias Schmidt 	mesg[SIGOVLY].iname = "OVLY";
9347d8fb588SMatthias Schmidt 	mesg[SIGOVLY].pname = CSAVS(2, 92, "LM overlay");
9357d8fb588SMatthias Schmidt     }
9367d8fb588SMatthias Schmidt #endif /* SIGOVLY */
9377d8fb588SMatthias Schmidt 
9387d8fb588SMatthias Schmidt #ifdef SIGFRZ
9397d8fb588SMatthias Schmidt     /* SX-4 */
9407d8fb588SMatthias Schmidt     if (mesg[SIGFRZ].pname == NULL) {
9417d8fb588SMatthias Schmidt 	mesg[SIGFRZ].iname = "FRZ";
9427d8fb588SMatthias Schmidt 	mesg[SIGFRZ].pname = CSAVS(2, 93, "system freeze");
9437d8fb588SMatthias Schmidt     }
9447d8fb588SMatthias Schmidt #endif /* SIGFRZ */
9457d8fb588SMatthias Schmidt 
9467d8fb588SMatthias Schmidt #ifdef SIGDFRZ
9477d8fb588SMatthias Schmidt     /* SX-4 */
9487d8fb588SMatthias Schmidt     if (mesg[SIGDFRZ].pname == NULL) {
9497d8fb588SMatthias Schmidt 	mesg[SIGDFRZ].iname = "DFRZ";
9507d8fb588SMatthias Schmidt 	mesg[SIGDFRZ].pname = CSAVS(2, 94, "system defreeze");
9517d8fb588SMatthias Schmidt     }
9527d8fb588SMatthias Schmidt #endif /* SIGDFRZ */
9537d8fb588SMatthias Schmidt 
9547d8fb588SMatthias Schmidt #ifdef SIGDEAD
9557d8fb588SMatthias Schmidt     /* SX-4 */
9567d8fb588SMatthias Schmidt     if (mesg[SIGDEAD].pname == NULL) {
9577d8fb588SMatthias Schmidt 	mesg[SIGDEAD].iname = "DEAD";
9587d8fb588SMatthias Schmidt 	mesg[SIGDEAD].pname = CSAVS(2, 95, "dead lock");
9597d8fb588SMatthias Schmidt     }
9607d8fb588SMatthias Schmidt #endif /* SIGDEAD */
9617d8fb588SMatthias Schmidt 
9627d8fb588SMatthias Schmidt #ifdef SIGXMEM
9637d8fb588SMatthias Schmidt     /* SX-4 */
9647d8fb588SMatthias Schmidt     if (mesg[SIGXMEM].pname == NULL) {
9657d8fb588SMatthias Schmidt 	mesg[SIGXMEM].iname = "XMEM";
9667d8fb588SMatthias Schmidt 	mesg[SIGXMEM].pname = CSAVS(2, 96, "exceeded memory size limit");
9677d8fb588SMatthias Schmidt     }
9687d8fb588SMatthias Schmidt #endif /* SIGXMEM */
9697d8fb588SMatthias Schmidt 
9707d8fb588SMatthias Schmidt #ifdef SIGXDSZ
9717d8fb588SMatthias Schmidt     /* SX-4 */
9727d8fb588SMatthias Schmidt     if (mesg[SIGXDSZ].pname == NULL) {
9737d8fb588SMatthias Schmidt 	mesg[SIGXDSZ].iname = "XDSZ";
9747d8fb588SMatthias Schmidt 	mesg[SIGXDSZ].pname = CSAVS(2, 97, "exceeded data size limit");
9757d8fb588SMatthias Schmidt     }
9767d8fb588SMatthias Schmidt #endif /* SIGXDSZ */
9777d8fb588SMatthias Schmidt 
9787d8fb588SMatthias Schmidt #ifdef SIGMEM32
9797d8fb588SMatthias Schmidt     /* SX-4 */
9807d8fb588SMatthias Schmidt     if (mesg[SIGMEM32].pname == NULL) {
9817d8fb588SMatthias Schmidt 	mesg[SIGMEM32].iname = "MEM32";
9827d8fb588SMatthias Schmidt 	mesg[SIGMEM32].pname = CSAVS(2, 98, "exceeded memory size limit of 32KB");
9837d8fb588SMatthias Schmidt     }
9847d8fb588SMatthias Schmidt #endif /* SIGMEM32 */
9857d8fb588SMatthias Schmidt 
9867d8fb588SMatthias Schmidt #ifdef SIGNMEM
9877d8fb588SMatthias Schmidt     /* SX-4 */
9887d8fb588SMatthias Schmidt     if (mesg[SIGNMEM].pname == NULL) {
9897d8fb588SMatthias Schmidt 	mesg[SIGNMEM].iname = "NMEM";
9907d8fb588SMatthias Schmidt 	mesg[SIGNMEM].pname = CSAVS(2, 99, "exce error for no memory");
9917d8fb588SMatthias Schmidt     }
9927d8fb588SMatthias Schmidt #endif /* SIGNMEM */
9937d8fb588SMatthias Schmidt 
9947d8fb588SMatthias Schmidt #ifdef SIGCHKP
9957d8fb588SMatthias Schmidt     /* SX-4 */
9967d8fb588SMatthias Schmidt     if (mesg[SIGCHKP].pname == NULL) {
9977d8fb588SMatthias Schmidt 	mesg[SIGCHKP].iname = "CHKP";
9987d8fb588SMatthias Schmidt 	mesg[SIGCHKP].pname = CSAVS(2, 100, "check point start");
9997d8fb588SMatthias Schmidt     }
10007d8fb588SMatthias Schmidt #endif /* SIGCHKP */
10017d8fb588SMatthias Schmidt 
10027d8fb588SMatthias Schmidt #ifdef SIGKCHKP
10037d8fb588SMatthias Schmidt #if 0
10047d8fb588SMatthias Schmidt     /* SX-4 */
10057d8fb588SMatthias Schmidt     if (mesg[SIGKCHKP].pname == NULL) {
10067d8fb588SMatthias Schmidt 	mesg[SIGKCHKP].iname = "KCHKP";
10077d8fb588SMatthias Schmidt 	mesg[SIGKCHKP].pname = CSAVS(2, 101, "check point start of kernel");
10087d8fb588SMatthias Schmidt     }
10097d8fb588SMatthias Schmidt #endif
10107d8fb588SMatthias Schmidt #endif /* SIGKCHKP */
10117d8fb588SMatthias Schmidt 
10127d8fb588SMatthias Schmidt #ifdef SIGRSTA
10137d8fb588SMatthias Schmidt     /* SX-4 */
10147d8fb588SMatthias Schmidt     if (mesg[SIGRSTA].pname == NULL) {
10157d8fb588SMatthias Schmidt 	mesg[SIGRSTA].iname = "RSTA";
10167d8fb588SMatthias Schmidt 	mesg[SIGRSTA].pname = CSAVS(2, 102, "restart start");
10177d8fb588SMatthias Schmidt     }
10187d8fb588SMatthias Schmidt #endif /* SIGRSTA */
10197d8fb588SMatthias Schmidt 
10207d8fb588SMatthias Schmidt #ifdef SIGKRSTA
10217d8fb588SMatthias Schmidt #if 0
10227d8fb588SMatthias Schmidt     /* SX-4 */
10237d8fb588SMatthias Schmidt     if (mesg[SIGKRSTA].pname == NULL) {
10247d8fb588SMatthias Schmidt 	mesg[SIGKRSTA].iname = "KRSTA";
10257d8fb588SMatthias Schmidt 	mesg[SIGKRSTA].pname = CSAVS(2, 103, "restart of kernel");
10267d8fb588SMatthias Schmidt     }
10277d8fb588SMatthias Schmidt #endif
10287d8fb588SMatthias Schmidt #endif /* SIGKRSTA */
10297d8fb588SMatthias Schmidt 
10307d8fb588SMatthias Schmidt #ifdef SIGXXMU
10317d8fb588SMatthias Schmidt     /* SX-4 */
10327d8fb588SMatthias Schmidt     if (mesg[SIGXXMU].pname == NULL) {
10337d8fb588SMatthias Schmidt 	mesg[SIGXXMU].iname = "XXMU";
10347d8fb588SMatthias Schmidt 	mesg[SIGXXMU].pname = CSAVS(2, 104, "exeeded XMU size limit");
10357d8fb588SMatthias Schmidt     }
10367d8fb588SMatthias Schmidt #endif /* SIGXXMU */
10377d8fb588SMatthias Schmidt 
10387d8fb588SMatthias Schmidt #ifdef SIGXRLG0
10397d8fb588SMatthias Schmidt     /* SX-4 */
10407d8fb588SMatthias Schmidt     if (mesg[SIGXRLG0].pname == NULL) {
10417d8fb588SMatthias Schmidt 	mesg[SIGXRLG0].iname = "XRLG0";
10427d8fb588SMatthias Schmidt 	mesg[SIGXRLG0].pname = CSAVS(2, 105, "exeeded RLG0 limit");
10437d8fb588SMatthias Schmidt     }
10447d8fb588SMatthias Schmidt #endif /* SIGXRLG0 */
10457d8fb588SMatthias Schmidt 
10467d8fb588SMatthias Schmidt #ifdef SIGXRLG1
10477d8fb588SMatthias Schmidt     /* SX-4 */
10487d8fb588SMatthias Schmidt     if (mesg[SIGXRLG1].pname == NULL) {
10497d8fb588SMatthias Schmidt 	mesg[SIGXRLG1].iname = "XRLG1";
10507d8fb588SMatthias Schmidt 	mesg[SIGXRLG1].pname = CSAVS(2, 106, "exeeded RLG1 limit");
10517d8fb588SMatthias Schmidt     }
10527d8fb588SMatthias Schmidt #endif /* SIGXRLG1 */
10537d8fb588SMatthias Schmidt 
10547d8fb588SMatthias Schmidt #ifdef SIGXRLG2
10557d8fb588SMatthias Schmidt     /* SX-4 */
10567d8fb588SMatthias Schmidt     if (mesg[SIGXRLG2].pname == NULL) {
10577d8fb588SMatthias Schmidt 	mesg[SIGXRLG2].iname = "XRLG2";
10587d8fb588SMatthias Schmidt 	mesg[SIGXRLG2].pname = CSAVS(2, 107, "exeeded RLG2 limit");
10597d8fb588SMatthias Schmidt     }
10607d8fb588SMatthias Schmidt #endif /* SIGXRLG2 */
10617d8fb588SMatthias Schmidt 
10627d8fb588SMatthias Schmidt #ifdef SIGXRLG3
10637d8fb588SMatthias Schmidt     /* SX-4 */
10647d8fb588SMatthias Schmidt     if (mesg[SIGXRLG3].pname == NULL) {
10657d8fb588SMatthias Schmidt 	mesg[SIGXRLG3].iname = "XRLG3";
10667d8fb588SMatthias Schmidt 	mesg[SIGXRLG3].pname = CSAVS(2, 108, "exeeded RLG3 limit");
10677d8fb588SMatthias Schmidt     }
10687d8fb588SMatthias Schmidt #endif /* SIGXRLG3 */
10697d8fb588SMatthias Schmidt 
1070 #ifdef SIGCKPT
1071     /* DragonFly BSD */
1072     if (mesg[SIGCKPT].pname == NULL) {
1073 	mesg[SIGCKPT].iname = "CKPT";
1074 	mesg[SIGCKPT].pname = CSAVS(2, 109, "CheckPoint");
1075     }
1076 #endif /* SIGCKPT */
1077 
1078 #ifdef SIGCKPTEXIT
1079     /* DragonFly BSD */
1080     if (mesg[SIGCKPTEXIT].pname == NULL) {
1081 	mesg[SIGCKPTEXIT].iname = "CKPTEXIT";
1082 	mesg[SIGCKPTEXIT].pname = CSAVS(2, 110, "CheckPointExit");
1083     }
1084 #endif /* SIGCKPTEXIT */
1085 }
1086