errno.h
Overview
Related Modules:
Description:
Defines error codes.
You can view the value of errno to check the error code definition in this file to preliminarily locate the fault.
Since:
1.0
Version:
1.0
Summary
Macros
| Macro Name and Value | Description |
|---|---|
| EPERM 1 | Operation not permitted. |
| ENOENT 2 | No such file or path. |
| ESRCH 3 | No such process. |
| EINTR 4 | Interrupted function call. |
| EIO 5 | I/O error. |
| ENXIO 6 | No such device or address. |
| E2BIG 7 | Parameter list too long. |
| ENOEXEC 8 | Exec format error. |
| EBADF 9 | Bad file descriptor. |
| ECHILD 10 | No child processes. |
| EAGAIN 11 | Retry. |
| ENOMEM 12 | Not enough memory space. |
| EACCES 13 | Incorrect permission. |
| EFAULT 14 | Invalid address. |
| ENOTBLK 15 | Block device request. |
| EBUSY 16 | Device or resource busy. |
| EEXIST 17 | File exists. |
| EXDEV 18 | Incorrect link. |
| ENODEV 19 | No such device. |
| ENOTDIR 20 | Not a directory. |
| EISDIR 21 | Is a directory. |
| EINVAL 22 | Invalid parameter. |
| ENFILE 23 | Too many opened files in system (the maximum number exceeded) |
| EMFILE 24 | Too many opened files in a process (the maximum number exceeded) |
| ENOTTY 25 | Inappropriate I/O control operation. |
| ETXTBSY 26 | Text file busy. |
| EFBIG 27 | File too large. |
| ENOSPC 28 | No space left on device. |
| ESPIPE 29 | Invalid query. |
| EROFS 30 | Read-only file system. |
| EMLINK 31 | Too many links. |
| EPIPE 32 | The pipe file is incorrect or the read end of the pipe is closed during the write operation. |
| EDOM 33 | Domain error. The value of at least one input parameter is out of the parameter range. |
| ERANGE 34 | The actual return value exceeds the return value range. |
| EDEADLK 35 | Resource deadlock. |
| ENAMETOOLONG 36 | File name too long. |
| ENOLCK 37 | No locks available. |
| ENOSYS 38 | Function not implemented. |
| ENOTEMPTY 39 | Directory not empty. |
| ELOOP 40 | Too many levels of symbolic links. |
| EWOULDBLOCK EAGAIN | Operation would block (the same value as EAGAIN) |
| ENOMSG 42 | No message of the desired type. |
| EIDRM 43 | Identifier removed. |
| ECHRNG 44 | Channel number out of range. |
| EL2NSYNC 45 | Level 2 not synchronized. |
| EL3HLT 46 | Level 3 halted. |
| EL3RST 47 | Level 3 reset. |
| ELNRNG 48 | Link ID out of range. |
| EUNATCH 49 | Protocol driver not attached. |
| ENOCSI 50 | No available CSI structure. |
| EL2HLT 51 | Level 2 halted. |
| EBADE 52 | Invalid exchange. |
| EBADR 53 | Invalid request descriptor. |
| EXFULL 54 | Exchange full. |
| ENOANO 55 | No anode. |
| EBADRQC 56 | Invalid request code. |
| EBADSLT 57 | Invalid slot. |
| EDEADLOCK EDEADLK | Resource deadlock (the same value as EDEADLK) |
| EBFONT 59 | Incorrect font format. |
| ENOSTR 60 | Not a stream device. |
| ENODATA 61 | No message is available on the stream head read queue. |
| ETIME 62 | Timer expired. |
| ENOSR 63 | No stream resources. |
| ENONET 64 | Machine is disconnected from the network. |
| ENOPKG 65 | Package not installed. |
| EREMOTE 66 | Object is remote. |
| ENOLINK 67 | Link has been severed. |
| EADV 68 | Broadcast error. |
| ESRMNT 69 | srmount error |
| ECOMM 70 | Communication error on send. |
| EPROTO 71 | Protocol error. |
| EMULTIHOP 72 | Multi-hop attempt. |
| EDOTDOT 73 | RFS-specific error. |
| EBADMSG 74 | Non-data message. |
| EOVERFLOW 75 | Value too large to be represented by the defined data type. |
| ENOTUNIQ 76 | Name not unique on the network. |
| EBADFD 77 | File descriptor in the bad state. |
| EREMCHG 78 | Remote address changed. |
| ELIBACC 79 | Cannot access a needed shared library. |
| ELIBBAD 80 | Accessing a corrupted shared library. |
| ELIBSCN 81 | lib section in a.out corrupted |
| ELIBMAX 82 | Attempting to link in too many shared libraries. |
| ELIBEXEC 83 | Cannot execute a shared library directly. |
| EILSEQ 84 | Invalid byte sequence. |
| ERESTART 85 | Interrupted system call should be restarted. |
| ESTRPIPE 86 | Stream pipe error. |
| EUSERS 87 | Too many users. |
| ENOTSOCK 88 | Not a socket. |
| EDESTADDRREQ 89 | Destination address required. |
| EMSGSIZE 90 | Message too long. |
| EPROTOTYPE 91 | Socket protocol error. |
| ENOPROTOOPT 92 | Protocol not available. |
| EPROTONOSUPPORT 93 | Protocol not supported. |
| ESOCKTNOSUPPORT 94 | Socket type not supported. |
| EOPNOTSUPP 95 | Operation not supported on socket. |
| ENOTSUP EOPNOTSUPP | Operation not supported on socket. The value is the same as that of EOPNOTSUPP. |
| EPFNOSUPPORT 96 | Protocol family not supported. |
| EAFNOSUPPORT 97 | Address family not supported. |
| EADDRINUSE 98 | Address already in use. |
| EADDRNOTAVAIL 99 | Address not available. |
| ENETDOWN 100 | Network is down. |
| ENETUNREACH 101 | Network unreachable. |
| ENETRESET 102 | Network disconnection caused by restart. |
| ECONNABORTED 103 | Network disconnection caused by software problems. |
| ECONNRESET 104 | Connection reset. |
| ENOBUFS 105 | No buffer space available. |
| EISCONN 106 | Socket is connected. |
| ENOTCONN 107 | Socket disconnected. |
| ESHUTDOWN 108 | Cannot send after transport endpoint shutdown. |
| ETOOMANYREFS 109 | Cannot splice due to too many references. |
| ETIMEDOUT 110 | Connection timed out. |
| ECONNREFUSED 111 | Connection refused. |
| EHOSTDOWN 112 | Host is down. |
| EHOSTUNREACH 113 | Host is unreachable. |
| EALREADY 114 | Operation already in process. |
| EINPROGRESS 115 | Operation in progress. |
| ESTALE 116 | Stale file handle. |
| EUCLEAN 117 | Structure needs cleaning. |
| ENOTNAM 118 | Not a XENIX named type file. |
| ENAVAIL 119 | No XENIX semaphores available. |
| EISNAM 120 | Duplicate file name. |
| EREMOTEIO 121 | Remote I/O error. |
| EDQUOT 122 | Quota exceeded. |
| ENOMEDIUM 123 | No medium found. |
| EMEDIUMTYPE 124 | Wrong medium type. |
| ECANCELED 125 | Operation canceled. |
| ENOKEY 126 | Required key not available. |
| EKEYEXPIRED 127 | Key has expired. |
| EKEYREVOKED 128 | Key has been revoked. |
| EKEYREJECTED 129 | Key was rejected by service. |
| EOWNERDEAD 130 | Resource owner died. |
| ENOTRECOVERABLE 131 | State not recoverable. |
| ERFKILL 132 | Operation not possible due to RF-kill. |
| EHWPOISON 133 | Hardware errors on the memory page. |
