UbixOS V2  2.0
errno.h
Go to the documentation of this file.
1 /*-
2  * Copyright (c) 2002-2018 The UbixOS Project.
3  * All rights reserved.
4  *
5  * This was developed by Christopher W. Olsen for the UbixOS Project.
6  *
7  * Redistribution and use in source and binary forms, with or without modification, are permitted
8  * provided that the following conditions are met:
9  *
10  * 1) Redistributions of source code must retain the above copyright notice, this list of
11  * conditions, the following disclaimer and the list of authors.
12  * 2) Redistributions in binary form must reproduce the above copyright notice, this list of
13  * conditions, the following disclaimer and the list of authors in the documentation and/or
14  * other materials provided with the distribution.
15  * 3) Neither the name of the UbixOS Project nor the names of its contributors may be used to
16  * endorse or promote products derived from this software without specific prior written
17  * permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
20  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
22  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #ifndef _UBIXOS_ERRNO_H
30 #define _UBIXOS_ERRNO_H
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #define ENOERR 0 /* No Error */
37 #define EPERM 1 /* Operation not permitted */
38 #define ENOENT 2 /* No such file or directory */
39 #define ESRCH 3 /* No such process */
40 #define EINTR 4 /* Interrupted system call */
41 #define EIO 5 /* I/O error */
42 #define ENXIO 6 /* No such device or address */
43 #define E2BIG 7 /* Arg list too long */
44 #define ENOEXEC 8 /* Exec format error */
45 #define EBADF 9 /* Bad file number */
46 #define ECHILD 10 /* No child processes */
47 #define EAGAIN 11 /* Try again */
48 #define ENOMEM 12 /* Out of memory */
49 #define EACCES 13 /* Permission denied */
50 #define EFAULT 14 /* Bad address */
51 #define ENOTBLK 15 /* Block device required */
52 #define EBUSY 16 /* Device or resource busy */
53 #define EEXIST 17 /* File exists */
54 #define EXDEV 18 /* Cross-device link */
55 #define ENODEV 19 /* No such device */
56 #define ENOTDIR 20 /* Not a directory */
57 #define EISDIR 21 /* Is a directory */
58 #define EINVAL 22 /* Invalid argument */
59 #define ENFILE 23 /* File table overflow */
60 #define EMFILE 24 /* Too many open files */
61 #define ENOTTY 25 /* Not a typewriter */
62 #define ETXTBSY 26 /* Text file busy */
63 #define EFBIG 27 /* File too large */
64 #define ENOSPC 28 /* No space left on device */
65 #define ESPIPE 29 /* Illegal seek */
66 #define EROFS 30 /* Read-only file system */
67 #define EMLINK 31 /* Too many links */
68 #define EPIPE 32 /* Broken pipe */
69 #define EDOM 33 /* Math argument out of domain of func */
70 #define ERANGE 34 /* Math result not representable */
71 #define EDEADLK 35 /* Resource deadlock would occur */
72 #define ENAMETOOLONG 36 /* File name too long */
73 #define ENOLCK 37 /* No record locks available */
74 #define ENOSYS 38 /* Function not implemented */
75 #define ENOTEMPTY 39 /* Directory not empty */
76 #define ELOOP 40 /* Too many symbolic links encountered */
77 #define EWOULDBLOCK EAGAIN /* Operation would block */
78 #define ENOMSG 42 /* No message of desired type */
79 #define EIDRM 43 /* Identifier removed */
80 #define ECHRNG 44 /* Channel number out of range */
81 #define EL2NSYNC 45 /* Level 2 not synchronized */
82 #define EL3HLT 46 /* Level 3 halted */
83 #define EL3RST 47 /* Level 3 reset */
84 #define ELNRNG 48 /* Link number out of range */
85 #define EUNATCH 49 /* Protocol driver not attached */
86 #define ENOCSI 50 /* No CSI structure available */
87 #define EL2HLT 51 /* Level 2 halted */
88 #define EBADE 52 /* Invalid exchange */
89 #define EBADR 53 /* Invalid request descriptor */
90 #define EXFULL 54 /* Exchange full */
91 #define ENOANO 55 /* No anode */
92 #define EBADRQC 56 /* Invalid request code */
93 #define EBADSLT 57 /* Invalid slot */
94 
95 #define EDEADLOCK EDEADLK
96 
97 #define EBFONT 59 /* Bad font file format */
98 #define ENOSTR 60 /* Device not a stream */
99 #define ENODATA 61 /* No data available */
100 #define ETIME 62 /* Timer expired */
101 #define ENOSR 63 /* Out of streams resources */
102 #define ENONET 64 /* Machine is not on the network */
103 #define ENOPKG 65 /* Package not installed */
104 #define EREMOTE 66 /* Object is remote */
105 #define ENOLINK 67 /* Link has been severed */
106 #define EADV 68 /* Advertise error */
107 #define ESRMNT 69 /* Srmount error */
108 #define ECOMM 70 /* Communication error on send */
109 #define EPROTO 71 /* Protocol error */
110 #define EMULTIHOP 72 /* Multihop attempted */
111 #define EDOTDOT 73 /* RFS specific error */
112 #define EBADMSG 74 /* Not a data message */
113 #define EOVERFLOW 75 /* Value too large for defined data type */
114 #define ENOTUNIQ 76 /* Name not unique on network */
115 #define EBADFD 77 /* File descriptor in bad state */
116 #define EREMCHG 78 /* Remote address changed */
117 #define ELIBACC 79 /* Can not access a needed shared library */
118 #define ELIBBAD 80 /* Accessing a corrupted shared library */
119 #define ELIBSCN 81 /* .lib section in a.out corrupted */
120 #define ELIBMAX 82 /* Attempting to link in too many shared libraries */
121 #define ELIBEXEC 83 /* Cannot exec a shared library directly */
122 #define EILSEQ 84 /* Illegal byte sequence */
123 #define ERESTART 85 /* Interrupted system call should be restarted */
124 #define ESTRPIPE 86 /* Streams pipe error */
125 #define EUSERS 87 /* Too many users */
126 #define ENOTSOCK 88 /* Socket operation on non-socket */
127 #define EDESTADDRREQ 89 /* Destination address required */
128 #define EMSGSIZE 90 /* Message too long */
129 #define EPROTOTYPE 91 /* Protocol wrong type for socket */
130 #define ENOPROTOOPT 92 /* Protocol not available */
131 #define EPROTONOSUPPORT 93 /* Protocol not supported */
132 #define ESOCKTNOSUPPORT 94 /* Socket type not supported */
133 #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
134 #define EPFNOSUPPORT 96 /* Protocol family not supported */
135 #define EAFNOSUPPORT 97 /* Address family not supported by protocol */
136 #define EADDRINUSE 98 /* Address already in use */
137 #define EADDRNOTAVAIL 99 /* Cannot assign requested address */
138 #define ENETDOWN 100 /* Network is down */
139 #define ENETUNREACH 101 /* Network is unreachable */
140 #define ENETRESET 102 /* Network dropped connection because of reset */
141 #define ECONNABORTED 103 /* Software caused connection abort */
142 #define ECONNRESET 104 /* Connection reset by peer */
143 #define ENOBUFS 105 /* No buffer space available */
144 #define EISCONN 106 /* Transport endpoint is already connected */
145 #define ENOTCONN 107 /* Transport endpoint is not connected */
146 #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
147 #define ETOOMANYREFS 109 /* Too many references: cannot splice */
148 #define ETIMEDOUT 110 /* Connection timed out */
149 #define ECONNREFUSED 111 /* Connection refused */
150 #define EHOSTDOWN 112 /* Host is down */
151 #define EHOSTUNREACH 113 /* No route to host */
152 #define EALREADY 114 /* Operation already in progress */
153 #define EINPROGRESS 115 /* Operation now in progress */
154 #define ESTALE 116 /* Stale NFS file handle */
155 #define EUCLEAN 117 /* Structure needs cleaning */
156 #define ENOTNAM 118 /* Not a XENIX named type file */
157 #define ENAVAIL 119 /* No XENIX semaphores available */
158 #define EISNAM 120 /* Is a named type file */
159 #define EREMOTEIO 121 /* Remote I/O error */
160 #define EDQUOT 122 /* Quota exceeded */
161 
162 #define ENOMEDIUM 123 /* No medium found */
163 #define EMEDIUMTYPE 124 /* Wrong medium type */
164 
165 #ifndef errno
166  extern int errno;
167 #endif
168 
169 #ifndef err_t
170 typedef int err_t;
171 #endif
172 
173 #ifdef __cplusplus
174 }
175 #endif
176 
177 #endif /* _UBIXOS_ERRNO*/
errno
int errno
Definition: err.c:45
err_t
int err_t
Definition: errno.h:170