1 /* $XTermId: error.h,v 1.26 2012/10/05 00:17:51 tom Exp $ */
2 
3 /*
4  * Copyright 1997-2011,2012 by Thomas E. Dickey
5  *
6  *                         All Rights Reserved
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a
9  * copy of this software and associated documentation files (the
10  * "Software"), to deal in the Software without restriction, including
11  * without limitation the rights to use, copy, modify, merge, publish,
12  * distribute, sublicense, and/or sell copies of the Software, and to
13  * permit persons to whom the Software is furnished to do so, subject to
14  * the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be included
17  * in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22  * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
23  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26  *
27  * Except as contained in this notice, the name(s) of the above copyright
28  * holders shall not be used in advertising or otherwise to promote the
29  * sale, use or other dealings in this Software without prior written
30  * authorization.
31  *
32  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
33  *
34  *                         All Rights Reserved
35  *
36  * Permission to use, copy, modify, and distribute this software and its
37  * documentation for any purpose and without fee is hereby granted,
38  * provided that the above copyright notice appear in all copies and that
39  * both that copyright notice and this permission notice appear in
40  * supporting documentation, and that the name of Digital Equipment
41  * Corporation not be used in advertising or publicity pertaining to
42  * distribution of the software without specific, written prior permission.
43  *
44  *
45  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
46  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
47  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
48  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
49  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
50  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
51  * SOFTWARE.
52  */
53 
54 /* @(#)error.h	X10/6.6	11/6/86 */
55 
56 /* main.c */
57 #define	ERROR_FIONBIO	11	/* main: ioctl() failed on FIONBIO */
58 #define	ERROR_F_GETFL	12	/* main: ioctl() failed on F_GETFL */
59 #define	ERROR_F_SETFL	13	/* main: ioctl() failed on F_SETFL */
60 #define	ERROR_OPDEVTTY	14	/* spawn: open() failed on /dev/tty */
61 #define	ERROR_TIOCGETP	15	/* spawn: ioctl() failed on TIOCGETP */
62 #define ERROR_PTSNAME   17	/* spawn: ptsname() failed */
63 #define ERROR_OPPTSNAME 18	/* spawn: open() failed on ptsname */
64 #define ERROR_PTEM      19	/* spawn: ioctl() failed on I_PUSH/"ptem" */
65 #define ERROR_CONSEM    20	/* spawn: ioctl() failed on I_PUSH/"consem" */
66 #define ERROR_LDTERM    21	/* spawn: ioctl() failed on I_PUSH/"ldterm" */
67 #define ERROR_TTCOMPAT  22	/* spawn: ioctl() failed on I_PUSH/"ttcompat" */
68 #define	ERROR_TIOCSETP	23	/* spawn: ioctl() failed on TIOCSETP */
69 #define	ERROR_TIOCSETC	24	/* spawn: ioctl() failed on TIOCSETC */
70 #define	ERROR_TIOCSETD	25	/* spawn: ioctl() failed on TIOCSETD */
71 #define	ERROR_TIOCSLTC	26	/* spawn: ioctl() failed on TIOCSLTC */
72 #define	ERROR_TIOCLSET	27	/* spawn: ioctl() failed on TIOCLSET */
73 #define	ERROR_INIGROUPS 28	/* spawn: initgroups() failed */
74 #define	ERROR_FORK	29	/* spawn: fork() failed */
75 #define	ERROR_EXEC	30	/* spawn: exec() failed */
76 #define	ERROR_PTYS	32	/* get_pty: not enough ptys */
77 #define ERROR_PTY_EXEC	34	/* waiting for initial map */
78 #define	ERROR_SETUID	35	/* spawn: setuid() failed */
79 #define	ERROR_INIT	36	/* spawn: can't initialize window */
80 #define	ERROR_TIOCKSET	46	/* spawn: ioctl() failed on TIOCKSET */
81 #define	ERROR_TIOCKSETC	47	/* spawn: ioctl() failed on TIOCKSETC */
82 #define	ERROR_LUMALLOC  49	/* luit: command-line malloc failed */
83 
84 /* charproc.c */
85 #define	ERROR_SELECT	50	/* in_put: select() failed */
86 #define	ERROR_VINIT	54	/* VTInit: can't initialize window */
87 #define	ERROR_KMMALLOC1 57	/* HandleKeymapChange: malloc failed */
88 
89 /* Tekproc.c */
90 #define	ERROR_TSELECT	60	/* Tinput: select() failed */
91 #define	ERROR_TINIT	64	/* TekInit: can't initialize window */
92 
93 /* button.c */
94 #define	ERROR_BMALLOC2	71	/* SaltTextAway: malloc() failed */
95 
96 /* misc.c */
97 #define	ERROR_LOGEXEC	80	/* StartLog: exec() failed */
98 #define	ERROR_XERROR	83	/* xerror: XError event */
99 #define	ERROR_XIOERROR	84	/* xioerror: X I/O error */
100 #define	ERROR_ICEERROR	85	/* ice_error: ICE I/O error */
101 
102 /* screen.c */
103 #define	ERROR_SCALLOC	90	/* Alloc: calloc() failed on base */
104 #define	ERROR_SCALLOC2	91	/* Alloc: calloc() failed on rows */
105 #define	ERROR_SAVE_PTR	102	/* ScrnPointers: malloc/realloc() failed */
106