Statistics
| Branch: | Revision:

root / linux-user / errno_defs.h @ 6a24a778

History | View | Annotate | Download (8.8 kB)

1 637947f1 ths
/*
2 637947f1 ths
 * Target definitions of errnos. These may be overridden by an
3 637947f1 ths
 * architecture specific header if needed.
4 637947f1 ths
 *
5 637947f1 ths
 * Taken from asm-generic/errno-base.h and asm-generic/errno.h
6 637947f1 ths
 */
7 637947f1 ths
#define TARGET_EPERM            1      /* Operation not permitted */
8 637947f1 ths
#define TARGET_ENOENT           2      /* No such file or directory */
9 637947f1 ths
#define TARGET_ESRCH            3      /* No such process */
10 637947f1 ths
#define TARGET_EINTR            4      /* Interrupted system call */
11 637947f1 ths
#define TARGET_EIO              5      /* I/O error */
12 637947f1 ths
#define TARGET_ENXIO            6      /* No such device or address */
13 637947f1 ths
#define TARGET_E2BIG            7      /* Argument list too long */
14 637947f1 ths
#define TARGET_ENOEXEC          8      /* TARGET_Exec format error */
15 637947f1 ths
#define TARGET_EBADF            9      /* Bad file number */
16 637947f1 ths
#define TARGET_ECHILD          10      /* No child processes */
17 637947f1 ths
#define TARGET_EAGAIN          11      /* Try again */
18 637947f1 ths
#define TARGET_ENOMEM          12      /* Out of memory */
19 637947f1 ths
#define TARGET_EACCES          13      /* Permission denied */
20 637947f1 ths
#define TARGET_EFAULT          14      /* Bad address */
21 637947f1 ths
#define TARGET_ENOTBLK         15      /* Block device required */
22 637947f1 ths
#define TARGET_EBUSY           16      /* Device or resource busy */
23 637947f1 ths
#define TARGET_EEXIST          17      /* File exists */
24 637947f1 ths
#define TARGET_EXDEV           18      /* Cross-device link */
25 637947f1 ths
#define TARGET_ENODEV          19      /* No such device */
26 637947f1 ths
#define TARGET_ENOTDIR         20      /* Not a directory */
27 637947f1 ths
#define TARGET_EISDIR          21      /* Is a directory */
28 637947f1 ths
#define TARGET_EINVAL          22      /* Invalid argument */
29 637947f1 ths
#define TARGET_ENFILE          23      /* File table overflow */
30 637947f1 ths
#define TARGET_EMFILE          24      /* Too many open files */
31 637947f1 ths
#define TARGET_ENOTTY          25      /* Not a typewriter */
32 637947f1 ths
#define TARGET_ETXTBSY         26      /* Text file busy */
33 637947f1 ths
#define TARGET_EFBIG           27      /* File too large */
34 637947f1 ths
#define TARGET_ENOSPC          28      /* No space left on device */
35 637947f1 ths
#define TARGET_ESPIPE          29      /* Illegal seek */
36 637947f1 ths
#define TARGET_EROFS           30      /* Read-only file system */
37 637947f1 ths
#define TARGET_EMLINK          31      /* Too many links */
38 637947f1 ths
#define TARGET_EPIPE           32      /* Broken pipe */
39 637947f1 ths
#define TARGET_EDOM            33      /* Math argument out of domain of func */
40 637947f1 ths
#define TARGET_ERANGE          34      /* Math result not representable */
41 637947f1 ths
42 637947f1 ths
#define TARGET_EDEADLK         35      /* Resource deadlock would occur */
43 637947f1 ths
#define TARGET_ENAMETOOLONG    36      /* File name too long */
44 637947f1 ths
#define TARGET_ENOLCK          37      /* No record locks available */
45 637947f1 ths
#define TARGET_ENOSYS          38      /* Function not implemented */
46 637947f1 ths
#define TARGET_ENOTEMPTY       39      /* Directory not empty */
47 637947f1 ths
#define TARGET_ELOOP           40      /* Too many symbolic links encountered */
48 637947f1 ths
49 637947f1 ths
#define TARGET_ENOMSG          42      /* No message of desired type */
50 637947f1 ths
#define TARGET_EIDRM           43      /* Identifier removed */
51 637947f1 ths
#define TARGET_ECHRNG          44      /* Channel number out of range */
52 637947f1 ths
#define TARGET_EL2NSYNC        45      /* Level 2 not synchronized */
53 637947f1 ths
#define TARGET_EL3HLT          46      /* Level 3 halted */
54 637947f1 ths
#define TARGET_EL3RST          47      /* Level 3 reset */
55 637947f1 ths
#define TARGET_ELNRNG          48      /* Link number out of range */
56 637947f1 ths
#define TARGET_EUNATCH         49      /* Protocol driver not attached */
57 637947f1 ths
#define TARGET_ENOCSI          50      /* No CSI structure available */
58 637947f1 ths
#define TARGET_EL2HLT          51      /* Level 2 halted */
59 637947f1 ths
#define TARGET_EBADE           52      /* Invalid exchange */
60 637947f1 ths
#define TARGET_EBADR           53      /* Invalid request descriptor */
61 637947f1 ths
#define TARGET_EXFULL          54      /* TARGET_Exchange full */
62 637947f1 ths
#define TARGET_ENOANO          55      /* No anode */
63 637947f1 ths
#define TARGET_EBADRQC         56      /* Invalid request code */
64 637947f1 ths
#define TARGET_EBADSLT         57      /* Invalid slot */
65 637947f1 ths
66 637947f1 ths
#define TARGET_EBFONT          59      /* Bad font file format */
67 637947f1 ths
#define TARGET_ENOSTR          60      /* Device not a stream */
68 637947f1 ths
#define TARGET_ENODATA         61      /* No data available */
69 637947f1 ths
#define TARGET_ETIME           62      /* Timer expired */
70 637947f1 ths
#define TARGET_ENOSR           63      /* Out of streams resources */
71 637947f1 ths
#define TARGET_ENONET          64      /* Machine is not on the network */
72 637947f1 ths
#define TARGET_ENOPKG          65      /* Package not installed */
73 637947f1 ths
#define TARGET_EREMOTE         66      /* Object is remote */
74 637947f1 ths
#define TARGET_ENOLINK         67      /* Link has been severed */
75 637947f1 ths
#define TARGET_EADV            68      /* Advertise error */
76 637947f1 ths
#define TARGET_ESRMNT          69      /* Srmount error */
77 637947f1 ths
#define TARGET_ECOMM           70      /* Communication error on send */
78 637947f1 ths
#define TARGET_EPROTO          71      /* Protocol error */
79 637947f1 ths
#define TARGET_EMULTIHOP       72      /* Multihop attempted */
80 637947f1 ths
#define TARGET_EDOTDOT         73      /* RFS specific error */
81 637947f1 ths
#define TARGET_EBADMSG         74      /* Not a data message */
82 637947f1 ths
#define TARGET_EOVERFLOW       75      /* Value too large for defined data type */
83 637947f1 ths
#define TARGET_ENOTUNIQ        76      /* Name not unique on network */
84 637947f1 ths
#define TARGET_EBADFD          77      /* File descriptor in bad state */
85 637947f1 ths
#define TARGET_EREMCHG         78      /* Remote address changed */
86 637947f1 ths
#define TARGET_ELIBACC         79      /* Can not access a needed shared library */
87 637947f1 ths
#define TARGET_ELIBBAD         80      /* Accessing a corrupted shared library */
88 637947f1 ths
#define TARGET_ELIBSCN         81      /* .lib section in a.out corrupted */
89 637947f1 ths
#define TARGET_ELIBMAX         82      /* Attempting to link in too many shared libraries */
90 637947f1 ths
#define TARGET_ELIBEXEC        83      /* Cannot exec a shared library directly */
91 637947f1 ths
#define TARGET_EILSEQ          84      /* Illegal byte sequence */
92 637947f1 ths
#define TARGET_ERESTART        85      /* Interrupted system call should be restarted */
93 637947f1 ths
#define TARGET_ESTRPIPE        86      /* Streams pipe error */
94 637947f1 ths
#define TARGET_EUSERS          87      /* Too many users */
95 637947f1 ths
#define TARGET_ENOTSOCK        88      /* Socket operation on non-socket */
96 637947f1 ths
#define TARGET_EDESTADDRREQ    89      /* Destination address required */
97 637947f1 ths
#define TARGET_EMSGSIZE        90      /* Message too long */
98 637947f1 ths
#define TARGET_EPROTOTYPE      91      /* Protocol wrong type for socket */
99 637947f1 ths
#define TARGET_ENOPROTOOPT     92      /* Protocol not available */
100 637947f1 ths
#define TARGET_EPROTONOSUPPORT 93      /* Protocol not supported */
101 637947f1 ths
#define TARGET_ESOCKTNOSUPPORT 94      /* Socket type not supported */
102 637947f1 ths
#define TARGET_EOPNOTSUPP      95      /* Operation not supported on transport endpoint */
103 637947f1 ths
#define TARGET_EPFNOSUPPORT    96      /* Protocol family not supported */
104 637947f1 ths
#define TARGET_EAFNOSUPPORT    97      /* Address family not supported by protocol */
105 637947f1 ths
#define TARGET_EADDRINUSE      98      /* Address already in use */
106 637947f1 ths
#define TARGET_EADDRNOTAVAIL   99      /* Cannot assign requested address */
107 637947f1 ths
#define TARGET_ENETDOWN        100     /* Network is down */
108 637947f1 ths
#define TARGET_ENETUNREACH     101     /* Network is unreachable */
109 637947f1 ths
#define TARGET_ENETRESET       102     /* Network dropped connection because of reset */
110 637947f1 ths
#define TARGET_ECONNABORTED    103     /* Software caused connection abort */
111 637947f1 ths
#define TARGET_ECONNRESET      104     /* Connection reset by peer */
112 637947f1 ths
#define TARGET_ENOBUFS         105     /* No buffer space available */
113 637947f1 ths
#define TARGET_EISCONN         106     /* Transport endpoint is already connected */
114 637947f1 ths
#define TARGET_ENOTCONN        107     /* Transport endpoint is not connected */
115 637947f1 ths
#define TARGET_ESHUTDOWN       108     /* Cannot send after transport endpoint shutdown */
116 637947f1 ths
#define TARGET_ETOOMANYREFS    109     /* Too many references: cannot splice */
117 637947f1 ths
#define TARGET_ETIMEDOUT       110     /* Connection timed out */
118 637947f1 ths
#define TARGET_ECONNREFUSED    111     /* Connection refused */
119 637947f1 ths
#define TARGET_EHOSTDOWN       112     /* Host is down */
120 637947f1 ths
#define TARGET_EHOSTUNREACH    113     /* No route to host */
121 637947f1 ths
#define TARGET_EALREADY        114     /* Operation already in progress */
122 637947f1 ths
#define TARGET_EINPROGRESS     115     /* Operation now in progress */
123 637947f1 ths
#define TARGET_ESTALE          116     /* Stale NFS file handle */
124 637947f1 ths
#define TARGET_EUCLEAN         117     /* Structure needs cleaning */
125 637947f1 ths
#define TARGET_ENOTNAM         118     /* Not a XENIX named type file */
126 637947f1 ths
#define TARGET_ENAVAIL         119     /* No XENIX semaphores available */
127 637947f1 ths
#define TARGET_EISNAM          120     /* Is a named type file */
128 637947f1 ths
#define TARGET_EREMOTEIO       121     /* Remote I/O error */
129 637947f1 ths
#define TARGET_EDQUOT          122     /* Quota exceeded */
130 637947f1 ths
131 637947f1 ths
#define TARGET_ENOMEDIUM       123     /* No medium found */
132 637947f1 ths
#define TARGET_EMEDIUMTYPE     124     /* Wrong medium type */
133 637947f1 ths
#define TARGET_ECANCELED       125     /* Operation Canceled */
134 637947f1 ths
#define TARGET_ENOKEY          126     /* Required key not available */
135 637947f1 ths
#define TARGET_EKEYEXPIRED     127     /* Key has expired */
136 637947f1 ths
#define TARGET_EKEYREVOKED     128     /* Key has been revoked */
137 637947f1 ths
#define TARGET_EKEYREJECTED    129     /* Key was rejected by service */
138 637947f1 ths
139 637947f1 ths
/* for robust mutexes */
140 637947f1 ths
#define TARGET_EOWNERDEAD      130     /* Owner died */
141 637947f1 ths
#define TARGET_ENOTRECOVERABLE 131     /* State not recoverable */