summaryrefslogtreecommitdiff
path: root/firmware/include/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/errno.h')
-rw-r--r--firmware/include/errno.h134
1 files changed, 134 insertions, 0 deletions
diff --git a/firmware/include/errno.h b/firmware/include/errno.h
new file mode 100644
index 0000000000..4162f6a9ed
--- /dev/null
+++ b/firmware/include/errno.h
@@ -0,0 +1,134 @@
1/* errno is not a global variable, because that would make using it
2 non-reentrant. Instead, its address is returned by the function
3 __errno. */
4
5#ifndef _SYS_ERRNO_H_
6
7extern int errno;
8
9#define EPERM 1 /* Not super-user */
10#define ENOENT 2 /* No such file or directory */
11#define ESRCH 3 /* No such process */
12#define EINTR 4 /* Interrupted system call */
13#define EIO 5 /* I/O error */
14#define ENXIO 6 /* No such device or address */
15#define E2BIG 7 /* Arg list too long */
16#define ENOEXEC 8 /* Exec format error */
17#define EBADF 9 /* Bad file number */
18#define ECHILD 10 /* No children */
19#define EAGAIN 11 /* No more processes */
20#define ENOMEM 12 /* Not enough core */
21#define EACCES 13 /* Permission denied */
22#define EFAULT 14 /* Bad address */
23#define ENOTBLK 15 /* Block device required */
24#define EBUSY 16 /* Mount device busy */
25#define EEXIST 17 /* File exists */
26#define EXDEV 18 /* Cross-device link */
27#define ENODEV 19 /* No such device */
28#define ENOTDIR 20 /* Not a directory */
29#define EISDIR 21 /* Is a directory */
30#define EINVAL 22 /* Invalid argument */
31#define ENFILE 23 /* Too many open files in system */
32#define EMFILE 24 /* Too many open files */
33#define ENOTTY 25 /* Not a typewriter */
34#define ETXTBSY 26 /* Text file busy */
35#define EFBIG 27 /* File too large */
36#define ENOSPC 28 /* No space left on device */
37#define ESPIPE 29 /* Illegal seek */
38#define EROFS 30 /* Read only file system */
39#define EMLINK 31 /* Too many links */
40#define EPIPE 32 /* Broken pipe */
41#define EDOM 33 /* Math arg out of domain of func */
42#define ERANGE 34 /* Math result not representable */
43#define ENOMSG 35 /* No message of desired type */
44#define EIDRM 36 /* Identifier removed */
45#define ECHRNG 37 /* Channel number out of range */
46#define EL2NSYNC 38 /* Level 2 not synchronized */
47#define EL3HLT 39 /* Level 3 halted */
48#define EL3RST 40 /* Level 3 reset */
49#define ELNRNG 41 /* Link number out of range */
50#define EUNATCH 42 /* Protocol driver not attached */
51#define ENOCSI 43 /* No CSI structure available */
52#define EL2HLT 44 /* Level 2 halted */
53#define EDEADLK 45 /* Deadlock condition */
54#define ENOLCK 46 /* No record locks available */
55#define EBADE 50 /* Invalid exchange */
56#define EBADR 51 /* Invalid request descriptor */
57#define EXFULL 52 /* Exchange full */
58#define ENOANO 53 /* No anode */
59#define EBADRQC 54 /* Invalid request code */
60#define EBADSLT 55 /* Invalid slot */
61#define EDEADLOCK 56 /* File locking deadlock error */
62#define EBFONT 57 /* Bad font file fmt */
63#define ENOSTR 60 /* Device not a stream */
64#define ENODATA 61 /* No data (for no delay io) */
65#define ETIME 62 /* Timer expired */
66#define ENOSR 63 /* Out of streams resources */
67#define ENONET 64 /* Machine is not on the network */
68#define ENOPKG 65 /* Package not installed */
69#define EREMOTE 66 /* The object is remote */
70#define ENOLINK 67 /* The link has been severed */
71#define EADV 68 /* Advertise error */
72#define ESRMNT 69 /* Srmount error */
73#define ECOMM 70 /* Communication error on send */
74#define EPROTO 71 /* Protocol error */
75#define EMULTIHOP 74 /* Multihop attempted */
76#define ELBIN 75 /* Inode is remote (not really error) */
77#define EDOTDOT 76 /* Cross mount point (not really error) */
78#define EBADMSG 77 /* Trying to read unreadable message */
79#define ENOTUNIQ 80 /* Given log. name not unique */
80#define EBADFD 81 /* f.d. invalid for this operation */
81#define EREMCHG 82 /* Remote address changed */
82#define ELIBACC 83 /* Can't access a needed shared lib */
83#define ELIBBAD 84 /* Accessing a corrupted shared lib */
84#define ELIBSCN 85 /* .lib section in a.out corrupted */
85#define ELIBMAX 86 /* Attempting to link in too many libs */
86#define ELIBEXEC 87 /* Attempting to exec a shared library */
87#define ENOSYS 88 /* Function not implemented */
88#define ENMFILE 89 /* No more files */
89#define ENOTEMPTY 90 /* Directory not empty */
90#define ENAMETOOLONG 91 /* File or path name too long */
91#define ELOOP 92 /* Too many symbolic links */
92#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
93#define EPFNOSUPPORT 96 /* Protocol family not supported */
94#define ECONNRESET 104 /* Connection reset by peer */
95#define ENOBUFS 105 /* No buffer space available */
96#define EAFNOSUPPORT 106 /* Address family not supported by protocol family */
97#define EPROTOTYPE 107 /* Protocol wrong type for socket */
98#define ENOTSOCK 108 /* Socket operation on non-socket */
99#define ENOPROTOOPT 109 /* Protocol not available */
100#define ESHUTDOWN 110 /* Can't send after socket shutdown */
101#define ECONNREFUSED 111 /* Connection refused */
102#define EADDRINUSE 112 /* Address already in use */
103#define ECONNABORTED 113 /* Connection aborted */
104#define ENETUNREACH 114 /* Network is unreachable */
105#define ENETDOWN 115 /* Network interface is not configured */
106#define ETIMEDOUT 116 /* Connection timed out */
107#define EHOSTDOWN 117 /* Host is down */
108#define EHOSTUNREACH 118 /* Host is unreachable */
109#define EINPROGRESS 119 /* Connection already in progress */
110#define EALREADY 120 /* Socket already connected */
111#define EDESTADDRREQ 121 /* Destination address required */
112#define EMSGSIZE 122 /* Message too long */
113#define EPROTONOSUPPORT 123 /* Unknown protocol */
114#define ESOCKTNOSUPPORT 124 /* Socket type not supported */
115#define EADDRNOTAVAIL 125 /* Address not available */
116#define ENETRESET 126
117#define EISCONN 127 /* Socket is already connected */
118#define ENOTCONN 128 /* Socket is not connected */
119#define ETOOMANYREFS 129
120#define EPROCLIM 130
121#define EUSERS 131
122#define EDQUOT 132
123#define ESTALE 133
124#define ENOTSUP 134 /* Not supported */
125#define ENOMEDIUM 135 /* No medium (in tape drive) */
126#define ENOSHARE 136 /* No such host or network path */
127#define ECASECLASH 137 /* Filename exists with different case */
128
129/* From cygwin32. */
130#define EWOULDBLOCK EAGAIN /* Operation would block */
131
132#define __ELASTERROR 2000 /* Users can add values starting here */
133
134#endif /* _SYS_ERRNO_H */