Home | History | Annotate | Line # | Download | only in dist
      1 /* $XTermId: error.h,v 1.28 2023/11/24 00:56:16 tom Exp $ */
      2 
      3 /*
      4  * Copyright 1997-2012,2023 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 #define ERROR_MISC      1	/* miscellaneous errors */
     57 
     58 /* main.c */
     59 #define	ERROR_FIONBIO	11	/* main: ioctl() failed on FIONBIO */
     60 #define	ERROR_F_GETFL	12	/* main: ioctl() failed on F_GETFL */
     61 #define	ERROR_F_SETFL	13	/* main: ioctl() failed on F_SETFL */
     62 #define	ERROR_OPDEVTTY	14	/* spawn: open() failed on /dev/tty */
     63 #define	ERROR_TIOCGETP	15	/* spawn: ioctl() failed on TIOCGETP */
     64 #define ERROR_PTSNAME   17	/* spawn: ptsname() failed */
     65 #define ERROR_OPPTSNAME 18	/* spawn: open() failed on ptsname */
     66 #define ERROR_PTEM      19	/* spawn: ioctl() failed on I_PUSH/"ptem" */
     67 #define ERROR_CONSEM    20	/* spawn: ioctl() failed on I_PUSH/"consem" */
     68 #define ERROR_LDTERM    21	/* spawn: ioctl() failed on I_PUSH/"ldterm" */
     69 #define ERROR_TTCOMPAT  22	/* spawn: ioctl() failed on I_PUSH/"ttcompat" */
     70 #define	ERROR_TIOCSETP	23	/* spawn: ioctl() failed on TIOCSETP */
     71 #define	ERROR_TIOCSETC	24	/* spawn: ioctl() failed on TIOCSETC */
     72 #define	ERROR_TIOCSETD	25	/* spawn: ioctl() failed on TIOCSETD */
     73 #define	ERROR_TIOCSLTC	26	/* spawn: ioctl() failed on TIOCSLTC */
     74 #define	ERROR_TIOCLSET	27	/* spawn: ioctl() failed on TIOCLSET */
     75 #define	ERROR_INIGROUPS 28	/* spawn: initgroups() failed */
     76 #define	ERROR_FORK	29	/* spawn: fork() failed */
     77 #define	ERROR_EXEC	30	/* spawn: exec() failed */
     78 #define	ERROR_GET_ATOM	31	/* intern_atom() failed */
     79 #define	ERROR_PTYS	32	/* get_pty: not enough ptys */
     80 #define ERROR_PTY_EXEC	34	/* waiting for initial map */
     81 #define	ERROR_SETUID	35	/* spawn: setuid() failed */
     82 #define	ERROR_INIT	36	/* spawn: can't initialize window */
     83 #define	ERROR_TIOCKSET	46	/* spawn: ioctl() failed on TIOCKSET */
     84 #define	ERROR_TIOCKSETC	47	/* spawn: ioctl() failed on TIOCKSETC */
     85 #define	ERROR_LUMALLOC  49	/* luit: command-line malloc failed */
     86 
     87 /* charproc.c */
     88 #define	ERROR_SELECT	50	/* in_put: select() failed */
     89 #define	ERROR_VINIT	54	/* VTInit: can't initialize window */
     90 #define	ERROR_KMMALLOC1 57	/* HandleKeymapChange: malloc failed */
     91 
     92 /* Tekproc.c */
     93 #define	ERROR_TSELECT	60	/* Tinput: select() failed */
     94 #define	ERROR_TINIT	64	/* TekInit: can't initialize window */
     95 
     96 /* button.c */
     97 #define	ERROR_BMALLOC2	71	/* SaltTextAway: malloc() failed */
     98 
     99 /* misc.c */
    100 #define	ERROR_LOGEXEC	80	/* StartLog: exec() failed */
    101 #define	ERROR_XERROR	83	/* xerror: XError event */
    102 #define	ERROR_XIOERROR	84	/* xioerror: X I/O error */
    103 #define	ERROR_ICEERROR	85	/* ice_error: ICE I/O error */
    104 
    105 /* screen.c */
    106 #define	ERROR_SCALLOC	90	/* Alloc: calloc() failed on base */
    107 #define	ERROR_SCALLOC2	91	/* Alloc: calloc() failed on rows */
    108 #define	ERROR_SAVE_PTR	102	/* ScrnPointers: malloc/realloc() failed */
    109