Go to the first, previous, next, last section, table of contents.
Syntax
#include <errno.h>
extern int errno;
Description
This variable is used to hold the value of the error of the last
function call. The value might be one of the following:
0
-
No Error
1
-
EDOM -- Input to function out of range
2
-
ERANGE -- Output of function out of range
3
-
E2BIG -- Argument list too long
4
-
EACCES -- Permission denied
5
-
EAGAIN -- Resource temporarily unavailable
6
-
EBADF -- Bad file descriptor
7
-
EBUSY -- Resource busy
8
-
ECHILD -- No child processes
9
-
EDEADLK -- Resource deadlock avoided
10
-
EEXIST -- File exists
11
-
EFAULT -- Bad address
12
-
EFBIG -- File too large
13
-
EINTR -- Interrupted system call
14
-
EINVAL -- Invalid argument
15
-
EIO -- Input or output
16
-
EISDIR -- Is a directory
17
-
EMFILE -- Too many open files
18
-
EMLINK -- Too many links
19
-
ENAMETOOLONG -- File name too long
20
-
ENFILE -- Too many open files in system
21
-
ENODEV -- No such device
22
-
ENOENT -- No such file or directory
23
-
ENOEXEC -- Unable to execute file
24
-
ENOLCK -- No locks available
25
-
ENOMEM -- Not enough memory
26
-
ENOSPC -- No space left on drive
27
-
ENOSYS -- Function not implemented
28
-
ENOTDIR -- Not a directory
29
-
ENOTEMPTY -- Directory not empty
30
-
ENOTTY -- Inappropriate I/O control operation
31
-
ENXIO -- No such device or address
32
-
EPERM -- Operation not permitted
33
-
EPIPE -- Broken pipe
34
-
EROFS -- Read-only file system
35
-
ESPIPE -- Invalid seek
36
-
ESRCH -- No such process
37
-
EXDEV -- Improper link
38
-
ENMFILE -- No more files
See section perror.
Portability
ANSI, POSIX
Go to the first, previous, next, last section, table of contents.