【原文链接】linux程序返回码的含义
错误返回码:0
成功(Success)
错误返回码:1
操作不允许(Operation not permitted)
错误返回码:2
没有这样的文件或目录(No such file or directory)
错误返回码:3
没有这样的进程(No such process)
错误返回码:4
中断的系统调用(Interrupted system call)
错误返回码:5
输入/输出错误(Input/output error)
错误返回码:6
没有这样的设备或地址(No such device or address)
错误返回码:7
参数列表太长(Argument list too long)
错误返回码:8
执行格式错误(Exec format error)
错误返回码:9
坏的文件描述符(Bad file descriptor)
错误返回码:10
无子进程(No child processes)
错误返回码:11
资源暂时不可用(Resource temporarily unavailable)
错误返回码:12
无法分配内存(Cannot allocate memory)
错误返回码:13
权限被拒绝(Permission denied)
错误返回码:14
错误的地址(Bad address)
错误返回码:15
需要块设备(Block device required)
错误返回码:16
设备或资源忙(Device or resource busy)
错误返回码:17
文件已经存在(File exists)
错误返回码:18
无效的跨设备链接(Invalid cross-device link)
错误返回码:19
没有这样的设备(No such device)
错误返回码:20
不是一个目录(Not a directory)
错误返回码:21
是一个目录(Is a directory)
错误返回码:22
无效参数(Invalid argument)
错误返回码:23
打开太多的文件系统(Too many open files in system)
错误返回码:24
打开的文件太多(Too many open files)
错误返回码:25
不适当的设备ioctl使用(Inappropriate ioctl for device)
错误返回码:26
文本文件忙(Text file busy)
错误返回码:27
文件太大(File too large)
错误返回码:28
设备上没有空间(No space left on device)
错误返回码:29
非法搜索(Illegal seek)
错误返回码:30
只读文件系统(Read-only file system)
错误返回码:31
链接过多(Too many links)
错误返回码:32
管道破裂(Broken pipe)
错误返回码:33
超出域的数值参数(Numerical argument out of domain)
错误返回码:34
数值结果超出范围(Numerical result out of range)
错误返回码:35
避免资源死锁(Resource deadlock avoided)
错误返回码:36
文件名太长(File name too long)
错误返回码:37
没有可用锁(No locks available)
错误返回码:38
功能没有实现(Function not implemented)
错误返回码:39
目录非空(Directory not empty)
错误返回码:40
符号链接层次太多(Too many levels of symbolic links)
错误返回码:41
未知错误(Unknown error)
错误返回码:42
不被接受的消息类型(No message of desired type)
错误返回码:43
标识符删除(Identifier removed)
错误返回码:44
通道数目超出范围(Channel number out of range)
错误返回码:45
2级不同步(Level 2 not synchronized)
错误返回码:46
3级终止(Level 3 halted)
错误返回码:47
3级复位(Level 3 reset)
错误返回码:48
链接数超出范围(Link number out of range)
错误返回码:49
协议驱动程序没有连接(Protocol driver not attached)
错误返回码:50
没有可用的CSI结构(No CSI structure available)
错误返回码:51
2级中断(Level 2 halted)
错误返回码:52
无效的交换(Invalid exchange)
错误返回码:53
无效的请求描述符(Invalid request descriptor)
错误返回码:54
交换空间满(Exchange full)
错误返回码:55
anode 不存在(No anode)
错误返回码:56
无效的请求代码(Invalid request code)
错误返回码:57
无效的槽(Invalid slot)
错误返回码:58
未知的错误(Unknown error)
错误返回码:59
错误的字体文件格式(Bad font file format)
错误返回码:60
设备不属于流类型(Device not a stream)
错误返回码:61
无可用数据(No data available)
错误返回码:62
超时(Timer expired)
错误返回码:63
超出流资源范围(Out of streams resources)
错误返回码:64
主机不在网络上(Machine is not on the network)
错误返回码:65
软件包没有安装(Package not installed)
错误返回码:66
对象是远程的(Object is remote)
错误返回码:67
链接被切断(Link has been severed)
错误返回码:68
通知错误(Advertise error)
错误返回码:69
挂载错误(Srmount error)
错误返回码:70
发送数据时通讯错误(Communication error on send)
错误返回码:71
协议错误(Protocol error)
错误返回码:72
企图进行多次跳转(Multihop attempted)
错误返回码:73
RFS类型错误(RFS specific error)
错误返回码:74
坏消息(Bad message)
错误返回码:75
数值超过对于给定的数据类型(Value too large for defined data type)
错误返回码:76
主机名在网络上不是唯一(Name not unique on network)
错误返回码:77
坏状态的文件描述符(File descriptor in bad state)
错误返回码:78
远端地址改变(Remote address changed)
错误返回码:79
无法访问需要的共享库(Can not access a needed shared library)
错误返回码:80
访问了一个损坏的共享库(Accessing a corrupted shared library)
错误返回码:81
a. out文件中的.lib段损坏(.lib section in a.out corrupted)
错误返回码:82
试图链接太多的共享库(Attempting to link in too many shared libraries)
错误返回码:83
不能直接执行一个共享库(Cannot exec a shared library directly)
错误返回码:84
无效或不完整的多字节以及宽字符(Invalid or incomplete multibyte or wide character)
错误返回码:85
中断的系统调用需要重新启动(Interrupted system call should be restarted)
错误返回码:86
流管道错误(Streams pipe error)
错误返回码:87
太多用户(Too many users)
错误返回码:88
在非套接字接口进行套接字操作(Socket operation on non-socket)
错误返回码:89
需要目标地址(Destination address required)
错误返回码:90
消息太长(Message too long)
错误返回码:91
socket协议错误类型(Protocol wrong type for socket)
错误返回码:92
协议不可用(Protocol not available)
错误返回码:93
协议不支持(Protocol not supported)
错误返回码:94
socket类型不支持(Socket type not supported)
错误返回码:95
操作不支持(Operation not supported)
错误返回码:96
协议族不支持(Protocol family not supported)
错误返回码:97
协议不支持地址族(Address family not supported by protocol)
错误返回码:98
地址已在使用(Address already in use)
错误返回码:99
无法分配请求的地址(Cannot assign requested address)
错误返回码:100
网络瘫痪(Network is down)
错误返回码:101
网络不可达(Network is unreachable)
错误返回码:102
网络复位时连接丢失(Network dropped connection on reset)
错误返回码:103
软件导致连接中断(Software caused connection abort)
错误返回码:104
连接被重置(Connection reset by peer)
错误返回码:105
没有可用的缓冲空间(No buffer space available)
错误返回码:106
传输端点已连接(Transport endpoint is already connected)
错误返回码:107
运输端点没有连接上(Transport endpoint is not connected)
错误返回码:108
运输终点关闭后无法发送数据(Cannot send after transport endpoint shutdown)
错误返回码:109
引用太多:不能接合(Too many references: cannot splice)
错误返回码:110
连接超时(Connection timed out)
错误返回码:111
连接被拒绝(Connection refused)
错误返回码:112
主机已关闭(Host is down)
错误返回码:113
没有路由到主机(No route to host)
错误返回码:114
进程已运行(Operation already in progress)
错误返回码:115
正在进行操作(Operation now in progress)
错误返回码:116
陈旧的NFS文件句柄(Stale NFS file handle)
错误返回码:117
结构需要清除(Structure needs cleaning)
错误返回码:118
不是一个XENIX命名类型的文件(Not a XENIX named type file)
错误返回码:119
没有XENIX信号量可用(No XENIX semaphores available)
错误返回码:120
是一个指定类型的文件(Is a named type file)
错误返回码:121
远程输入/输出错误(Remote I/O error)
错误返回码:122
超出磁盘配额(Disk quota exceeded)
错误返回码:123
没有发现介质(No medium found)
错误返回码:124
错误的介质类型(Wrong medium type)
错误返回码:125
操作取消(Operation canceled)
错误返回码:126
所需的Key不可用(Required key not available)
错误返回码:127
Key已过期(Key has expired)
错误返回码:128
Key被撤销(Key has been revoked)
错误返回码:129
Key被拒绝服务(Key was rejected by service)
错误返回码:130
属主死亡(Owner died)
错误返回码:131
状态不可恢复(State not recoverable)