xref: /qemu/linux-user/generic/target_errno_defs.h (revision 5da4063f647348b1a607f39a9ae1adeec39419c9)
1637947f1Sths /*
2637947f1Sths  * Target definitions of errnos. These may be overridden by an
3637947f1Sths  * architecture specific header if needed.
4637947f1Sths  *
5637947f1Sths  * Taken from asm-generic/errno-base.h and asm-generic/errno.h
6637947f1Sths  */
7f91005e1SMarkus Armbruster 
8*8f968b6aSPhilippe Mathieu-Daudé #ifndef GENERIC_TARGET_ERRNO_DEFS_H
9*8f968b6aSPhilippe Mathieu-Daudé #define GENERIC_TARGET_ERRNO_DEFS_H
10f91005e1SMarkus Armbruster 
11637947f1Sths #define TARGET_EPERM            1      /* Operation not permitted */
12637947f1Sths #define TARGET_ENOENT           2      /* No such file or directory */
13637947f1Sths #define TARGET_ESRCH            3      /* No such process */
14637947f1Sths #define TARGET_EINTR            4      /* Interrupted system call */
15637947f1Sths #define TARGET_EIO              5      /* I/O error */
16637947f1Sths #define TARGET_ENXIO            6      /* No such device or address */
17637947f1Sths #define TARGET_E2BIG            7      /* Argument list too long */
18637947f1Sths #define TARGET_ENOEXEC          8      /* TARGET_Exec format error */
19637947f1Sths #define TARGET_EBADF            9      /* Bad file number */
20637947f1Sths #define TARGET_ECHILD          10      /* No child processes */
21637947f1Sths #define TARGET_EAGAIN          11      /* Try again */
22637947f1Sths #define TARGET_ENOMEM          12      /* Out of memory */
23637947f1Sths #define TARGET_EACCES          13      /* Permission denied */
24637947f1Sths #define TARGET_EFAULT          14      /* Bad address */
25637947f1Sths #define TARGET_ENOTBLK         15      /* Block device required */
26637947f1Sths #define TARGET_EBUSY           16      /* Device or resource busy */
27637947f1Sths #define TARGET_EEXIST          17      /* File exists */
28637947f1Sths #define TARGET_EXDEV           18      /* Cross-device link */
29637947f1Sths #define TARGET_ENODEV          19      /* No such device */
30637947f1Sths #define TARGET_ENOTDIR         20      /* Not a directory */
31637947f1Sths #define TARGET_EISDIR          21      /* Is a directory */
32637947f1Sths #define TARGET_EINVAL          22      /* Invalid argument */
33637947f1Sths #define TARGET_ENFILE          23      /* File table overflow */
34637947f1Sths #define TARGET_EMFILE          24      /* Too many open files */
35637947f1Sths #define TARGET_ENOTTY          25      /* Not a typewriter */
36637947f1Sths #define TARGET_ETXTBSY         26      /* Text file busy */
37637947f1Sths #define TARGET_EFBIG           27      /* File too large */
38637947f1Sths #define TARGET_ENOSPC          28      /* No space left on device */
39637947f1Sths #define TARGET_ESPIPE          29      /* Illegal seek */
40637947f1Sths #define TARGET_EROFS           30      /* Read-only file system */
41637947f1Sths #define TARGET_EMLINK          31      /* Too many links */
42637947f1Sths #define TARGET_EPIPE           32      /* Broken pipe */
43637947f1Sths #define TARGET_EDOM            33      /* Math argument out of domain of func */
44637947f1Sths #define TARGET_ERANGE          34      /* Math result not representable */
45637947f1Sths 
46637947f1Sths #define TARGET_EDEADLK         35      /* Resource deadlock would occur */
47637947f1Sths #define TARGET_ENAMETOOLONG    36      /* File name too long */
48637947f1Sths #define TARGET_ENOLCK          37      /* No record locks available */
49637947f1Sths #define TARGET_ENOSYS          38      /* Function not implemented */
50637947f1Sths #define TARGET_ENOTEMPTY       39      /* Directory not empty */
51637947f1Sths #define TARGET_ELOOP           40      /* Too many symbolic links encountered */
52637947f1Sths 
53637947f1Sths #define TARGET_ENOMSG          42      /* No message of desired type */
54637947f1Sths #define TARGET_EIDRM           43      /* Identifier removed */
55637947f1Sths #define TARGET_ECHRNG          44      /* Channel number out of range */
56637947f1Sths #define TARGET_EL2NSYNC        45      /* Level 2 not synchronized */
57637947f1Sths #define TARGET_EL3HLT          46      /* Level 3 halted */
58637947f1Sths #define TARGET_EL3RST          47      /* Level 3 reset */
59637947f1Sths #define TARGET_ELNRNG          48      /* Link number out of range */
60637947f1Sths #define TARGET_EUNATCH         49      /* Protocol driver not attached */
61637947f1Sths #define TARGET_ENOCSI          50      /* No CSI structure available */
62637947f1Sths #define TARGET_EL2HLT          51      /* Level 2 halted */
63637947f1Sths #define TARGET_EBADE           52      /* Invalid exchange */
64637947f1Sths #define TARGET_EBADR           53      /* Invalid request descriptor */
65637947f1Sths #define TARGET_EXFULL          54      /* TARGET_Exchange full */
66637947f1Sths #define TARGET_ENOANO          55      /* No anode */
67637947f1Sths #define TARGET_EBADRQC         56      /* Invalid request code */
68637947f1Sths #define TARGET_EBADSLT         57      /* Invalid slot */
69637947f1Sths 
70637947f1Sths #define TARGET_EBFONT          59      /* Bad font file format */
71637947f1Sths #define TARGET_ENOSTR          60      /* Device not a stream */
72637947f1Sths #define TARGET_ENODATA         61      /* No data available */
73637947f1Sths #define TARGET_ETIME           62      /* Timer expired */
74637947f1Sths #define TARGET_ENOSR           63      /* Out of streams resources */
75637947f1Sths #define TARGET_ENONET          64      /* Machine is not on the network */
76637947f1Sths #define TARGET_ENOPKG          65      /* Package not installed */
77637947f1Sths #define TARGET_EREMOTE         66      /* Object is remote */
78637947f1Sths #define TARGET_ENOLINK         67      /* Link has been severed */
79637947f1Sths #define TARGET_EADV            68      /* Advertise error */
80637947f1Sths #define TARGET_ESRMNT          69      /* Srmount error */
81637947f1Sths #define TARGET_ECOMM           70      /* Communication error on send */
82637947f1Sths #define TARGET_EPROTO          71      /* Protocol error */
83637947f1Sths #define TARGET_EMULTIHOP       72      /* Multihop attempted */
84637947f1Sths #define TARGET_EDOTDOT         73      /* RFS specific error */
85637947f1Sths #define TARGET_EBADMSG         74      /* Not a data message */
86637947f1Sths #define TARGET_EOVERFLOW       75      /* Value too large for defined data type */
87637947f1Sths #define TARGET_ENOTUNIQ        76      /* Name not unique on network */
88637947f1Sths #define TARGET_EBADFD          77      /* File descriptor in bad state */
89637947f1Sths #define TARGET_EREMCHG         78      /* Remote address changed */
90637947f1Sths #define TARGET_ELIBACC         79      /* Can not access a needed shared library */
91637947f1Sths #define TARGET_ELIBBAD         80      /* Accessing a corrupted shared library */
92637947f1Sths #define TARGET_ELIBSCN         81      /* .lib section in a.out corrupted */
93637947f1Sths #define TARGET_ELIBMAX         82      /* Attempting to link in too many shared libraries */
94637947f1Sths #define TARGET_ELIBEXEC        83      /* Cannot exec a shared library directly */
95637947f1Sths #define TARGET_EILSEQ          84      /* Illegal byte sequence */
96637947f1Sths #define TARGET_ERESTART        85      /* Interrupted system call should be restarted */
97637947f1Sths #define TARGET_ESTRPIPE        86      /* Streams pipe error */
98637947f1Sths #define TARGET_EUSERS          87      /* Too many users */
99637947f1Sths #define TARGET_ENOTSOCK        88      /* Socket operation on non-socket */
100637947f1Sths #define TARGET_EDESTADDRREQ    89      /* Destination address required */
101637947f1Sths #define TARGET_EMSGSIZE        90      /* Message too long */
102637947f1Sths #define TARGET_EPROTOTYPE      91      /* Protocol wrong type for socket */
103637947f1Sths #define TARGET_ENOPROTOOPT     92      /* Protocol not available */
104637947f1Sths #define TARGET_EPROTONOSUPPORT 93      /* Protocol not supported */
105637947f1Sths #define TARGET_ESOCKTNOSUPPORT 94      /* Socket type not supported */
106637947f1Sths #define TARGET_EOPNOTSUPP      95      /* Operation not supported on transport endpoint */
107637947f1Sths #define TARGET_EPFNOSUPPORT    96      /* Protocol family not supported */
108637947f1Sths #define TARGET_EAFNOSUPPORT    97      /* Address family not supported by protocol */
109637947f1Sths #define TARGET_EADDRINUSE      98      /* Address already in use */
110637947f1Sths #define TARGET_EADDRNOTAVAIL   99      /* Cannot assign requested address */
111637947f1Sths #define TARGET_ENETDOWN        100     /* Network is down */
112637947f1Sths #define TARGET_ENETUNREACH     101     /* Network is unreachable */
113637947f1Sths #define TARGET_ENETRESET       102     /* Network dropped connection because of reset */
114637947f1Sths #define TARGET_ECONNABORTED    103     /* Software caused connection abort */
115637947f1Sths #define TARGET_ECONNRESET      104     /* Connection reset by peer */
116637947f1Sths #define TARGET_ENOBUFS         105     /* No buffer space available */
117637947f1Sths #define TARGET_EISCONN         106     /* Transport endpoint is already connected */
118637947f1Sths #define TARGET_ENOTCONN        107     /* Transport endpoint is not connected */
119637947f1Sths #define TARGET_ESHUTDOWN       108     /* Cannot send after transport endpoint shutdown */
120637947f1Sths #define TARGET_ETOOMANYREFS    109     /* Too many references: cannot splice */
121637947f1Sths #define TARGET_ETIMEDOUT       110     /* Connection timed out */
122637947f1Sths #define TARGET_ECONNREFUSED    111     /* Connection refused */
123637947f1Sths #define TARGET_EHOSTDOWN       112     /* Host is down */
124637947f1Sths #define TARGET_EHOSTUNREACH    113     /* No route to host */
125637947f1Sths #define TARGET_EALREADY        114     /* Operation already in progress */
126637947f1Sths #define TARGET_EINPROGRESS     115     /* Operation now in progress */
127637947f1Sths #define TARGET_ESTALE          116     /* Stale NFS file handle */
128637947f1Sths #define TARGET_EUCLEAN         117     /* Structure needs cleaning */
129637947f1Sths #define TARGET_ENOTNAM         118     /* Not a XENIX named type file */
130637947f1Sths #define TARGET_ENAVAIL         119     /* No XENIX semaphores available */
131637947f1Sths #define TARGET_EISNAM          120     /* Is a named type file */
132637947f1Sths #define TARGET_EREMOTEIO       121     /* Remote I/O error */
133637947f1Sths #define TARGET_EDQUOT          122     /* Quota exceeded */
134637947f1Sths 
135637947f1Sths #define TARGET_ENOMEDIUM       123     /* No medium found */
136637947f1Sths #define TARGET_EMEDIUMTYPE     124     /* Wrong medium type */
137637947f1Sths #define TARGET_ECANCELED       125     /* Operation Canceled */
138637947f1Sths #define TARGET_ENOKEY          126     /* Required key not available */
139637947f1Sths #define TARGET_EKEYEXPIRED     127     /* Key has expired */
140637947f1Sths #define TARGET_EKEYREVOKED     128     /* Key has been revoked */
141637947f1Sths #define TARGET_EKEYREJECTED    129     /* Key was rejected by service */
142637947f1Sths 
143637947f1Sths /* for robust mutexes */
144637947f1Sths #define TARGET_EOWNERDEAD      130     /* Owner died */
145637947f1Sths #define TARGET_ENOTRECOVERABLE 131     /* State not recoverable */
14614896d32STimothy E Baldwin 
147fe8ed7d5SRichard Henderson #define TARGET_ERFKILL         132     /* Operation not possible due to RF-kill */
148fe8ed7d5SRichard Henderson #define TARGET_EHWPOISON       133     /* Memory page has hardware error */
149fe8ed7d5SRichard Henderson 
150f91005e1SMarkus Armbruster #endif
151