Error number reference

Are you tired of grepping /usr/include to figure out what that system error number means? Here's a handy guide to all the errno values for your system. Use your browser search functionality to find the one you're looking for or just scroll down the table.

You are viewing the error codes for Linux; if you want to view the error codes for a different operating system, select it from the dropdown menu.

#    #define          Description
1    EPERM            Operation not permitted
2    ENOENT           No such file or directory
3    ESRCH            No such process
4    EINTR            Interrupted system call
5    EIO              I/O error
6    ENXIO            No such device or address
8    ENOEXEC          Exec format error
9    EBADF            Bad file number
10   ECHILD           No child processes
11   EAGAIN           Try again
12   ENOMEM           Out of memory
13   EACCES           Permission denied
14   EFAULT           Bad address
15   ENOTBLK          Block device required
16   EBUSY            Device or resource busy
17   EEXIST           File exists
18   EXDEV            Cross-device link
19   ENODEV           No such device
20   ENOTDIR          Not a directory
21   EISDIR           Is a directory
22   EINVAL           Invalid argument
23   ENFILE           File table overflow
24   EMFILE           Too many open files
25   ENOTTY           Not a typewriter
26   ETXTBSY          Text file busy
27   EFBIG            File too large
28   ENOSPC           No space left on device
29   ESPIPE           Illegal seek
30   EROFS            Read-only file system
31   EMLINK           Too many links
32   EPIPE            Broken pipe
33   EDOM             Math argument out of domain of func
34   ERANGE           Math result not representable
35   EDEADLK          Resource deadlock would occur
36   ENAMETOOLONG     File name too long
37   ENOLCK           No record locks available
38   ENOSYS           Invalid system call number
39   ENOTEMPTY        Directory not empty
40   ELOOP            Too many symbolic links encountered
42   ENOMSG           No message of desired type
43   EIDRM            Identifier removed
44   ECHRNG           Channel number out of range
48   ELNRNG           Link number out of range
49   EUNATCH          Protocol driver not attached
50   ENOCSI           No CSI structure available
52   EBADE            Invalid exchange
53   EBADR            Invalid request descriptor
54   EXFULL           Exchange full
55   ENOANO           No anode
56   EBADRQC          Invalid request code
57   EBADSLT          Invalid slot
59   EBFONT           Bad font file format
60   ENOSTR           Device not a stream
61   ENODATA          No data available
62   ETIME            Timer expired
63   ENOSR            Out of streams resources
64   ENONET           Machine is not on the network
65   ENOPKG           Package not installed
66   EREMOTE          Object is remote
67   ENOLINK          Link has been severed
68   EADV             Advertise error
69   ESRMNT           Srmount error
70   ECOMM            Communication error on send
71   EPROTO           Protocol error
72   EMULTIHOP        Multihop attempted
73   EDOTDOT          RFS specific error
74   EBADMSG          Not a data message
75   EOVERFLOW        Value too large for defined data type
76   ENOTUNIQ         Name not unique on network
77   EBADFD           File descriptor in bad state
78   EREMCHG          Remote address changed
79   ELIBACC          Can not access a needed shared library
80   ELIBBAD          Accessing a corrupted shared library
81   ELIBSCN          .lib section in a.out corrupted
82   ELIBMAX          Attempting to link in too many shared libraries
83   ELIBEXEC         Cannot exec a shared library directly
84   EILSEQ           Illegal byte sequence
85   ERESTART         Interrupted system call should be restarted
86   ESTRPIPE         Streams pipe error
87   EUSERS           Too many users
88   ENOTSOCK         Socket operation on non-socket
89   EDESTADDRREQ     Destination address required
90   EMSGSIZE         Message too long
91   EPROTOTYPE       Protocol wrong type for socket
92   ENOPROTOOPT      Protocol not available
93   EPROTONOSUPPORT  Protocol not supported
94   ESOCKTNOSUPPORT  Socket type not supported
95   EOPNOTSUPP       Operation not supported on transport endpoint
96   EPFNOSUPPORT     Protocol family not supported
97   EAFNOSUPPORT     Address family not supported by protocol
98   EADDRINUSE       Address already in use
99   EADDRNOTAVAIL    Cannot assign requested address
100  ENETDOWN         Network is down
101  ENETUNREACH      Network is unreachable
102  ENETRESET        Network dropped connection because of reset
103  ECONNABORTED     Software caused connection abort
104  ECONNRESET       Connection reset by peer
105  ENOBUFS          No buffer space available
106  EISCONN          Transport endpoint is already connected
107  ENOTCONN         Transport endpoint is not connected
108  ESHUTDOWN        Cannot send after transport endpoint shutdown
109  ETOOMANYREFS     Too many references: cannot splice
110  ETIMEDOUT        Connection timed out
111  ECONNREFUSED     Connection refused
112  EHOSTDOWN        Host is down
113  EHOSTUNREACH     No route to host
114  EALREADY         Operation already in progress
115  EINPROGRESS      Operation now in progress
116  ESTALE           Stale file handle
117  EUCLEAN          Structure needs cleaning
118  ENOTNAM          Not a XENIX named type file
119  ENAVAIL          No XENIX semaphores available
120  EISNAM           Is a named type file
121  EREMOTEIO        Remote I/O error
122  EDQUOT           Quota exceeded
123  ENOMEDIUM        No medium found
124  EMEDIUMTYPE      Wrong medium type
125  ECANCELED        Operation Canceled
126  ENOKEY           Required key not available
127  EKEYEXPIRED      Key has expired
128  EKEYREVOKED      Key has been revoked
129  EKEYREJECTED     Key was rejected by service
130  EOWNERDEAD       Owner died
131  ENOTRECOVERABLE  State not recoverable
132  ERFKILL          Operation not possible due to RF-kill
133  EHWPOISON        Memory page has hardware error

JSON interface

To load the error information as JSON, use:
/api/errno/linux/json

[
   {
      "const" : "EPERM",
      "desc" : "Operation not permitted",
      "errno" : 1
   },
   {
      "const" : "ENOENT",
      "desc" : "No such file or directory",
      "errno" : 2
   },
   {
      "const" : "ESRCH",
      "desc" : "No such process",
      "errno" : 3
   },
   {
      "const" : "EINTR",
      "desc" : "Interrupted system call",
      "errno" : 4
   },
   {
      "const" : "EIO",
      "desc" : "I/O error",
      "errno" : 5
   },
   {
      "const" : "ENXIO",
      "desc" : "No such device or address",
      "errno" : 6
   },
   {
      "const" : "ENOEXEC",
      "desc" : "Exec format error",
      "errno" : 8
   },
   {
      "const" : "EBADF",
      "desc" : "Bad file number",
      "errno" : 9
   },
   {
      "const" : "ECHILD",
      "desc" : "No child processes",
      "errno" : 10
   },
   {
      "const" : "EAGAIN",
      "desc" : "Try again",
      "errno" : 11
   },
   {
      "const" : "ENOMEM",
      "desc" : "Out of memory",
      "errno" : 12
   },
   {
      "const" : "EACCES",
      "desc" : "Permission denied",
      "errno" : 13
   },
   {
      "const" : "EFAULT",
      "desc" : "Bad address",
      "errno" : 14
   },
   {
      "const" : "ENOTBLK",
      "desc" : "Block device required",
      "errno" : 15
   },
   {
      "const" : "EBUSY",
      "desc" : "Device or resource busy",
      "errno" : 16
   },
   {
      "const" : "EEXIST",
      "desc" : "File exists",
      "errno" : 17
   },
   {
      "const" : "EXDEV",
      "desc" : "Cross-device link",
      "errno" : 18
   },
   {
      "const" : "ENODEV",
      "desc" : "No such device",
      "errno" : 19
   },
   {
      "const" : "ENOTDIR",
      "desc" : "Not a directory",
      "errno" : 20
   },
   {
      "const" : "EISDIR",
      "desc" : "Is a directory",
      "errno" : 21
   },
   {
      "const" : "EINVAL",
      "desc" : "Invalid argument",
      "errno" : 22
   },
   {
      "const" : "ENFILE",
      "desc" : "File table overflow",
      "errno" : 23
   },
   {
      "const" : "EMFILE",
      "desc" : "Too many open files",
      "errno" : 24
   },
   {
      "const" : "ENOTTY",
      "desc" : "Not a typewriter",
      "errno" : 25
   },
   {
      "const" : "ETXTBSY",
      "desc" : "Text file busy",
      "errno" : 26
   },
   {
      "const" : "EFBIG",
      "desc" : "File too large",
      "errno" : 27
   },
   {
      "const" : "ENOSPC",
      "desc" : "No space left on device",
      "errno" : 28
   },
   {
      "const" : "ESPIPE",
      "desc" : "Illegal seek",
      "errno" : 29
   },
   {
      "const" : "EROFS",
      "desc" : "Read-only file system",
      "errno" : 30
   },
   {
      "const" : "EMLINK",
      "desc" : "Too many links",
      "errno" : 31
   },
   {
      "const" : "EPIPE",
      "desc" : "Broken pipe",
      "errno" : 32
   },
   {
      "const" : "EDOM",
      "desc" : "Math argument out of domain of func",
      "errno" : 33
   },
   {
      "const" : "ERANGE",
      "desc" : "Math result not representable",
      "errno" : 34
   },
   {
      "const" : "EDEADLK",
      "desc" : "Resource deadlock would occur",
      "errno" : 35
   },
   {
      "const" : "ENAMETOOLONG",
      "desc" : "File name too long",
      "errno" : 36
   },
   {
      "const" : "ENOLCK",
      "desc" : "No record locks available",
      "errno" : 37
   },
   {
      "const" : "ENOSYS",
      "desc" : "Invalid system call number",
      "errno" : 38
   },
   {
      "const" : "ENOTEMPTY",
      "desc" : "Directory not empty",
      "errno" : 39
   },
   {
      "const" : "ELOOP",
      "desc" : "Too many symbolic links encountered",
      "errno" : 40
   },
   {
      "const" : "ENOMSG",
      "desc" : "No message of desired type",
      "errno" : 42
   },
   {
      "const" : "EIDRM",
      "desc" : "Identifier removed",
      "errno" : 43
   },
   {
      "const" : "ECHRNG",
      "desc" : "Channel number out of range",
      "errno" : 44
   },
   {
      "const" : "ELNRNG",
      "desc" : "Link number out of range",
      "errno" : 48
   },
   {
      "const" : "EUNATCH",
      "desc" : "Protocol driver not attached",
      "errno" : 49
   },
   {
      "const" : "ENOCSI",
      "desc" : "No CSI structure available",
      "errno" : 50
   },
   {
      "const" : "EBADE",
      "desc" : "Invalid exchange",
      "errno" : 52
   },
   {
      "const" : "EBADR",
      "desc" : "Invalid request descriptor",
      "errno" : 53
   },
   {
      "const" : "EXFULL",
      "desc" : "Exchange full",
      "errno" : 54
   },
   {
      "const" : "ENOANO",
      "desc" : "No anode",
      "errno" : 55
   },
   {
      "const" : "EBADRQC",
      "desc" : "Invalid request code",
      "errno" : 56
   },
   {
      "const" : "EBADSLT",
      "desc" : "Invalid slot",
      "errno" : 57
   },
   {
      "const" : "EBFONT",
      "desc" : "Bad font file format",
      "errno" : 59
   },
   {
      "const" : "ENOSTR",
      "desc" : "Device not a stream",
      "errno" : 60
   },
   {
      "const" : "ENODATA",
      "desc" : "No data available",
      "errno" : 61
   },
   {
      "const" : "ETIME",
      "desc" : "Timer expired",
      "errno" : 62
   },
   {
      "const" : "ENOSR",
      "desc" : "Out of streams resources",
      "errno" : 63
   },
   {
      "const" : "ENONET",
      "desc" : "Machine is not on the network",
      "errno" : 64
   },
   {
      "const" : "ENOPKG",
      "desc" : "Package not installed",
      "errno" : 65
   },
   {
      "const" : "EREMOTE",
      "desc" : "Object is remote",
      "errno" : 66
   },
   {
      "const" : "ENOLINK",
      "desc" : "Link has been severed",
      "errno" : 67
   },
   {
      "const" : "EADV",
      "desc" : "Advertise error",
      "errno" : 68
   },
   {
      "const" : "ESRMNT",
      "desc" : "Srmount error",
      "errno" : 69
   },
   {
      "const" : "ECOMM",
      "desc" : "Communication error on send",
      "errno" : 70
   },
   {
      "const" : "EPROTO",
      "desc" : "Protocol error",
      "errno" : 71
   },
   {
      "const" : "EMULTIHOP",
      "desc" : "Multihop attempted",
      "errno" : 72
   },
   {
      "const" : "EDOTDOT",
      "desc" : "RFS specific error",
      "errno" : 73
   },
   {
      "const" : "EBADMSG",
      "desc" : "Not a data message",
      "errno" : 74
   },
   {
      "const" : "EOVERFLOW",
      "desc" : "Value too large for defined data type",
      "errno" : 75
   },
   {
      "const" : "ENOTUNIQ",
      "desc" : "Name not unique on network",
      "errno" : 76
   },
   {
      "const" : "EBADFD",
      "desc" : "File descriptor in bad state",
      "errno" : 77
   },
   {
      "const" : "EREMCHG",
      "desc" : "Remote address changed",
      "errno" : 78
   },
   {
      "const" : "ELIBACC",
      "desc" : "Can not access a needed shared library",
      "errno" : 79
   },
   {
      "const" : "ELIBBAD",
      "desc" : "Accessing a corrupted shared library",
      "errno" : 80
   },
   {
      "const" : "ELIBSCN",
      "desc" : ".lib section in a.out corrupted",
      "errno" : 81
   },
   {
      "const" : "ELIBMAX",
      "desc" : "Attempting to link in too many shared libraries",
      "errno" : 82
   },
   {
      "const" : "ELIBEXEC",
      "desc" : "Cannot exec a shared library directly",
      "errno" : 83
   },
   {
      "const" : "EILSEQ",
      "desc" : "Illegal byte sequence",
      "errno" : 84
   },
   {
      "const" : "ERESTART",
      "desc" : "Interrupted system call should be restarted",
      "errno" : 85
   },
   {
      "const" : "ESTRPIPE",
      "desc" : "Streams pipe error",
      "errno" : 86
   },
   {
      "const" : "EUSERS",
      "desc" : "Too many users",
      "errno" : 87
   },
   {
      "const" : "ENOTSOCK",
      "desc" : "Socket operation on non-socket",
      "errno" : 88
   },
   {
      "const" : "EDESTADDRREQ",
      "desc" : "Destination address required",
      "errno" : 89
   },
   {
      "const" : "EMSGSIZE",
      "desc" : "Message too long",
      "errno" : 90
   },
   {
      "const" : "EPROTOTYPE",
      "desc" : "Protocol wrong type for socket",
      "errno" : 91
   },
   {
      "const" : "ENOPROTOOPT",
      "desc" : "Protocol not available",
      "errno" : 92
   },
   {
      "const" : "EPROTONOSUPPORT",
      "desc" : "Protocol not supported",
      "errno" : 93
   },
   {
      "const" : "ESOCKTNOSUPPORT",
      "desc" : "Socket type not supported",
      "errno" : 94
   },
   {
      "const" : "EOPNOTSUPP",
      "desc" : "Operation not supported on transport endpoint",
      "errno" : 95
   },
   {
      "const" : "EPFNOSUPPORT",
      "desc" : "Protocol family not supported",
      "errno" : 96
   },
   {
      "const" : "EAFNOSUPPORT",
      "desc" : "Address family not supported by protocol",
      "errno" : 97
   },
   {
      "const" : "EADDRINUSE",
      "desc" : "Address already in use",
      "errno" : 98
   },
   {
      "const" : "EADDRNOTAVAIL",
      "desc" : "Cannot assign requested address",
      "errno" : 99
   },
   {
      "const" : "ENETDOWN",
      "desc" : "Network is down",
      "errno" : 100
   },
   {
      "const" : "ENETUNREACH",
      "desc" : "Network is unreachable",
      "errno" : 101
   },
   {
      "const" : "ENETRESET",
      "desc" : "Network dropped connection because of reset",
      "errno" : 102
   },
   {
      "const" : "ECONNABORTED",
      "desc" : "Software caused connection abort",
      "errno" : 103
   },
   {
      "const" : "ECONNRESET",
      "desc" : "Connection reset by peer",
      "errno" : 104
   },
   {
      "const" : "ENOBUFS",
      "desc" : "No buffer space available",
      "errno" : 105
   },
   {
      "const" : "EISCONN",
      "desc" : "Transport endpoint is already connected",
      "errno" : 106
   },
   {
      "const" : "ENOTCONN",
      "desc" : "Transport endpoint is not connected",
      "errno" : 107
   },
   {
      "const" : "ESHUTDOWN",
      "desc" : "Cannot send after transport endpoint shutdown",
      "errno" : 108
   },
   {
      "const" : "ETOOMANYREFS",
      "desc" : "Too many references: cannot splice",
      "errno" : 109
   },
   {
      "const" : "ETIMEDOUT",
      "desc" : "Connection timed out",
      "errno" : 110
   },
   {
      "const" : "ECONNREFUSED",
      "desc" : "Connection refused",
      "errno" : 111
   },
   {
      "const" : "EHOSTDOWN",
      "desc" : "Host is down",
      "errno" : 112
   },
   {
      "const" : "EHOSTUNREACH",
      "desc" : "No route to host",
      "errno" : 113
   },
   {
      "const" : "EALREADY",
      "desc" : "Operation already in progress",
      "errno" : 114
   },
   {
      "const" : "EINPROGRESS",
      "desc" : "Operation now in progress",
      "errno" : 115
   },
   {
      "const" : "ESTALE",
      "desc" : "Stale file handle",
      "errno" : 116
   },
   {
      "const" : "EUCLEAN",
      "desc" : "Structure needs cleaning",
      "errno" : 117
   },
   {
      "const" : "ENOTNAM",
      "desc" : "Not a XENIX named type file",
      "errno" : 118
   },
   {
      "const" : "ENAVAIL",
      "desc" : "No XENIX semaphores available",
      "errno" : 119
   },
   {
      "const" : "EISNAM",
      "desc" : "Is a named type file",
      "errno" : 120
   },
   {
      "const" : "EREMOTEIO",
      "desc" : "Remote I/O error",
      "errno" : 121
   },
   {
      "const" : "EDQUOT",
      "desc" : "Quota exceeded",
      "errno" : 122
   },
   {
      "const" : "ENOMEDIUM",
      "desc" : "No medium found",
      "errno" : 123
   },
   {
      "const" : "EMEDIUMTYPE",
      "desc" : "Wrong medium type",
      "errno" : 124
   },
   {
      "const" : "ECANCELED",
      "desc" : "Operation Canceled",
      "errno" : 125
   },
   {
      "const" : "ENOKEY",
      "desc" : "Required key not available",
      "errno" : 126
   },
   {
      "const" : "EKEYEXPIRED",
      "desc" : "Key has expired",
      "errno" : 127
   },
   {
      "const" : "EKEYREVOKED",
      "desc" : "Key has been revoked",
      "errno" : 128
   },
   {
      "const" : "EKEYREJECTED",
      "desc" : "Key was rejected by service",
      "errno" : 129
   },
   {
      "const" : "EOWNERDEAD",
      "desc" : "Owner died",
      "errno" : 130
   },
   {
      "const" : "ENOTRECOVERABLE",
      "desc" : "State not recoverable",
      "errno" : 131
   },
   {
      "const" : "ERFKILL",
      "desc" : "Operation not possible due to RF-kill",
      "errno" : 132
   },
   {
      "const" : "EHWPOISON",
      "desc" : "Memory page has hardware error",
      "errno" : 133
   }
]

For JSONP, add a callback value as a query parameter:
/api/errno/linux/json?callback=myCallback