linux系统中errno与error对照表
1、使用了一个小程序输出所有的errno对应的error字符串,代码如下
|
#include <errno.h> void showError(int err) void showAllErr() int main(int argc, char * argv[]) return 0; |
2、运行上面代码,结果如下
errno : 0 , error : Success
errno : 1 , error : Operation not permitted
errno : 2 , error : No such file or directory
errno : 3 , error : No such process
errno : 4 , error : Interrupted system call
errno : 5 , error : Input/output error
errno : 6 , error : No such device or address
errno : 7 , error : Argument list too long
errno : 8 , error : Exec format error
errno : 9 , error : Bad file descriptor
errno : 10 , error : No child processes
errno : 11 , error : Resource temporarily unavailable
errno : 12 , error : Cannot allocate memory
errno : 13 , error : Permission denied
errno : 14 , error : Bad address
errno : 15 , error : Block device required
errno : 16 , error : Device or resource busy
errno : 17 , error : File exists
errno : 18 , error : Invalid cross-device link
errno : 19 , error : No such device
errno : 20 , error : Not a directory
errno : 21 , error : Is a directory
errno : 22 , error : Invalid argument
errno : 23 , error : Too many open files in system
errno : 24 , error : Too many open files
errno : 25 , error : Inappropriate ioctl for device
errno : 26 , error : Text file busy
errno : 27 , error : File too large
errno : 28 , error : No space left on device
errno : 29 , error : Illegal seek
errno : 30 , error : Read-only file system
errno : 31 , error : Too many links
errno : 32 , error : Broken pipe
errno : 33 , error : Numerical argument out of domain
errno : 34 , error : Numerical result out of range
errno : 35 , error : Resource deadlock avoided
errno : 36 , error : File name too long
errno : 37 , error : No locks available
errno : 38 , error : Function not implemented
errno : 39 , error : Directory not empty
errno : 40 , error : Too many levels of symbolic links
errno : 41 , error : Unknown error 41
errno : 42 , error : No message of desired type
errno : 43 , error : Identifier removed
errno : 44 , error : Channel number out of range
errno : 45 , error : Level 2 not synchronized
errno : 46 , error : Level 3 halted
errno : 47 , error : Level 3 reset
errno : 48 , error : Link number out of range
errno : 49 , error : Protocol driver not attached
errno : 50 , error : No CSI structure available
errno : 51 , error : Level 2 halted
errno : 52 , error : Invalid exchange
errno : 53 , error : Invalid request descriptor
errno : 54 , error : Exchange full
errno : 55 , error : No anode
errno : 56 , error : Invalid request code
errno : 57 , error : Invalid slot
errno : 58 , error : Unknown error 58
errno : 59 , error : Bad font file format
errno : 60 , error : Device not a stream
errno : 61 , error : No data available
errno : 62 , error : Timer expired
errno : 63 , error : Out of streams resources
errno : 64 , error : Machine is not on the network
errno : 65 , error : Package not installed
errno : 66 , error : Object is remote
errno : 67 , error : Link has been severed
errno : 68 , error : Advertise error
errno : 69 , error : Srmount error
errno : 70 , error : Communication error on send
errno : 71 , error : Protocol error
errno : 72 , error : Multihop attempted
errno : 73 , error : RFS specific error
errno : 74 , error : Bad message
errno : 75 , error : Value too large for defined data type
errno : 76 , error : Name not unique on network
errno : 77 , error : File descriptor in bad state
errno : 78 , error : Remote address changed
errno : 79 , error : Can not access a needed shared library
errno : 80 , error : Accessing a corrupted shared library
errno : 81 , error : .lib section in a.out corrupted
errno : 82 , error : Attempting to link in too many shared libraries
errno : 83 , error : Cannot exec a shared library directly
errno : 84 , error : Invalid or incomplete multibyte or wide character
errno : 85 , error : Interrupted system call should be restarted
errno : 86 , error : Streams pipe error
errno : 87 , error : Too many users
errno : 88 , error : Socket operation on non-socket
errno : 89 , error : Destination address required
errno : 90 , error : Message too long
errno : 91 , error : Protocol wrong type for socket
errno : 92 , error : Protocol not available
errno : 93 , error : Protocol not supported
errno : 94 , error : Socket type not supported
errno : 95 , error : Operation not supported
errno : 96 , error : Protocol family not supported
errno : 97 , error : Address family not supported by protocol
errno : 98 , error : Address already in use
errno : 99 , error : Cannot assign requested address
errno : 100 , error : Network is down
errno : 101 , error : Network is unreachable
errno : 102 , error : Network dropped connection on reset
errno : 103 , error : Software caused connection abort
errno : 104 , error : Connection reset by peer
errno : 105 , error : No buffer space available
errno : 106 , error : Transport endpoint is already connected
errno : 107 , error : Transport endpoint is not connected
errno : 108 , error : Cannot send after transport endpoint shutdown
errno : 109 , error : Too many references: cannot splice
errno : 110 , error : Connection timed out
errno : 111 , error : Connection refused
errno : 112 , error : Host is down
errno : 113 , error : No route to host
errno : 114 , error : Operation already in progress
errno : 115 , error : Operation now in progress
errno : 116 , error : Stale file handle
errno : 117 , error : Structure needs cleaning
errno : 118 , error : Not a XENIX named type file
errno : 119 , error : No XENIX semaphores available
errno : 120 , error : Is a named type file
errno : 121 , error : Remote I/O error
errno : 122 , error : Disk quota exceeded
errno : 123 , error : No medium found
errno : 124 , error : Wrong medium type
errno : 125 , error : Operation canceled
errno : 126 , error : Required key not available
errno : 127 , error : Key has expired
errno : 128 , error : Key has been revoked
errno : 129 , error : Key was rejected by service
errno : 130 , error : Owner died
errno : 131 , error : State not recoverable
errno : 132 , error : Operation not possible due to RF-kill
errno : 133 , error : Unknown error 133
.
.
.
errno : 255 , error : Unknown error 255
当errno到达134的时候就没有错误了~
linux系统中errno与error对照表的更多相关文章
- Linux系统中errno对应的中文意思 errno.h
/usr/include/asm/errno.h #define EPERM 1 /* Operation not permitted */操作不允许 #define ENOENT 2 /* No s ...
- LINUX系统中动态链接库的创建与使用
大家都知道,在WINDOWS系统中有很多的动态链接库(以.DLL为后缀的文件,DLL即Dynamic Link Library).这种动态链接库,和静态函数库不同,它里面的函数并不是执行程序本身的一部 ...
- LINUX系统中动态链接库的创建与使用{补充}
大家都知道,在WINDOWS系统中有很多的动态链接库(以.DLL为后缀的文件,DLL即Dynamic Link Library).这种动态链接库,和静态函数库不同,它里面的函数并不是执行程序本身的一部 ...
- 在 Linux 系统中安装Load Generator ,并在windows 调用方法
在 Linux 系统中安装Load Generator ,并在windows 调用 由于公司需要测试系统的最大用户承受能力,所以需要学习使用loadrunner.在安装的时候碰到了不少问题,所以写下此 ...
- 在 Linux 系统中安装Load Generator ,并在windows 调用
原文地址:http://www.blogjava.net/qileilove/archive/2012/03/14/371861.html 由于公司需要测试系统的最大用户承受能力,所以需要学习使用lo ...
- (转)浅谈 Linux 系统中的 SNMP Trap
原文:https://www.ibm.com/developerworks/cn/linux/l-cn-snmp/index.html 简介 本文讲解 SNMP Trap,在介绍 Trap 概念之前, ...
- 【OS_Linux】Linux系统中目录及文件管理
1.Linux系统中目录的树状结构 目录 /bin 存放二进制可执行文件(ls,cat,mkdir等),常用命令一般都在这里. /etc 存放系统管理和配置文件 /home 存放所有用户文件的根目录, ...
- linux系统中的一些典型问题汇总
一.文件系统破坏导致系统无法启动:Checking root filesystem/dev/sda6 contains a file system with errors,check forcedAn ...
- 【Docker】在Linux系统中安装Docker虚拟机、启动停止重启查看Docker命令
安装Docker 文章目录 安装Docker Docker虚拟机架构 在Linux系统中安装Docker虚拟机 管理Docker虚拟机 参考资料 Docker虚拟机架构 Docker创建的所有虚拟实例 ...
随机推荐
- Git学习笔记 git revert
我们难免会因为种种原因执行一些错误的commit / push,git提供了revert命令帮助程序员修复这样的错误. 举个例子,下图是git commit 的历史记录 git revert 命令会通 ...
- OS X thrift setup
OS X Setup The following command install all the required tools and libraries to build and install t ...
- mysql编译时报的一个警告warning: type-punning to incomplete type might break strict-aliasing rules,可能是bug
cmake的时候报了一个警告: /softdb/mysql-5.5.37/storage/innobase/handler/ha_innodb.cc:11870: warning: type-punn ...
- C语言判断文件是否存在(转)
int access(const char *filename, int amode); amode参数为0时表示检查文件的存在性,如果文件存在,返回0,不存在,返回-1. 这个函 ...
- linux下java环境配置
非常简单的三行命令就搞定了! $ sudo add-apt-repository ppa:webupd8team/java$ sudo apt-get update$ sudo apt-get ins ...
- java导出word的6种方式(复制来的文章)
来自: http://www.cnblogs.com/lcngu/p/5247179.html 最近做的项目,需要将一些信息导出到word中.在网上找了好多解决方案,现在将这几天的总结分享一下. 目前 ...
- Linux内核装载和启动一个可执行程序
“平安的祝福 + 原创作品转载请注明出处 + <Linux内核分析>MOOC课程http://mooc.study.163.com/course/USTC-1000029000 ” 理解编 ...
- 初识WCF
以前,总是说自己的基础知识不牢靠,就是因为自己总是不总结.昨天,学费交了,顿时感觉不一样了,心里有劲也有力了,知道了以前的自己到底为什么会那样了,因为没有压力. --题记 我参加过浩哥的招标项目,参加 ...
- 网页细分图结果分析(Web Page Diagnostics)
Discuz开源论坛网页细分图结果分析(Web Page Diagnostics) 续LR实战之Discuz开源论坛项目,之前一直是创建虚拟用户脚本(Virtual User Generator)和场 ...
- Android性能优化之布局优化
最新最准确内容建议直接访问原文:Android性能优化之布局优化 本文为Android性能优化的第二篇——布局优化,主要介绍使用抽象布局标签(include, viewstub, merge).去除不 ...