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