Merge branch 'master' of github.com:sylware/cinitramfs
[cinitramfs.git] / ulinux / error.h
blobc577334e883015ddb28a53ed0b8ee35d255da9df
1 #ifndef ULINUX_ERROR_H
2 #define ULINUX_ERROR_H
3 /*******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
6 *******************************************************************************/
8 #define ULINUX_ISERR(x) (-4095<=(x)&&(x)<=-1)
9 #define ULINUX_EPERM 1/*Operation not permitted*/
10 #define ULINUX_ENOENT 2/*No such file or directory*/
11 #define ULINUX_ESRCH 3/*No such process*/
12 #define ULINUX_EINTR 4/*Interrupted system call*/
13 #define ULINUX_EIO 5/*I/O error*/
14 #define ULINUX_ENXIO 6/*No such device or address*/
15 #define ULINUX_E2BIG 7/*Argument list too long*/
16 #define ULINUX_ENOEXEC 8/*Exec format error*/
17 #define ULINUX_EBADF 9/*Bad file number*/
18 #define ULINUX_ECHILD 10/*No child processes*/
19 #define ULINUX_EAGAIN 11/*Try again*/
20 #define ULINUX_ENOMEM 12/*Out of memory*/
21 #define ULINUX_EACCES 13/*Permission denied*/
22 #define ULINUX_EFAULT 14/*Bad address*/
23 #define ULINUX_ENOTBLK 15/*Block device required*/
24 #define ULINUX_EBUSY 16/*Device or resource busy*/
25 #define ULINUX_EEXIST 17/*File exists*/
26 #define ULINUX_EXDEV 18/*Cross-device link*/
27 #define ULINUX_ENODEV 19/*No such device*/
28 #define ULINUX_ENOTDIR 20/*Not a directory*/
29 #define ULINUX_EISDIR 21/*Is a directory*/
30 #define ULINUX_EINVAL 22/*Invalid argument*/
31 #define ULINUX_ENFILE 23/*File table overflow*/
32 #define ULINUX_EMFILE 24/*Too many open files*/
33 #define ULINUX_ENOTTY 25/*Not a typewriter*/
34 #define ULINUX_ETXTBSY 26/*Text file busy*/
35 #define ULINUX_EFBIG 27/*File too large*/
36 #define ULINUX_ENOSPC 28/*No space left on device*/
37 #define ULINUX_ESPIPE 29/*Illegal seek*/
38 #define ULINUX_EROFS 30/*Read-only file system*/
39 #define ULINUX_EMLINK 31/*Too many links*/
40 #define ULINUX_EPIPE 32/*Broken pipe*/
41 #define ULINUX_EDOM 33/*Math argument out of domain of func*/
42 #define ULINUX_ERANGE 34/*Math result not representable*/
43 #define ULINUX_EDEADLK 35/*Resource deadlock would occur*/
44 #define ULINUX_ENAMETOOLONG 36/*File name too long*/
45 #define ULINUX_ENOLCK 37/*No record locks available*/
46 #define ULINUX_ENOSYS 38/*Function not implemented*/
47 #define ULINUX_ENOTEMPTY 39/*Directory not empty*/
48 #define ULINUX_ELOOP 40/*Too many symbolic links encountered*/
49 #define ULINUX_EWOULDBLOCK ULINUX_EAGAIN//Operation would block
50 #define ULINUX_ENOMSG 42/*No message of desired type*/
51 #define ULINUX_EIDRM 43/*Identifier removed*/
52 #define ULINUX_ECHRNG 44/*Channel number out of range*/
53 #define ULINUX_EL2NSYNC 45/*Level 2 not synchronized*/
54 #define ULINUX_EL3HLT 46/*Level 3 halted*/
55 #define ULINUX_EL3RST 47/*Level 3 reset*/
56 #define ULINUX_ELNRNG 48/*Link number out of range*/
57 #define ULINUX_EUNATCH 49/*Protocol driver not attached*/
58 #define ULINUX_ENOCSI 50/*No CSI structure available*/
59 #define ULINUX_EL2HLT 51/*Level 2 halted*/
60 #define ULINUX_EBADE 52/*Invalid exchange*/
61 #define ULINUX_EBADR 53/*Invalid request descriptor*/
62 #define ULINUX_EXFULL 54/*Exchange full*/
63 #define ULINUX_ENOANO 55/*No anode*/
64 #define ULINUX_EBADRQC 56/*Invalid request code*/
65 #define ULINUX_EBADSLT 57/*Invalid slot*/
67 #define ULINUX_EDEADLOCK ULINUX_EDEADLK
69 #define ULINUX_EBFONT 59/*Bad font file format*/
70 #define ULINUX_ENOSTR 60/*Device not a stream*/
71 #define ULINUX_ENODATA 61/*No data available*/
72 #define ULINUX_ETIME 62/*Timer expired*/
73 #define ULINUX_ENOSR 63/*Out of streams resources*/
74 #define ULINUX_ENONET 64/*Machine is not on the network*/
75 #define ULINUX_ENOPKG 65/*Package not installed*/
76 #define ULINUX_EREMOTE 66/*Object is remote*/
77 #define ULINUX_ENOLINK 67/*Link has been severed*/
78 #define ULINUX_EADV 68/*Advertise error*/
79 #define ULINUX_ESRMNT 69/*Srmount error*/
80 #define ULINUX_ECOMM 70/*Communication error on send*/
81 #define ULINUX_EPROTO 71/*Protocol error*/
82 #define ULINUX_EMULTIHOP 72/*Multihop attempted*/
83 #define ULINUX_EDOTDOT 73/*RFS specific error*/
84 #define ULINUX_EBADMSG 74/*Not a data message*/
85 #define ULINUX_EOVERFLOW 75/*Value too large for defined data type*/
86 #define ULINUX_ENOTUNIQ 76/*Name not unique on network*/
87 #define ULINUX_EBADFD 77/*File descriptor in bad state*/
88 #define ULINUX_EREMCHG 78/*Remote address changed*/
89 #define ULINUX_ELIBACC 79/*Can not access a needed shared library*/
90 #define ULINUX_ELIBBAD 80/*Accessing a corrupted shared library*/
91 #define ULINUX_ELIBSCN 81/*.lib section in a.out corrupted*/
92 #define ULINUX_ELIBMAX 82/*Attempting to link in too many shared libraries*/
93 #define ULINUX_ELIBEXEC 83/*Cannot exec a shared library directly*/
94 #define ULINUX_EILSEQ 84/*Illegal byte sequence*/
95 #define ULINUX_ERESTART 85/*Interrupted system call should be restarted*/
96 #define ULINUX_ESTRPIPE 86/*Streams pipe error*/
97 #define ULINUX_EUSERS 87/*Too many users*/
98 #define ULINUX_ENOTSOCK 88/*Socket operation on non-socket*/
99 #define ULINUX_EDESTADDRREQ 89/*Destination address required*/
100 #define ULINUX_EMSGSIZE 90/*Message too long*/
101 #define ULINUX_EPROTOTYPE 91/*Protocol wrong type for socket*/
102 #define ULINUX_ENOPROTOOPT 92/*Protocol not available*/
103 #define ULINUX_EPROTONOSUPPORT 93/*Protocol not supported*/
104 #define ULINUX_ESOCKTNOSUPPORT 94/*Socket type not supported*/
105 #define ULINUX_EOPNOTSUPP 95/*Operation not supported on transport endpoint*/
106 #define ULINUX_EPFNOSUPPORT 96/*Protocol family not supported*/
107 #define ULINUX_EAFNOSUPPORT 97/*Address family not supported by protocol*/
108 #define ULINUX_EADDRINUSE 98/*Address already in use*/
109 #define ULINUX_EADDRNOTAVAIL 99/*Cannot assign requested address*/
110 #define ULINUX_ENETDOWN 100/*Network is down*/
111 #define ULINUX_ENETUNREACH 101/*Network is unreachable*/
112 #define ULINUX_ENETRESET i 102/*Network dropped connection because of reset*/
113 #define ULINUX_ECONNABORTED 103/*Software caused connection abort*/
114 #define ULINUX_ECONNRESET 104/*Connection reset by peer*/
115 #define ULINUX_ENOBUFS 105/*No buffer space available*/
116 #define ULINUX_EISCONN 106/*Transport endpoint is already connected*/
117 #define ULINUX_ENOTCONN 107/*Transport endpoint is not connected*/
118 #define ULINUX_ESHUTDOWN 108/*Cannot send after transport endpoint shutdown*/
119 #define ULINUX_ETOOMANYREFS 109/*Too many references: cannot splice*/
120 #define ULINUX_ETIMEDOUT 110/*Connection timed out*/
121 #define ULINUX_ECONNREFUSED 111/*Connection refused*/
122 #define ULINUX_EHOSTDOWN 112/*Host is down*/
123 #define ULINUX_EHOSTUNREACH 113/*No route to host*/
124 #define ULINUX_EALREADY 114/*Operation already in progress*/
125 #define ULINUX_EINPROGRESS 115/*Operation now in progress*/
126 #define ULINUX_ESTALE 116/*Stale NFS file handle*/
127 #define ULINUX_EUCLEAN 117/*Structure needs cleaning*/
128 #define ULINUX_ENOTNAM 118/*Not a XENIX named type file*/
129 #define ULINUX_ENAVAIL 119/*No XENIX semaphores available*/
130 #define ULINUX_EISNAM 120/*Is a named type file*/
131 #define ULINUX_EREMOTEIO 121/*Remote I/O error*/
132 #define ULINUX_EDQUOT 122/*Quota exceeded*/
134 #define ULINUX_ENOMEDIUM 123/*No medium found*/
135 #define ULINUX_EMEDIUMTYPE 124/*Wrong medium type*/
136 #define ULINUX_ECANCELED 125/*Operation Canceled*/
137 #define ULINUX_ENOKEY 126/*Required key not available*/
138 #define ULINUX_EKEYEXPIRED 127/*Key has expired*/
139 #define ULINUX_EKEYREVOKED 128/*Key has been revoked*/
140 #define ULINUX_EKEYREJECTED 129/*Key was rejected by service*/
142 /*for robust mutexes*/
143 #define ULINUX_EOWNERDEAD 130/*Owner died*/
144 #define ULINUX_ENOTRECOVERABLE 131/*State not recoverable*/
146 #define ULINUX_ERFKILL 132/*Operation not possible due to RF-kill*/
148 #endif