Debian Codegraph @

share/libc/errno.h

raw
1 /**************************************************************************/
2 /* */
3 /* This file is part of Frama-C. */
4 /* */
5 /* Copyright (C) 2007-2022 */
6 /* CEA (Commissariat à l'énergie atomique et aux énergies */
7 /* alternatives) */
8 /* */
9 /* you can redistribute it and/or modify it under the terms of the GNU */
10 /* Lesser General Public License as published by the Free Software */
11 /* Foundation, version 2.1. */
12 /* */
13 /* It is distributed in the hope that it will be useful, */
14 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
15 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
16 /* GNU Lesser General Public License for more details. */
17 /* */
18 /* See the GNU Lesser General Public License version 2.1 */
19 /* for more details (enclosed in the file licenses/LGPLv2.1). */
20 /* */
21 /**************************************************************************/
22
23 /* ISO C: 7.5 */
24 #ifndef __FC_ERRNO
25 #define __FC_ERRNO
26 #include "features.h"
27 __PUSH_FC_STDLIB
28 #include "__fc_machdep.h"
29
30 /* Mandatory */
31 #define EDOM __FC_EDOM
32 #define EILSEQ __FC_EILSEQ
33 #define ERANGE __FC_ERANGE
34
35 /* Implementation defined by POSIX and GNU Linux */
36 #define E2BIG __FC_E2BIG
37 #define EACCES __FC_EACCES
38 #define EADDRINUSE __FC_EADDRINUSE
39 #define EADDRNOTAVAIL __FC_EADDRNOTAVAIL
40 #define EAFNOSUPPORT __FC_EAFNOSUPPORT
41 #define EAGAIN __FC_EAGAIN
42 #define EALREADY __FC_EALREADY
43 #define EBADE __FC_EBADE
44 #define EBADF __FC_EBADF
45 #define EBADFD __FC_EBADFD
46 #define EBADMSG __FC_EBADMSG
47 #define EBADR __FC_EBADR
48 #define EBADRQC __FC_EBADRQC
49 #define EBADSLT __FC_EBADSLT
50 #define EBUSY __FC_EBUSY
51 #define ECANCELED __FC_ECANCELED
52 #define ECHILD __FC_ECHILD
53 #define ECHRNG __FC_ECHRNG
54 #define ECOMM __FC_ECOMM
55 #define ECONNABORTED __FC_ECONNABORTED
56 #define ECONNREFUSED __FC_ECONNREFUSED
57 #define ECONNRESET __FC_ECONNRESET
58 #define EDEADLK __FC_EDEADLK
59 #define EDEADLOCK __FC_EDEADLOCK
60 #define EDESTADDRREQ __FC_EDESTADDRREQ
61 #define EDQUOT __FC_EDQUOT
62 #define EEXIST __FC_EEXIST
63 #define EFAULT __FC_EFAULT
64 #define EFBIG __FC_EFBIG
65 #define EHOSTDOWN __FC_EHOSTDOWN
66 #define EHOSTUNREACH __FC_EHOSTUNREACH
67 #define EIDRM __FC_EIDRM
68 #define EINPROGRESS __FC_EINPROGRESS
69 #define EINTR __FC_EINTR
70 #define EINVAL __FC_EINVAL
71 #define EIO __FC_EIO
72 #define EISCONN __FC_EISCONN
73 #define EISDIR __FC_EISDIR
74 #define EISNAM __FC_EISNAM
75 #define EKEYEXPIRED __FC_EKEYEXPIRED
76 #define EKEYREJECTED __FC_EKEYREJECTED
77 #define EKEYREVOKED __FC_EKEYREVOKED
78 #define EL2HLT __FC_EL2HLT
79 #define EL2NSYNC __FC_EL2NSYNC
80 #define EL3HLT __FC_EL3HLT
81 #define EL3RST __FC_EL3RST
82 #define ELIBACC __FC_ELIBACC
83 #define ELIBBAD __FC_ELIBBAD
84 #define ELIBMAX __FC_ELIBMAX
85 #define ELIBSCN __FC_ELIBSCN
86 #define ELIBEXEC __FC_ELIBEXEC
87 #define ELOOP __FC_ELOOP
88 #define EMEDIUMTYPE __FC_EMEDIUMTYPE
89 #define EMFILE __FC_EMFILE
90 #define EMLINK __FC_EMLINK
91 #define EMSGSIZE __FC_EMSGSIZE
92 #define EMULTIHOP __FC_EMULTIHOP
93 #define ENAMETOOLONG __FC_ENAMETOOLONG
94 #define ENETDOWN __FC_ENETDOWN
95 #define ENETRESET __FC_ENETRESET
96 #define ENETUNREACH __FC_ENETUNREACH
97 #define ENFILE __FC_ENFILE
98 #define ENOBUFS __FC_ENOBUFS
99 #define ENODATA __FC_ENODATA
100 #define ENODEV __FC_ENODEV
101 #define ENOENT __FC_ENOENT
102 #define ENOEXEC __FC_ENOEXEC
103 #define ENOKEY __FC_ENOKEY
104 #define ENOLCK __FC_ENOLCK
105 #define ENOLINK __FC_ENOLINK
106 #define ENOMEDIUM __FC_ENOMEDIUM
107 #define ENOMEM __FC_ENOMEM
108 #define ENOMSG __FC_ENOMSG
109 #define ENONET __FC_ENONET
110 #define ENOPKG __FC_ENOPKG
111 #define ENOPROTOOPT __FC_ENOPROTOOPT
112 #define ENOSPC __FC_ENOSPC
113 #define ENOSR __FC_ENOSR
114 #define ENOSTR __FC_ENOSTR
115 #define ENOSYS __FC_ENOSYS
116 #define ENOTBLK __FC_ENOTBLK
117 #define ENOTCONN __FC_ENOTCONN
118 #define ENOTDIR __FC_ENOTDIR
119 #define ENOTEMPTY __FC_ENOTEMPTY
120 #define ENOTSOCK __FC_ENOTSOCK
121 #define ENOTSUP __FC_ENOTSUP
122 #define ENOTTY __FC_ENOTTY
123 #define ENOTUNIQ __FC_ENOTUNIQ
124 #define ENXIO __FC_ENXIO
125 #define EOPNOTSUPP __FC_EOPNOTSUPP
126 #define EOVERFLOW __FC_EOVERFLOW
127 #define EPERM __FC_EPERM
128 #define EPFNOSUPPORT __FC_EPFNOSUPPORT
129 #define EPIPE __FC_EPIPE
130 #define EPROTO __FC_EPROTO
131 #define EPROTONOSUPPORT __FC_EPROTONOSUPPORT
132 #define EPROTOTYPE __FC_EPROTOTYPE
133 #define EREMCHG __FC_EREMCHG
134 #define EREMOTE __FC_EREMOTE
135 #define EREMOTEIO __FC_EREMOTEIO
136 #define ERESTART __FC_ERESTART
137 #define EROFS __FC_EROFS
138 #define ESHUTDOWN __FC_ESHUTDOWN
139 #define ESPIPE __FC_ESPIPE
140 #define ESOCKTNOSUPPORT __FC_ESOCKTNOSUPPORT
141 #define ESRCH __FC_ESRCH
142 #define ESTALE __FC_ESTALE
143 #define ESTRPIPE __FC_ESTRPIPE
144 #define ETIME __FC_ETIME
145 #define ETIMEDOUT __FC_ETIMEDOUT
146 #define ETXTBSY __FC_ETXTBSY
147 #define EUCLEAN __FC_EUCLEAN
148 #define EUNATCH __FC_EUNATCH
149 #define EUSERS __FC_EUSERS
150 #define EWOULDBLOCK __FC_EWOULDBLOCK
151 #define EXDEV __FC_EXDEV
152 #define EXFULL __FC_EXFULL
153
154 __BEGIN_DECLS
155
156 extern int __fc_errno;
157
158 #define errno __fc_errno
159
160 /* _GNU_SOURCE */
161 extern char *program_invocation_name;
162 extern char *program_invocation_short_name;
163
164 __END_DECLS
165
166 __POP_FC_STDLIB
167 #endif