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