source: bootcd/isolinux/syslinux-6.03/com32/include/errno.h

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 7.2 KB
Line 
1#ifndef _ERRNO_H
2#define _ERRNO_H
3
4extern int errno;
5
6#define EPERM            1      /* Operation not permitted */
7#define ENOENT           2      /* No such file or directory */
8#define ESRCH            3      /* No such process */
9#define EINTR            4      /* Interrupted system call */
10#define EIO              5      /* I/O error */
11#define ENXIO            6      /* No such device or address */
12#define E2BIG            7      /* Arg list too long */
13#define ENOEXEC          8      /* Exec format error */
14#define EBADF            9      /* Bad file number */
15#define ECHILD          10      /* No child processes */
16#define EAGAIN          11      /* Try again */
17#define ENOMEM          12      /* Out of memory */
18#define EACCES          13      /* Permission denied */
19#define EFAULT          14      /* Bad address */
20#define ENOTBLK         15      /* Block device required */
21#define EBUSY           16      /* Device or resource busy */
22#define EEXIST          17      /* File exists */
23#define EXDEV           18      /* Cross-device link */
24#define ENODEV          19      /* No such device */
25#define ENOTDIR         20      /* Not a directory */
26#define EISDIR          21      /* Is a directory */
27#define EINVAL          22      /* Invalid argument */
28#define ENFILE          23      /* File table overflow */
29#define EMFILE          24      /* Too many open files */
30#define ENOTTY          25      /* Not a typewriter */
31#define ETXTBSY         26      /* Text file busy */
32#define EFBIG           27      /* File too large */
33#define ENOSPC          28      /* No space left on device */
34#define ESPIPE          29      /* Illegal seek */
35#define EROFS           30      /* Read-only file system */
36#define EMLINK          31      /* Too many links */
37#define EPIPE           32      /* Broken pipe */
38#define EDOM            33      /* Math argument out of domain of func */
39#define ERANGE          34      /* Math result not representable */
40#define EDEADLK         35      /* Resource deadlock would occur */
41#define ENAMETOOLONG    36      /* File name too long */
42#define ENOLCK          37      /* No record locks available */
43#define ENOSYS          38      /* Function not implemented */
44#define ENOTEMPTY       39      /* Directory not empty */
45#define ELOOP           40      /* Too many symbolic links encountered */
46#define EWOULDBLOCK     EAGAIN  /* Operation would block */
47#define ENOMSG          42      /* No message of desired type */
48#define EIDRM           43      /* Identifier removed */
49#define ECHRNG          44      /* Channel number out of range */
50#define EL2NSYNC        45      /* Level 2 not synchronized */
51#define EL3HLT          46      /* Level 3 halted */
52#define EL3RST          47      /* Level 3 reset */
53#define ELNRNG          48      /* Link number out of range */
54#define EUNATCH         49      /* Protocol driver not attached */
55#define ENOCSI          50      /* No CSI structure available */
56#define EL2HLT          51      /* Level 2 halted */
57#define EBADE           52      /* Invalid exchange */
58#define EBADR           53      /* Invalid request descriptor */
59#define EXFULL          54      /* Exchange full */
60#define ENOANO          55      /* No anode */
61#define EBADRQC         56      /* Invalid request code */
62#define EBADSLT         57      /* Invalid slot */
63
64#define EDEADLOCK       EDEADLK
65
66#define EBFONT          59      /* Bad font file format */
67#define ENOSTR          60      /* Device not a stream */
68#define ENODATA         61      /* No data available */
69#define ETIME           62      /* Timer expired */
70#define ENOSR           63      /* Out of streams resources */
71#define ENONET          64      /* Machine is not on the network */
72#define ENOPKG          65      /* Package not installed */
73#define EREMOTE         66      /* Object is remote */
74#define ENOLINK         67      /* Link has been severed */
75#define EADV            68      /* Advertise error */
76#define ESRMNT          69      /* Srmount error */
77#define ECOMM           70      /* Communication error on send */
78#define EPROTO          71      /* Protocol error */
79#define EMULTIHOP       72      /* Multihop attempted */
80#define EDOTDOT         73      /* RFS specific error */
81#define EBADMSG         74      /* Not a data message */
82#define EOVERFLOW       75      /* Value too large for defined data type */
83#define ENOTUNIQ        76      /* Name not unique on network */
84#define EBADFD          77      /* File descriptor in bad state */
85#define EREMCHG         78      /* Remote address changed */
86#define ELIBACC         79      /* Can not access a needed shared library */
87#define ELIBBAD         80      /* Accessing a corrupted shared library */
88#define ELIBSCN         81      /* .lib section in a.out corrupted */
89#define ELIBMAX         82      /* Attempting to link in too many shared libraries */
90#define ELIBEXEC        83      /* Cannot exec a shared library directly */
91#define EILSEQ          84      /* Illegal byte sequence */
92#define ERESTART        85      /* Interrupted system call should be restarted */
93#define ESTRPIPE        86      /* Streams pipe error */
94#define EUSERS          87      /* Too many users */
95#define ENOTSOCK        88      /* Socket operation on non-socket */
96#define EDESTADDRREQ    89      /* Destination address required */
97#define EMSGSIZE        90      /* Message too long */
98#define EPROTOTYPE      91      /* Protocol wrong type for socket */
99#define ENOPROTOOPT     92      /* Protocol not available */
100#define EPROTONOSUPPORT 93      /* Protocol not supported */
101#define ESOCKTNOSUPPORT 94      /* Socket type not supported */
102#define EOPNOTSUPP      95      /* Operation not supported on transport endpoint */
103#define EPFNOSUPPORT    96      /* Protocol family not supported */
104#define EAFNOSUPPORT    97      /* Address family not supported by protocol */
105#define EADDRINUSE      98      /* Address already in use */
106#define EADDRNOTAVAIL   99      /* Cannot assign requested address */
107#define ENETDOWN        100     /* Network is down */
108#define ENETUNREACH     101     /* Network is unreachable */
109#define ENETRESET       102     /* Network dropped connection because of reset */
110#define ECONNABORTED    103     /* Software caused connection abort */
111#define ECONNRESET      104     /* Connection reset by peer */
112#define ENOBUFS         105     /* No buffer space available */
113#define EISCONN         106     /* Transport endpoint is already connected */
114#define ENOTCONN        107     /* Transport endpoint is not connected */
115#define ESHUTDOWN       108     /* Cannot send after transport endpoint shutdown */
116#define ETOOMANYREFS    109     /* Too many references: cannot splice */
117#define ETIMEDOUT       110     /* Connection timed out */
118#define ECONNREFUSED    111     /* Connection refused */
119#define EHOSTDOWN       112     /* Host is down */
120#define EHOSTUNREACH    113     /* No route to host */
121#define EALREADY        114     /* Operation already in progress */
122#define EINPROGRESS     115     /* Operation now in progress */
123#define ESTALE          116     /* Stale NFS file handle */
124#define EUCLEAN         117     /* Structure needs cleaning */
125#define ENOTNAM         118     /* Not a XENIX named type file */
126#define ENAVAIL         119     /* No XENIX semaphores available */
127#define EISNAM          120     /* Is a named type file */
128#define EREMOTEIO       121     /* Remote I/O error */
129#define EDQUOT          122     /* Quota exceeded */
130
131#define ENOMEDIUM       123     /* No medium found */
132#define EMEDIUMTYPE     124     /* Wrong medium type */
133
134/* lwIP nameserver query return codes */
135#define ENSROK    0 /* DNS server returned answer with no data */
136#define ENSRNODATA  160 /* DNS server returned answer with no data */
137#define ENSRFORMERR 161 /* DNS server claims query was misformatted */
138#define ENSRSERVFAIL 162  /* DNS server returned general failure */
139#define ENSRNOTFOUND 163  /* Domain name not found */
140#define ENSRNOTIMP  164 /* DNS server does not implement requested operation */
141#define ENSRREFUSED 165 /* DNS server refused query */
142#define ENSRBADQUERY 166  /* Misformatted DNS query */
143#define ENSRBADNAME 167 /* Misformatted domain name */
144#define ENSRBADFAMILY 168 /* Unsupported address family */
145#define ENSRBADRESP 169 /* Misformatted DNS reply */
146#define ENSRCONNREFUSED 170 /* Could not contact DNS servers */
147#define ENSRTIMEOUT 171 /* Timeout while contacting DNS servers */
148#define ENSROF    172 /* End of file */
149#define ENSRFILE  173 /* Error reading file */
150#define ENSRNOMEM 174 /* Out of memory */
151#define ENSRDESTRUCTION 175 /* Application terminated lookup */
152#define ENSRQUERYDOMAINTOOLONG  176 /* Domain name is too long */
153#define ENSRCNAMELOOP 177 /* Domain name is too long */
154
155#endif /* _ERRNO_H */
Note: See TracBrowser for help on using the repository browser.