1 #define EPERM 1 // Operation not permitted 操作不允許 2 #define ENOENT 2 // No such file or directory 文件/路徑不存在 3 #define ESRCH 3 // No such process 進程不存在 4 #define EINTR 4 // Interrupted system call 中斷的系統調用 5 #define EIO 5 // I/O error I/O錯誤 6 #define ENXIO 6 // No such device or address 設備/地址不存在 7 #define E2BIG 7 // Arg list too long 參數列表過長 8 #define ENOEXEC 8 // Exec format error 執行格式錯誤 9 #define EBADF 9 // Bad file number 錯誤文件編號 10 #define ECHILD 10 // No child processes 子進程不存在 11 #define EAGAIN 11 // Try again 重試 12 #define ENOMEM 12 // Out of memory 內存不足 13 #define EACCES 13 // Permission denied 無權限 14 #define EFAULT 14 // Bad address 地址錯誤 15 #define ENOTBLK 15 // Block device required 需要塊設備 16 #define EBUSY 16 // Device or resource busy 設備或資源忙 17 #define EEXIST 17 // File exists 文件已存在 18 #define EXDEV 18 // Cross-device link 跨設備鏈路 19 #define ENODEV 19 // No such device 設備不存在 20 #define ENOTDIR 20 // Not a directory 路徑不存在 21 #define EISDIR 21 // Is a directory 是路徑 22 #define EINVAL 22 // Invalid argument 無效參數 23 #define ENFILE 23 // File table overflow 文件表溢出 24 #define EMFILE 24 // Too many open files 打開的文件過多 25 #define ENOTTY 25 // Not a typewriter 非打字機 26 #define ETXTBSY 26 // Text file busy 文本文件忙 27 #define EFBIG 27 // File too large 文件太大 28 #define ENOSPC 28 // No space left on device 設備無空間 29 #define ESPIPE 29 // Illegal seek 非法查詢 30 #define EROFS 30 // Read-only file system 只讀文件系統 31 #define EMLINK 31 // Too many links 鏈接太多 32 #define EPIPE 32 // Broken pipe 管道破裂 33 #define EDOM 33 // Math argument out of domain of func 參數超出函數域 34 #define ERANGE 34 // Math result not representable 結果無法表示 35 #define EDEADLK 35 // Resource deadlock would occur 資源將發生死鎖 36 #define ENAMETOOLONG 36 // File name too long 文件名太長 37 #define ENOLCK 37 // No record locks available 沒有可用的記錄鎖 38 #define ENOSYS 38 // Function not implemented 函數未實現 39 #define ENOTEMPTY 39 // Directory not empty 目錄非空 40 #define ELOOP 40 // Too many symbolic links encountered 遇到太多符號鏈接 41 #define EWOULDBLOCK EAGAIN // Operation would block 操作會阻塞 42 #define ENOMSG 42 // No message of desired type 沒有符合需求類型的消息 43 #define EIDRM 43 // Identifier removed 標識符已刪除 44 #define ECHRNG 44 // Channel number out of range 通道編號超出范圍 45 #define EL2NSYNC 45 // Level 2 not synchronized level2不同步 46 #define EL3HLT 46 // Level 3 halted 3級停止 47 #define EL3RST 47 // Level 3 reset 3級重置 48 #define ELNRNG 48 // Link number out of range 鏈接編號超出范圍 49 #define EUNATCH 49 // Protocol driver not attached 協議驅動程序沒有連接 50 #define ENOCSI 50 // No CSI structure available 沒有可用的CSI結構 51 #define EL2HLT 51 // Level 2 halted 2級停止 52 #define EBADE 52 // Invalid exchange 無效交換 53 #define EBADR 53 // Invalid request descriptor 無效請求描述 54 #define EXFULL 54 // Exchange full 交換完全 55 #define ENOANO 55 // No anode 無陽極 56 #define EBADRQC 56 // Invalid request code 無效請求碼 57 #define EBADSLT 57 // Invalid slot 無效插槽 58 #define EDEADLOCK EDEADLK 59 #define EBFONT 59 // Bad font file format 錯誤的字體文件格式 60 #define ENOSTR 60 // Device not a stream 設備不是流 61 #define ENODATA 61 // No data available 無數據 62 #define ETIME 62 // Timer expired 計時器到期 63 #define ENOSR 63 // Out of streams resources 流資源不足 64 #define ENONET 64 // Machine is not on the network 機器不在網絡上 65 #define ENOPKG 65 // Package not installed 包未安裝 66 #define EREMOTE 66 // Object is remote 對象是遠程 67 #define ENOLINK 67 // Link has been severed 鏈接正在服務中 68 #define EADV 68 // Advertise error 廣告錯誤 69 #define ESRMNT 69 // Srmount error ? 70 #define ECOMM 70 // Communication error on send 發送過程中通訊錯誤 71 #define EPROTO 71 // Protocol error 協議錯誤 72 #define EMULTIHOP 72 // Multihop attempted 多跳嘗試 73 #define EDOTDOT 73 // RFS specific error RFS特定錯誤 74 #define EBADMSG 74 // Not a data message 不是數據類型消息 75 #define EOVERFLOW 75 // Value too large for defined data type 對指定的數據類型來說值太大 76 #define ENOTUNIQ 76 // Name not unique on network 網絡上名字不唯一 77 #define EBADFD 77 // File descriptor in bad state 文件描述符狀態錯誤 78 #define EREMCHG 78 // Remote address changed 遠程地址改變 79 #define ELIBACC 79 // Can not access a needed shared library 無法訪問需要的共享庫 80 #define ELIBBAD 80 // Accessing a corrupted shared library 訪問損壞的共享庫 81 #define ELIBSCN 81 // .lib section in a.out corrupted 庫部分在a.out損壞 82 #define ELIBMAX 82 // Attempting to link in too many shared libraries 試圖鏈接太多的共享庫 83 #define ELIBEXEC 83 // Cannot exec a shared library directly 不能直接運行共享庫 84 #define EILSEQ 84 // Illegal byte sequence 非法字節序 85 #define ERESTART 85 // Interrupted system call should be restarted 應重新啟動被中斷的系統調用 86 #define ESTRPIPE 86 // Streams pipe error 流管錯誤 87 #define EUSERS 87 // Too many users 用戶太多 88 #define ENOTSOCK 88 // Socket operation on non-socket 在非套接字上進行套接字操作 89 #define EDESTADDRREQ 89 // Destination address required 需要目的地址 90 #define EMSGSIZE 90 // Message too long 消息太長 91 #define EPROTOTYPE 91 // Protocol wrong type for socket 錯誤協議類型 92 #define ENOPROTOOPT 92 // Protocol not available 協議不可用 93 #define EPROTONOSUPPORT 93 // Protocol not supported 不支持協議 94 #define ESOCKTNOSUPPORT 94 // Socket type not supported 不支持套接字類型 95 #define EOPNOTSUPP 95 // Operation not supported on transport endpoint 操作上不支持傳輸端點 96 #define EPFNOSUPPORT 96 // Protocol family not supported 不支持協議族 97 #define EAFNOSUPPORT 97 // Address family not supported by protocol 協議不支持地址群 98 #define EADDRINUSE 98 // Address already in use 地址已被使用 99 #define EADDRNOTAVAIL 99 // Cannot assign requested address 無法分配請求的地址 100 #define ENETDOWN 100 // Network is down 網絡已關閉 101 #define ENETUNREACH 101 // Network is unreachable 網絡不可達 102 #define ENETRESET 102 // Network dropped connection because of reset 網絡由於復位斷開連接 103 #define ECONNABORTED 103 // Software caused connection abort 軟件導致連接終止 104 #define ECONNRESET 104 // Connection reset by peer 連接被對方復位 105 #define ENOBUFS 105 // No buffer space available 沒有可用的緩存空間 106 #define EISCONN 106 // Transport endpoint is already connected 傳輸端點已連接 107 #define ENOTCONN 107 // Transport endpoint is not connected 傳輸端點未連接 108 #define ESHUTDOWN 108 // Cannot send after transport endpoint shutdown 傳輸端點關閉后不能在發送 109 #define ETOOMANYREFS 109 // Too many references: cannot splice 太多的引用:無法接合 110 #define ETIMEDOUT 110 // Connection timed out 連接超時 111 #define ECONNREFUSED 111 // Connection refused 連接被拒絕 112 #define EHOSTDOWN 112 // Host is down 主機已關閉 113 #define EHOSTUNREACH 113 // No route to host 無法路由到主機 114 #define EALREADY 114 // Operation already in progress 操作已在進程中 115 #define EINPROGRESS 115 // Operation now in progress 進程中正在進行的操作 116 #define ESTALE 116 // Stale NFS file handle 117 #define EUCLEAN 117 // Structure needs cleaning 118 #define ENOTNAM 118 // Not a XENIX named type file 119 #define ENAVAIL 119 // No XENIX semaphores available 120 #define EISNAM 120 // Is a named type file 121 #define EREMOTEIO 121 // Remote I/O error 122 #define EDQUOT 122 // Quota exceeded 123 #define ENOMEDIUM 123 // No medium found 124 #define EMEDIUMTYPE 124 // Wrong medium type