1<errno.h>(0P) POSIX Programmer's Manual <errno.h>(0P)
2
3
4
6 errno.h - system error numbers
7
9 #include <errno.h>
10
12 Some of the functionality described on this reference page extends the
13 ISO C standard. Any conflict between the requirements described here
14 and the ISO C standard is unintentional. This volume of
15 IEEE Std 1003.1-2001 defers to the ISO C standard.
16
17 The ISO C standard only requires the symbols [EDOM], [EILSEQ], and
18 [ERANGE] to be defined.
19
20 The <errno.h> header shall provide a declaration for errno and give
21 positive values for the following symbolic constants. Their values
22 shall be unique except as noted below.
23
24 E2BIG Argument list too long.
25
26 EACCES Permission denied.
27
28 EADDRINUSE
29 Address in use.
30
31 EADDRNOTAVAIL
32 Address not available.
33
34 EAFNOSUPPORT
35 Address family not supported.
36
37 EAGAIN Resource unavailable, try again (may be the same value as
38 [EWOULDBLOCK]).
39
40 EALREADY
41 Connection already in progress.
42
43 EBADF Bad file descriptor.
44
45 EBADMSG
46 Bad message.
47
48 EBUSY Device or resource busy.
49
50 ECANCELED
51 Operation canceled.
52
53 ECHILD No child processes.
54
55 ECONNABORTED
56 Connection aborted.
57
58 ECONNREFUSED
59 Connection refused.
60
61 ECONNRESET
62 Connection reset.
63
64 EDEADLK
65 Resource deadlock would occur.
66
67 EDESTADDRREQ
68 Destination address required.
69
70 EDOM Mathematics argument out of domain of function.
71
72 EDQUOT Reserved.
73
74 EEXIST File exists.
75
76 EFAULT Bad address.
77
78 EFBIG File too large.
79
80 EHOSTUNREACH
81 Host is unreachable.
82
83 EIDRM Identifier removed.
84
85 EILSEQ Illegal byte sequence.
86
87 EINPROGRESS
88 Operation in progress.
89
90 EINTR Interrupted function.
91
92 EINVAL Invalid argument.
93
94 EIO I/O error.
95
96 EISCONN
97 Socket is connected.
98
99 EISDIR Is a directory.
100
101 ELOOP Too many levels of symbolic links.
102
103 EMFILE Too many open files.
104
105 EMLINK Too many links.
106
107 EMSGSIZE
108 Message too large.
109
110 EMULTIHOP
111 Reserved.
112
113 ENAMETOOLONG
114 Filename too long.
115
116 ENETDOWN
117 Network is down.
118
119 ENETRESET
120 Connection aborted by network.
121
122 ENETUNREACH
123 Network unreachable.
124
125 ENFILE Too many files open in system.
126
127 ENOBUFS
128 No buffer space available.
129
130 ENODATA
131 No message is available on the STREAM head read queue.
132
133 ENODEV No such device.
134
135 ENOENT No such file or directory.
136
137 ENOEXEC
138 Executable file format error.
139
140 ENOLCK No locks available.
141
142 ENOLINK
143 Reserved.
144
145 ENOMEM Not enough space.
146
147 ENOMSG No message of the desired type.
148
149 ENOPROTOOPT
150 Protocol not available.
151
152 ENOSPC No space left on device.
153
154 ENOSR No STREAM resources.
155
156 ENOSTR Not a STREAM.
157
158 ENOSYS Function not supported.
159
160 ENOTCONN
161 The socket is not connected.
162
163 ENOTDIR
164 Not a directory.
165
166 ENOTEMPTY
167 Directory not empty.
168
169 ENOTSOCK
170 Not a socket.
171
172 ENOTSUP
173 Not supported.
174
175 ENOTTY Inappropriate I/O control operation.
176
177 ENXIO No such device or address.
178
179 EOPNOTSUPP
180 Operation not supported on socket.
181
182 EOVERFLOW
183 Value too large to be stored in data type.
184
185 EPERM Operation not permitted.
186
187 EPIPE Broken pipe.
188
189 EPROTO Protocol error.
190
191 EPROTONOSUPPORT
192
193 Protocol not supported.
194
195 EPROTOTYPE
196 Protocol wrong type for socket.
197
198 ERANGE Result too large.
199
200 EROFS Read-only file system.
201
202 ESPIPE Invalid seek.
203
204 ESRCH No such process.
205
206 ESTALE Reserved.
207
208 ETIME Stream ioctl() timeout.
209
210 ETIMEDOUT
211 Connection timed out.
212
213 ETXTBSY
214 Text file busy.
215
216 EWOULDBLOCK
217 Operation would block (may be the same value as [EAGAIN]).
218
219 EXDEV Cross-device link.
220
221
222 The following sections are informative.
223
225 Additional error numbers may be defined on conforming systems; see the
226 System Interfaces volume of IEEE Std 1003.1-2001.
227
229 None.
230
232 None.
233
235 The System Interfaces volume of IEEE Std 1003.1-2001, Section 2.3,
236 Error Numbers
237
239 Portions of this text are reprinted and reproduced in electronic form
240 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
241 -- Portable Operating System Interface (POSIX), The Open Group Base
242 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
243 Electrical and Electronics Engineers, Inc and The Open Group. In the
244 event of any discrepancy between this version and the original IEEE and
245 The Open Group Standard, the original IEEE and The Open Group Standard
246 is the referee document. The original Standard can be obtained online
247 at http://www.opengroup.org/unix/online.html .
248
249
250
251IEEE/The Open Group 2003 <errno.h>(0P)