merge 64-bit fixes from Fernando Lucas Rodriguez <fernando_lr@terra.es>
[debian/gcpegg] / errnos.h
1 /* PROGRAM:     all
2  * FILE:        $Header: /home/ghn/projects/PEAR/egg/eggsh/RCS/errnos.h,v 1.1 1998/07/21 11:39:53 ghn Exp $
3  * PURPOSE:     Definitions for error constants
4  * AUTHOR:      Greg Nelson
5  * DATE:        98-05-09
6  *
7  * REVISED:     $Log: errnos.h,v $
8  * REVISED:     Revision 1.1  1998/07/21 11:39:53  ghn
9  * REVISED:     Initial revision
10  * REVISED:
11  * Copyright 1998 - Greg Nelson
12  * Redistributable under the terms of the GNU Public Licence (GPL)
13  */
14
15 /* 0 - no error */
16 #define ERR_NONE        0
17
18 /* -1 to -99 - generic errors */
19 #define ERR_OTHER       -1      /* Catchall for other errors */
20 #define ERR_NOMEM       -2      /* Could not allocate memory            */
21 #define ERR_NIMP        -3      /* Not implemented */
22 #define ERR_WRONGARGN   -4      /* Wrong number of arguments.           */
23 #define ERR_INRANGE     -5      /* Input out of range */
24 #define ERR_OTIMEOUT    -6      /* Got a timeout, not from COMM         */
25 #define ERR_STRTOOLONG  -7      /* String was longer than allowed       */
26
27 /* -100 to -199 - comm errors */
28 #define ERR_STRAYINPUT  -100    /* Stray characters were received       */
29 #define ERR_PKT_BADSTX  -101    /* Packet did not begin with STX        */
30 #define ERR_PKT_BADLEN  -102    /* Length word could not be read        */
31 #define ERR_PKT_SHORT   -103    /* Packet was not long enough           */
32 #define ERR_PKT_CKSUM   -104    /* Packet checksum did not match        */
33 #define ERR_PKT_BADETX  -105    /* Packet did not end with ETX          */
34 #define ERR_COMM_TMOUT  -106    /* Timeout during communication         */
35 #define ERR_COMM_BRK    -107    /* Received break character             */
36 #define ERR_COMM_PARITY -108    /* Received parity error                */
37 #define ERR_COMM_FRAME  -109    /* Received framing error               */
38 #define ERR_COMM_OVERRN -110    /* Received overrun error               */
39 #define ERR_BUFF_FULL   -111    /* Buffer was too full to queue msg     */
40 #define ERR_NOREPLY     -112    /* Device did not reply to hails        */
41 #define ERR_RESPINVAL   -113    /* Response was invalid                 */
42 #define ERR_COMM_BTMOUT -114    /* Timeout inside body of message       */
43 #define ERR_PORT_INACT  -115    /* Attempt to use an inactive port      */
44
45 /* -200 to -299 - math errors */
46 #define ERR_DIV0        -200    /* Attempt to divide by zero            */
47 #define ERR_NOSOLN      -201    /* Couldn't solve for discontinuities   */
48 #define ERR_APPROX      -202    /* Result was an inexact approximation  */
49 #define ERR_NOVARS      -203    /* No parameters were variable          */
50 #define ERR_SINGULAR    -204    /* Matrix was singular, unsolvable      */
51 #define ERR_OVERFLOW    -205    /* Numerical overflow                   */
52
53 /* -300 to -399 - DLL specific errors */
54 #define ERR_NOTSUPP     -300    /* Current device does not support fn   */
55 #define ERR_RESOURCE    -301    /* Ran out of a DLL limited resource    */
56 #define ERR_DEVDRVR     -302    /* Windows device driver returned err   */
57 #define ERR_DEVSELECT   -303    /* Selecting a device failed (general)  */
58 #define ERR_NOENT       -320    /* File not found                       */
59 #define ERR_CNREAD      -321    /* Couldn't read desired data from file */
60 #define ERR_CNWRITE     -322    /* Couldn't write desired data to file  */
61 #define ERR_EOF         -323    /* End of file reached unexpectedly     */
62 #define ERR_DLGCAN      -324    /* Dialog canceled, not an "error"      */