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