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