VSF Documented
errno.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_ERRNO_H__
2#define __VSF_LINUX_ERRNO_H__
3
5#include <sys/reent.h>
6
7#if defined(__clang__)
8#pragma clang diagnostic push
9#pragma clang diagnostic ignored "-Winconsistent-dllimport"
10#endif
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16extern int * __errno(void);
17
18#define EPERM 1 /* Operation not permitted */
19#define ENOENT 2 /* No such file or directory */
20#define ESRCH 3 /* No such process */
21#define EINTR 4 /* Interrupted system call */
22#define EIO 5 /* I/O error */
23#define ENXIO 6 /* No such device or address */
24#define E2BIG 7 /* Argument list too long */
25#define ENOEXEC 8 /* Exec format error */
26#define EBADF 9 /* Bad file number */
27#define ECHILD 10 /* No child processes */
28#define EAGAIN 11 /* Try again */
29#define ENOMEM 12 /* Out of memory */
30#define EACCES 13 /* Permission denied */
31#define EFAULT 14 /* Bad address */
32#define ENOTBLK 15 /* Block device required */
33#define EBUSY 16 /* Device or resource busy */
34#define EEXIST 17 /* File exists */
35#define EXDEV 18 /* Cross-device link */
36#define ENODEV 19 /* No such device */
37#define ENOTDIR 20 /* Not a directory */
38#define EISDIR 21 /* Is a directory */
39#define EINVAL 22 /* Invalid argument */
40#define ENFILE 23 /* File table overflow */
41#define EMFILE 24 /* Too many open files */
42#define ENOTTY 25 /* Not a typewriter */
43#define ETXTBSY 26 /* Text file busy */
44#define EFBIG 27 /* File too large */
45#define ENOSPC 28 /* No space left on device */
46#define ESPIPE 29 /* Illegal seek */
47#define EROFS 30 /* Read-only file system */
48#define EMLINK 31 /* Too many links */
49#define EPIPE 32 /* Broken pipe */
50#define EDOM 33 /* Math argument out of domain of func */
51#define ERANGE 34 /* Math result not representable */
52
53#define EDEADLK 35 /* Resource deadlock would occur */
54#define ENAMETOOLONG 36 /* File name too long */
55#define ENOLCK 37 /* No record locks available */
56#define ENOSYS 38 /* Function not implemented */
57#define ENOTEMPTY 39 /* Directory not empty */
58#define ELOOP 40 /* Too many symbolic links encountered */
59#define EWOULDBLOCK EAGAIN /* Operation would block */
60#define ENOMSG 42 /* No message of desired type */
61#define EIDRM 43 /* Identifier removed */
62#define ECHRNG 44 /* Channel number out of range */
63#define EL2NSYNC 45 /* Level 2 not synchronized */
64#define EL3HLT 46 /* Level 3 halted */
65#define EL3RST 47 /* Level 3 reset */
66#define ELNRNG 48 /* Link number out of range */
67#define EUNATCH 49 /* Protocol driver not attached */
68#define ENOCSI 50 /* No CSI structure available */
69#define EL2HLT 51 /* Level 2 halted */
70#define EBADE 52 /* Invalid exchange */
71#define EBADR 53 /* Invalid request descriptor */
72#define EXFULL 54 /* Exchange full */
73#define ENOANO 55 /* No anode */
74#define EBADRQC 56 /* Invalid request code */
75#define EBADSLT 57 /* Invalid slot */
76
77#define EBFONT 59 /* Bad font file format */
78#define ENOSTR 60 /* Device not a stream */
79#define ENODATA 61 /* No data available */
80#define ETIME 62 /* Timer expired */
81#define ENOSR 63 /* Out of streams resources */
82#define ENONET 64 /* Machine is not on the network */
83#define ENOPKG 65 /* Package not installed */
84#define EREMOTE 66 /* Object is remote */
85#define ENOLINK 67 /* Link has been severed */
86#define EADV 68 /* Advertise error */
87#define ESRMNT 69 /* Srmount error */
88#define ECOMM 70 /* Communication error on send */
89#define EPROTO 71 /* Protocol error */
90#define EMULTIHOP 72 /* Multihop attempted */
91#define EDOTDOT 73 /* RFS specific error */
92#define EBADMSG 74 /* Not a data message */
93#define EOVERFLOW 75 /* Value too large for defined data type */
94#define ENOTUNIQ 76 /* Name not unique on network */
95#define EBADFD 77 /* File descriptor in bad state */
96#define EREMCHG 78 /* Remote address changed */
97#define ELIBACC 79 /* Can not access a needed shared library */
98#define ELIBBAD 80 /* Accessing a corrupted shared library */
99#define ELIBSCN 81 /* .lib section in a.out corrupted */
100#define ELIBMAX 82 /* Attempting to link in too many shared libraries */
101#define ELIBEXEC 83 /* Cannot exec a shared library directly */
102#define EILSEQ 84 /* Illegal byte sequence */
103#define ERESTART 85 /* Interrupted system call should be restarted */
104#define ESTRPIPE 86 /* Streams pipe error */
105#define EUSERS 87 /* Too many users */
106#define ENOTSOCK 88 /* Socket operation on non-socket */
107#define EDESTADDRREQ 89 /* Destination address required */
108#define EMSGSIZE 90 /* Message too long */
109#define EPROTOTYPE 91 /* Protocol wrong type for socket */
110#define ENOPROTOOPT 92 /* Protocol not available */
111#define EPROTONOSUPPORT 93 /* Protocol not supported */
112#define ESOCKTNOSUPPORT 94 /* Socket type not supported */
113#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
114#define EPFNOSUPPORT 96 /* Protocol family not supported */
115#define EAFNOSUPPORT 97 /* Address family not supported by protocol */
116#define EADDRINUSE 98 /* Address already in use */
117#define EADDRNOTAVAIL 99 /* Cannot assign requested address */
118#define ENETDOWN 100 /* Network is down */
119#define ENETUNREACH 101 /* Network is unreachable */
120#define ENETRESET 102 /* Network dropped connection because of reset */
121#define ECONNABORTED 103 /* Software caused connection abort */
122#define ECONNRESET 104 /* Connection reset by peer */
123#define ENOBUFS 105 /* No buffer space available */
124#define EISCONN 106 /* Transport endpoint is already connected */
125#define ENOTCONN 107 /* Transport endpoint is not connected */
126#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
127#define ETOOMANYREFS 109 /* Too many references: cannot splice */
128#define ETIMEDOUT 110 /* Connection timed out */
129#define ECONNREFUSED 111 /* Connection refused */
130#define EHOSTDOWN 112 /* Host is down */
131#define EHOSTUNREACH 113 /* No route to host */
132#define EALREADY 114 /* Operation already in progress */
133#define EINPROGRESS 115 /* Operation now in progress */
134#define ESTALE 116 /* Stale NFS file handle */
135#define EUCLEAN 117 /* Structure needs cleaning */
136#define ENOTNAM 118 /* Not a XENIX named type file */
137#define ENAVAIL 119 /* No XENIX semaphores available */
138#define EISNAM 120 /* Is a named type file */
139#define EREMOTEIO 121 /* Remote I/O error */
140#define EDQUOT 122 /* Quota exceeded */
141
142#define ENOMEDIUM 123 /* No medium found */
143#define EMEDIUMTYPE 124 /* Wrong medium type */
144#define ECANCELED 125 /* Operation Canceled */
145#define ENOKEY 126 /* Required key not available */
146#define EKEYEXPIRED 127 /* Key has expired */
147#define EKEYREVOKED 128 /* Key has been revoked */
148#define EKEYREJECTED 129 /* Key was rejected by service */
149
150/* Linux has no ENOTSUP error code. */
151#define ENOTSUP EOPNOTSUPP
152
153#define errno (__getreent()->_errno)
154#define program_invocation_short_name "unknown"
155
156#ifdef __cplusplus
157}
158#endif
159
160#if defined(__clang__)
161#pragma clang diagnostic pop
162#endif
163
164#endif
int * __errno(void)
Generated from commit: vsfteam/vsf@2a137b0