| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 
 | '\" et
.TH errno.h "0P" 2013 "IEEE/The Open Group" "POSIX Programmer's Manual"
.SH PROLOG
This manual page is part of the POSIX Programmer's Manual.
The Linux implementation of this interface may differ (consult
the corresponding Linux manual page for details of Linux behavior),
or the interface may not be implemented on Linux.
.SH NAME
errno.h
\(em system error numbers
.SH SYNOPSIS
.LP
.nf
#include <errno.h>
.fi
.SH DESCRIPTION
Some of the functionality described on this reference page extends
the ISO\ C standard. Any conflict between the requirements described here
and the ISO\ C standard is unintentional. This volume of POSIX.1\(hy2008 defers to the ISO\ C standard.
.P
The ISO\ C standard only requires the symbols
.BR [EDOM] ,
.BR [EILSEQ] ,
and
.BR [ERANGE] 
to be defined.
.P
The
.IR <errno.h> 
header shall provide a declaration or definition for
.IR errno .
The symbol
.IR errno
shall expand to a modifiable lvalue of type
.BR int .
It is unspecified whether
.IR errno
is a macro or an identifier declared with external linkage. If a macro
definition is suppressed in order to access an actual object, or a
program defines an identifier with the name
.IR errno ,
the behavior is undefined.
.P
The
.IR <errno.h> 
header shall define the following macros which shall expand to
integer constant expressions with type
.BR int ,
distinct positive values (except as noted below), and which shall be
suitable for use in
.BR #if
preprocessing directives:
.TP
.BR E2BIG
Argument list too long.
.TP
.BR EACCES
Permission denied.
.TP
.BR EADDRINUSE
Address in use.
.TP
.BR EADDRNOTAVAIL
Address not available.
.TP
.BR EAFNOSUPPORT
Address family not supported.
.TP
.BR EAGAIN
Resource unavailable, try again (may be the same value as
.BR [EWOULDBLOCK] ).
.TP
.BR EALREADY
Connection already in progress.
.TP
.BR EBADF
Bad file descriptor.
.TP
.BR EBADMSG
Bad message.
.TP
.BR EBUSY
Device or resource busy.
.TP
.BR ECANCELED
Operation canceled.
.TP
.BR ECHILD
No child processes.
.TP
.BR ECONNABORTED
Connection aborted.
.TP
.BR ECONNREFUSED
Connection refused.
.TP
.BR ECONNRESET
Connection reset.
.TP
.BR EDEADLK
Resource deadlock would occur.
.TP
.BR EDESTADDRREQ
Destination address required.
.TP
.BR EDOM
Mathematics argument out of domain of function.
.TP
.BR EDQUOT
Reserved.
.TP
.BR EEXIST
File exists.
.TP
.BR EFAULT
Bad address.
.TP
.BR EFBIG
File too large.
.TP
.BR EHOSTUNREACH
Host is unreachable.
.TP
.BR EIDRM
Identifier removed.
.TP
.BR EILSEQ
Illegal byte sequence.
.TP
.BR EINPROGRESS
Operation in progress.
.TP
.BR EINTR
Interrupted function.
.TP
.BR EINVAL
Invalid argument.
.TP
.BR EIO
I/O error.
.TP
.BR EISCONN
Socket is connected.
.TP
.BR EISDIR
Is a directory.
.TP
.BR ELOOP
Too many levels of symbolic links.
.TP
.BR EMFILE
File descriptor value too large.
.TP
.BR EMLINK
Too many links.
.TP
.BR EMSGSIZE
Message too large.
.TP
.BR EMULTIHOP
Reserved.
.TP
.BR ENAMETOOLONG
Filename too long.
.TP
.BR ENETDOWN
Network is down.
.TP
.BR ENETRESET
Connection aborted by network.
.TP
.BR ENETUNREACH
Network unreachable.
.TP
.BR ENFILE
Too many files open in system.
.TP
.BR ENOBUFS
No buffer space available.
.TP
.BR ENODATA
No message is available on the STREAM head read queue.
.TP
.BR ENODEV
No such device.
.TP
.BR ENOENT
No such file or directory.
.TP
.BR ENOEXEC
Executable file format error.
.TP
.BR ENOLCK
No locks available.
.TP
.BR ENOLINK
Reserved.
.TP
.BR ENOMEM
Not enough space.
.TP
.BR ENOMSG
No message of the desired type.
.TP
.BR ENOPROTOOPT
Protocol not available.
.TP
.BR ENOSPC
No space left on device.
.TP
.BR ENOSR
No STREAM resources.
.TP
.BR ENOSTR
Not a STREAM.
.TP
.BR ENOSYS
Function not supported.
.TP
.BR ENOTCONN
The socket is not connected.
.TP
.BR ENOTDIR
Not a directory or a symbolic link to a directory.
.TP
.BR ENOTEMPTY
Directory not empty.
.TP
.BR ENOTRECOVERABLE
.br
State not recoverable.
.TP
.BR ENOTSOCK
Not a socket.
.TP
.BR ENOTSUP
Not supported (may be the same value as
.BR [EOPNOTSUPP] ).
.TP
.BR ENOTTY
Inappropriate I/O control operation.
.TP
.BR ENXIO
No such device or address.
.TP
.BR EOPNOTSUPP
Operation not supported on socket (may be the same value as
.BR [ENOTSUP] ).
.TP
.BR EOVERFLOW
Value too large to be stored in data type.
.TP
.BR EOWNERDEAD
Previous owner died.
.TP
.BR EPERM
Operation not permitted.
.TP
.BR EPIPE
Broken pipe.
.TP
.BR EPROTO
Protocol error.
.TP
.BR EPROTONOSUPPORT
.br
Protocol not supported.
.TP
.BR EPROTOTYPE
Protocol wrong type for socket.
.TP
.BR ERANGE
Result too large.
.TP
.BR EROFS
Read-only file system.
.TP
.BR ESPIPE
Invalid seek.
.TP
.BR ESRCH
No such process.
.TP
.BR ESTALE
Reserved.
.TP
.BR ETIME
Stream
\fIioctl\fR()
timeout.
.TP
.BR ETIMEDOUT
Connection timed out.
.TP
.BR ETXTBSY
Text file busy.
.TP
.BR EWOULDBLOCK
Operation would block (may be the same value as
.BR [EAGAIN] ).
.TP
.BR EXDEV
Cross-device link.
.LP
.IR "The following sections are informative."
.SH "APPLICATION USAGE"
Additional error numbers may be defined on conforming systems; see
the System Interfaces volume of POSIX.1\(hy2008.
.SH RATIONALE
None.
.SH "FUTURE DIRECTIONS"
None.
.SH "SEE ALSO"
The System Interfaces volume of POSIX.1\(hy2008,
.IR "Section 2.3" ", " "Error Numbers"
.SH COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 7, Copyright (C) 2013 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group.
(This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.unix.org/online.html .
Any typographical or formatting errors that appear
in this page are most likely
to have been introduced during the conversion of the source files to
man page format. To report such errors, see
https://www.kernel.org/doc/man-pages/reporting_bugs.html .
 |