#[repr(i32)]pub enum Errno {
Show 131 variants
Perm = 1,
Noent = 2,
Srch = 3,
Intr = 4,
Io = 5,
Nxio = 6,
Toobig = 7,
Noexec = 8,
Badf = 9,
Child = 10,
Again = 11,
Nomem = 12,
Acces = 13,
Fault = 14,
Notblk = 15,
Busy = 16,
Exist = 17,
Xdev = 18,
Nodev = 19,
Notdir = 20,
Isdir = 21,
Inval = 22,
Nfile = 23,
Mfile = 24,
Notty = 25,
Txtbsy = 26,
Fbig = 27,
Nospc = 28,
Spipe = 29,
Rofs = 30,
Mlink = 31,
Pipe = 32,
Dom = 33,
Range = 34,
Deadlk = 35,
Nametoolong = 36,
Nolck = 37,
Nosys = 38,
Notempty = 39,
Loop = 40,
Nomsg = 42,
Idrm = 43,
Chrng = 44,
L2nsync = 45,
L3hlt = 46,
L3rst = 47,
Lnrng = 48,
Unatch = 49,
Nocsi = 50,
L2hlt = 51,
Bade = 52,
Badr = 53,
Xfull = 54,
Noano = 55,
Badrqc = 56,
Badslt = 57,
Bfont = 59,
Nostr = 60,
Nodata = 61,
Time = 62,
Nosr = 63,
Nonet = 64,
Nopkg = 65,
Remote = 66,
Nolink = 67,
Adv = 68,
Srmnt = 69,
Comm = 70,
Proto = 71,
Multihop = 72,
Dotdot = 73,
Badmsg = 74,
Overflow = 75,
Notuniq = 76,
Badfd = 77,
Remchg = 78,
Libacc = 79,
Libbad = 80,
Libscn = 81,
Libmax = 82,
Libexec = 83,
Ilseq = 84,
Restart = 85,
Strpipe = 86,
Users = 87,
Notsock = 88,
Destaddrreq = 89,
Msgsize = 90,
Prototype = 91,
Noprotoopt = 92,
Protonosupport = 93,
Socktnosupport = 94,
Opnotsupp = 95,
Pfnosupport = 96,
Afnosupport = 97,
Addrinuse = 98,
Addrnotavail = 99,
Netdown = 100,
Netunreach = 101,
Netreset = 102,
Connaborted = 103,
Connreset = 104,
Nobufs = 105,
Isconn = 106,
Notconn = 107,
Shutdown = 108,
Toomanyrefs = 109,
Timedout = 110,
Connrefused = 111,
Hostdown = 112,
Hostunreach = 113,
Already = 114,
Inprogress = 115,
Stale = 116,
Uclean = 117,
Notnam = 118,
Navail = 119,
Isnam = 120,
Remoteio = 121,
Dquot = 122,
Nomedium = 123,
Mediumtype = 124,
Canceled = 125,
Nokey = 126,
Keyexpired = 127,
Keyrevoked = 128,
Keyrejected = 129,
Ownerdead = 130,
Notrecoverable = 131,
Rfkill = 132,
Hwpoison = 133,
}
Expand description
The error type for I/O operations and system calls.
The values of these error numbers are the same as in Linux.
See asm-generic/errno-base.h
and asm-generic/errno.h
for details.
Variants§
Perm = 1
Operation not permitted
Noent = 2
No such file or directory
Srch = 3
No such process
Intr = 4
Interrupted system call
Io = 5
I/O error
Nxio = 6
No such device or address
Toobig = 7
Argument list too long
Noexec = 8
Exec format error
Badf = 9
Bad file number
Child = 10
No child processes
Again = 11
Try again
Nomem = 12
Out of memory
Acces = 13
Permission denied
Fault = 14
Bad address
Notblk = 15
Block device required
Busy = 16
Device or resource busy
Exist = 17
File exists
Xdev = 18
Cross-device link
Nodev = 19
No such device
Notdir = 20
Not a directory
Isdir = 21
Is a directory
Inval = 22
Invalid argument
Nfile = 23
File table overflow
Mfile = 24
Too many open files
Notty = 25
Not a typewriter
Txtbsy = 26
Text file busy
Fbig = 27
File too large
Nospc = 28
No space left on device
Spipe = 29
Illegal seek
Rofs = 30
Read-only file system
Mlink = 31
Too many links
Pipe = 32
Broken pipe
Dom = 33
Math argument out of domain of func
Range = 34
Math result not representable
Deadlk = 35
Resource deadlock would occur
Nametoolong = 36
File name too long
Nolck = 37
No record locks available
Nosys = 38
Invalid system call number
Notempty = 39
Directory not empty
Loop = 40
Too many symbolic links encountered
Nomsg = 42
No message of desired type
Idrm = 43
Identifier removed
Chrng = 44
Channel number out of range
L2nsync = 45
Level 2 not synchronized
L3hlt = 46
Level 3 halted
L3rst = 47
Level 3 reset
Lnrng = 48
Link number out of range
Unatch = 49
Protocol driver not attached
Nocsi = 50
No CSI structure available
L2hlt = 51
Level 2 halted
Bade = 52
Invalid exchange
Badr = 53
Invalid request descriptor
Xfull = 54
Exchange full
Noano = 55
No anode
Badrqc = 56
Invalid request code
Badslt = 57
Invalid slot
Bfont = 59
Bad font file format
Nostr = 60
Device not a stream
Nodata = 61
No data available
Time = 62
Timer expired
Nosr = 63
Out of streams resources
Nonet = 64
Machine is not on the network
Nopkg = 65
Package not installed
Remote = 66
Object is remote
Nolink = 67
Link has been severed
Adv = 68
Advertise error
Srmnt = 69
Srmount error
Comm = 70
Communication error on send
Proto = 71
Protocol error
Multihop = 72
Multihop attempted
Dotdot = 73
RFS specific error
Badmsg = 74
Not a data message
Overflow = 75
Value too large for defined data type
Notuniq = 76
Name not unique on network
Badfd = 77
File descriptor in bad state
Remchg = 78
Remote address changed
Libacc = 79
Can not access a needed shared library
Libbad = 80
Accessing a corrupted shared library
Libscn = 81
.lib section in a.out corrupted
Libmax = 82
Attempting to link in too many shared libraries
Libexec = 83
Cannot exec a shared library directly
Ilseq = 84
Illegal byte sequence
Restart = 85
Interrupted system call should be restarted
Strpipe = 86
Streams pipe error
Users = 87
Too many users
Notsock = 88
Socket operation on non-socket
Destaddrreq = 89
Destination address required
Msgsize = 90
Message too long
Prototype = 91
Protocol wrong type for socket
Noprotoopt = 92
Protocol not available
Protonosupport = 93
Protocol not supported
Socktnosupport = 94
Socket type not supported
Opnotsupp = 95
Operation not supported on transport endpoint
Pfnosupport = 96
Protocol family not supported
Afnosupport = 97
Address family not supported by protocol
Addrinuse = 98
Address already in use
Addrnotavail = 99
Cannot assign requested address
Netdown = 100
Network is down
Netunreach = 101
Network is unreachable
Netreset = 102
Network dropped connection because of reset
Connaborted = 103
Software caused connection abort
Connreset = 104
Connection reset by peer
Nobufs = 105
No buffer space available
Isconn = 106
Transport endpoint is already connected
Notconn = 107
Transport endpoint is not connected
Shutdown = 108
Cannot send after transport endpoint shutdown
Toomanyrefs = 109
Too many references: cannot splice
Timedout = 110
Connection timed out
Connrefused = 111
Connection refused
Hostdown = 112
Host is down
Hostunreach = 113
No route to host
Already = 114
Operation already in progress
Inprogress = 115
Operation now in progress
Stale = 116
Stale file handle
Uclean = 117
Structure needs cleaning
Notnam = 118
Not a XENIX named type file
No XENIX semaphores available
Isnam = 120
Is a named type file
Remoteio = 121
Remote I/O error
Dquot = 122
Quota exceeded
Nomedium = 123
No medium found
Mediumtype = 124
Wrong medium type
Canceled = 125
Operation Canceled
Nokey = 126
Required key not available
Keyexpired = 127
Key has expired
Keyrevoked = 128
Key has been revoked
Keyrejected = 129
Key was rejected by service
Ownerdead = 130
Owner died
Notrecoverable = 131
State not recoverable
Rfkill = 132
Operation not possible due to RF-kill
Hwpoison = 133
Memory page has hardware error