Common Linux error code implications, as shown in the following table:
Name |
Value |
Describe |
Eperm |
1 |
Operation not allowed |
Enoent |
2 |
No such file or directory |
Esrch |
3 |
No this process |
Eintr |
4 |
Interrupt system call |
Eio |
5 |
I/O error |
Enxio |
6 |
No such device or address |
E2big |
7 |
Argument list is too long |
Enoexec |
8 |
Error executing file |
Ebadf |
9 |
Wrong number of files |
Echild |
10 |
No Child processes |
Eagain |
11 |
Try again. |
Enomem |
12 |
Memory overflow |
Eacces |
13 |
Ask to be denied |
Efault |
14 |
Error address |
Enotblk |
15 |
Block Device Request |
Ebusy |
16 |
Device or resource busy |
Eexist |
17 |
File exists |
Exdev |
18 |
Cross-device Link |
Enodev |
19 |
No such device |
Enotdir |
20 |
Not a directory file |
Eisdir |
21st |
I is a directory file |
Einval |
22 |
Invalid argument |
Enfile |
23 |
File Table Overflow |
Emfile |
24 |
Too many open files |
Enotty |
25 |
Not a TTY device |
Etxtbsy |
26 |
File busy |
Efbig |
27 |
File is too large |
Enospc |
28 |
There is no room on this device. |
Espipe |
29 |
Invalid offset |
Erofs |
30 |
Read-Only file system |
Emlink |
31 |
Too many links |
Epipe |
32 |
Wrong pipe |
EDOM |
33 |
Math argument out of domain |
Erange |
34 |
Math result is not representable |
Edeadlk |
35 |
Resource deadlock would occur |
Enametoolong |
36 |
File name is too long |
Enolck |
37 |
No Record Locks available |
Enosys |
38 |
Function not implemented |
Enotempty |
39 |
Directory is not empty |
Eloop |
40 |
Too many symbolic links encountered |