]>
Commit | Line | Data |
---|---|---|
2aa62f2b | 1 | /** @file\r |
2 | The header <sys/errno.h> defines several values, all relating to the reporting of\r | |
3 | error conditions.\r | |
4 | \r | |
5 | The enum members expand to integral constant expressions\r | |
6 | with distinct nonzero values, suitable for use in #if preprocessing\r | |
7 | directives.\r | |
8 | \r | |
9 | Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r | |
10 | This program and the accompanying materials are licensed and made available under\r | |
11 | the terms and conditions of the BSD License that accompanies this distribution.\r | |
12 | The full text of the license may be found at\r | |
13 | http://opensource.org/licenses/bsd-license.\r | |
14 | \r | |
15 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
16 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
17 | \r | |
18 | **/\r | |
19 | #ifdef _ERRNO_H // May only be included from <errno.h>\r | |
20 | #ifndef _SYS_ERRNO_H\r | |
21 | #define _SYS_ERRNO_H\r | |
22 | \r | |
23 | /* Define the error numbers, sequentially, beginning at 1. */\r | |
24 | enum {\r | |
25 | __EMINERRORVAL = 1, /* The lowest valid error value */\r | |
26 | __EPERM = __EMINERRORVAL, /* 1 Operation not permitted */\r | |
27 | __ENOENT, /* 2 No such file or directory */\r | |
28 | __ESRCH, /* 3 No such process */\r | |
29 | __EINTR, /* 4 Interrupted system call */\r | |
30 | __EIO, /* 5 Input/output error */\r | |
31 | __ENXIO, /* 6 Device not configured */\r | |
32 | __E2BIG, /* 7 Argument list too long */\r | |
33 | __ENOEXEC, /* 8 Exec format error */\r | |
34 | __EBADF, /* 9 Bad file descriptor */\r | |
35 | __ECHILD, /* 10 No child processes */\r | |
36 | __EDEADLK, /* 11 Resource deadlock avoided */\r | |
37 | __ENOMEM, /* 12 Cannot allocate memory */\r | |
38 | __EACCES, /* 13 Permission denied */\r | |
39 | __EFAULT, /* 14 Bad address */\r | |
40 | __ENOTBLK, /* 15 Block device required */\r | |
41 | __EBUSY, /* 16 Device busy */\r | |
42 | __EEXIST, /* 17 File exists */\r | |
43 | __EXDEV, /* 18 Cross-device link */\r | |
44 | __ENODEV, /* 19 Operation not supported by device */\r | |
45 | __ENOTDIR, /* 20 Not a directory */\r | |
46 | __EISDIR, /* 21 Is a directory */\r | |
47 | __EINVAL, /* 22 Invalid argument */\r | |
48 | __ENFILE, /* 23 Too many open files in system */\r | |
49 | __EMFILE, /* 24 Too many open file descriptors */\r | |
50 | __ENOTTY, /* 25 Inappropriate ioctl for device */\r | |
51 | __ETXTBSY, /* 26 Text file busy */\r | |
52 | __EFBIG, /* 27 File too large */\r | |
53 | __ENOSPC, /* 28 No space left on device */\r | |
54 | __ESPIPE, /* 29 Illegal seek */\r | |
55 | __EROFS, /* 30 Read-only filesystem */\r | |
56 | __EMLINK, /* 31 Too many links */\r | |
57 | __EPIPE, /* 32 Broken pipe */\r | |
58 | \r | |
59 | /* math software -- these are the only two values required by the C Standard */\r | |
60 | __EDOM, /* 33 Numerical argument out of domain */\r | |
61 | __ERANGE, /* 34 Result too large */\r | |
62 | \r | |
63 | /* non-blocking and interrupt i/o */\r | |
64 | __EAGAIN, /* 35 Resource temporarily unavailable */\r | |
65 | __EWOULDBLOCK = __EAGAIN, /* 35 Operation would block */\r | |
66 | __EINPROGRESS, /* 36 Operation now in progress */\r | |
67 | __EALREADY, /* 37 Operation already in progress */\r | |
68 | \r | |
69 | /* ipc/network software -- argument errors */\r | |
70 | __ENOTSOCK, /* 38 Socket operation on non-socket */\r | |
71 | __EDESTADDRREQ, /* 39 Destination address required */\r | |
72 | __EMSGSIZE, /* 40 Message too long */\r | |
73 | __EPROTOTYPE, /* 41 Protocol wrong type for socket */\r | |
74 | __ENOPROTOOPT, /* 42 Protocol not available */\r | |
75 | __EPROTONOSUPPORT, /* 43 Protocol not supported */\r | |
76 | __ESOCKTNOSUPPORT, /* 44 Socket type not supported */\r | |
77 | __EOPNOTSUPP, /* 45 Operation not supported */\r | |
78 | __ENOTSUP = __EOPNOTSUPP, /* 45 Operation not supported */\r | |
79 | __EPFNOSUPPORT, /* 46 Protocol family not supported */\r | |
80 | __EAFNOSUPPORT, /* 47 Address family not supported by protocol family */\r | |
81 | __EADDRINUSE, /* 48 Address already in use */\r | |
82 | __EADDRNOTAVAIL, /* 49 Can't assign requested address */\r | |
83 | \r | |
84 | /* ipc/network software -- operational errors */\r | |
85 | __ENETDOWN, /* 50 Network is down */\r | |
86 | __ENETUNREACH, /* 51 Network is unreachable */\r | |
87 | __ENETRESET, /* 52 Network dropped connection on reset */\r | |
88 | __ECONNABORTED, /* 53 Software caused connection abort */\r | |
89 | __ECONNRESET, /* 54 Connection reset by peer */\r | |
90 | __ENOBUFS, /* 55 No buffer space available */\r | |
91 | __EISCONN, /* 56 Socket is already connected */\r | |
92 | __ENOTCONN, /* 57 Socket is not connected */\r | |
93 | __ESHUTDOWN, /* 58 Can't send after socket shutdown */\r | |
94 | __ETOOMANYREFS, /* 59 Too many references: can't splice */\r | |
95 | __ETIMEDOUT, /* 60 Operation timed out */\r | |
96 | __ECONNREFUSED, /* 61 Connection refused */\r | |
97 | __ELOOP, /* 62 Too many levels of symbolic links */\r | |
98 | __ENAMETOOLONG, /* 63 File name too long */\r | |
99 | __EHOSTDOWN, /* 64 Host is down */\r | |
100 | __EHOSTUNREACH, /* 65 No route to host */\r | |
101 | \r | |
102 | __ENOTEMPTY, /* 66 Directory not empty */\r | |
103 | \r | |
104 | /* quotas, etc. */\r | |
105 | __EPROCLIM, /* 67 Too many processes */\r | |
106 | __EUSERS, /* 68 Too many users */\r | |
107 | __EDQUOT, /* 69 Disc quota exceeded */\r | |
108 | \r | |
109 | /* Network File System */\r | |
110 | __ESTALE, /* 70 Stale NFS file handle */\r | |
111 | __EREMOTE, /* 71 Too many levels of remote in path */\r | |
112 | __EBADRPC, /* 72 RPC struct is bad */\r | |
113 | __ERPCMISMATCH, /* 73 RPC version wrong */\r | |
114 | __EPROGUNAVAIL, /* 74 RPC prog. not avail */\r | |
115 | __EPROGMISMATCH, /* 75 Program version wrong */\r | |
116 | __EPROCUNAVAIL, /* 76 Bad procedure for program */\r | |
117 | __ENOLCK, /* 77 No locks available */\r | |
118 | __ENOSYS, /* 78 Function not implemented */\r | |
119 | __EFTYPE, /* 79 Inappropriate file type or format */\r | |
120 | __EAUTH, /* 80 Authentication error */\r | |
121 | __ENEEDAUTH, /* 81 Need authenticator */\r | |
122 | __EIDRM, /* 82 Identifier removed */\r | |
123 | __ENOMSG, /* 83 No message of desired type */\r | |
124 | __EOVERFLOW, /* 84 Value too large to be stored in data type */\r | |
125 | __EILSEQ, /* 85 Illegal byte sequence */\r | |
126 | __ENOTHING_1, /* 86 Place Holder */\r | |
127 | __ECANCELED, /* 87 Operation canceled */\r | |
128 | \r | |
129 | __EBADMSG, /* 88 Bad message */\r | |
130 | __ENODATA, /* 89 No message available */\r | |
131 | __ENOSR, /* 90 No STREAM resources */\r | |
132 | __ENOSTR, /* 91 Not a STREAM */\r | |
133 | __ETIME, /* 92 STREAM ioctl timeout */\r | |
134 | \r | |
135 | __ENOATTR, /* 93 Attribute not found */\r | |
136 | \r | |
137 | __EDOOFUS, /* 94 Programming error */\r | |
138 | \r | |
139 | __EMULTIHOP, /* 95 Multihop attempted */\r | |
140 | __ENOLINK, /* 96 Link has been severed */\r | |
141 | __EPROTO, /* 97 Protocol error */\r | |
142 | \r | |
143 | __EBUFSIZE, /* 98 Buffer too small to hold result */\r | |
144 | \r | |
145 | __EMAXERRORVAL /* One more than the highest defined error value. */\r | |
146 | };\r | |
147 | \r | |
148 | #endif /* _SYS_ERRNO_H */\r | |
149 | #else /* not defined _ERRNO_H */\r | |
150 | #error <sys/errno.h> must only be included by <errno.h>.\r | |
151 | #endif /* _ERRNO_H */\r |