1、使用了一个小程序输出所有的errno对应的error字符串,代码如下

#include <errno.h>

void showError(int err)
{
  printf("errno : %5d , error : %s\n", err, strerror(err));
}

void showAllErr() 
{
  int i = 0; 
  for(;i < 256; i++)
  {
    showError(i);
  }
}

int main(int argc, char * argv[])
{
  showAllErr();

  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对照表的更多相关文章

  1. Linux系统中errno对应的中文意思 errno.h

    /usr/include/asm/errno.h #define EPERM 1 /* Operation not permitted */操作不允许 #define ENOENT 2 /* No s ...

  2. LINUX系统中动态链接库的创建与使用

    大家都知道,在WINDOWS系统中有很多的动态链接库(以.DLL为后缀的文件,DLL即Dynamic Link Library).这种动态链接库,和静态函数库不同,它里面的函数并不是执行程序本身的一部 ...

  3. LINUX系统中动态链接库的创建与使用{补充}

    大家都知道,在WINDOWS系统中有很多的动态链接库(以.DLL为后缀的文件,DLL即Dynamic Link Library).这种动态链接库,和静态函数库不同,它里面的函数并不是执行程序本身的一部 ...

  4. 在 Linux 系统中安装Load Generator ,并在windows 调用方法

    在 Linux 系统中安装Load Generator ,并在windows 调用 由于公司需要测试系统的最大用户承受能力,所以需要学习使用loadrunner.在安装的时候碰到了不少问题,所以写下此 ...

  5. 在 Linux 系统中安装Load Generator ,并在windows 调用

    原文地址:http://www.blogjava.net/qileilove/archive/2012/03/14/371861.html 由于公司需要测试系统的最大用户承受能力,所以需要学习使用lo ...

  6. (转)浅谈 Linux 系统中的 SNMP Trap

    原文:https://www.ibm.com/developerworks/cn/linux/l-cn-snmp/index.html 简介 本文讲解 SNMP Trap,在介绍 Trap 概念之前, ...

  7. 【OS_Linux】Linux系统中目录及文件管理

    1.Linux系统中目录的树状结构 目录 /bin 存放二进制可执行文件(ls,cat,mkdir等),常用命令一般都在这里. /etc 存放系统管理和配置文件 /home 存放所有用户文件的根目录, ...

  8. linux系统中的一些典型问题汇总

    一.文件系统破坏导致系统无法启动:Checking root filesystem/dev/sda6 contains a file system with errors,check forcedAn ...

  9. 【Docker】在Linux系统中安装Docker虚拟机、启动停止重启查看Docker命令

    安装Docker 文章目录 安装Docker Docker虚拟机架构 在Linux系统中安装Docker虚拟机 管理Docker虚拟机 参考资料 Docker虚拟机架构 Docker创建的所有虚拟实例 ...

随机推荐

  1. 攻城狮在路上(叁)Linux(十四)--- 查阅文件内容

    常用命令:cat.tac.nl.more.less.head.tail.od... 一.直接查看文件内容:cat.tac.nl <==一次性全部读取 1.cat [-AbEnTv] 文件名 参数 ...

  2. 攻城狮在路上(贰) Spring(二)--- Spring IoC概念介绍

    一.IoC的概念: IoC(控制反转)是Spring容器的核心.另一种解释是DI(依赖注入),即让调用类对某一个接口的依赖关系由第三方注入,以移除调用类对某一个接口实现类的一览. 定义如此,由此可见, ...

  3. AndroidStudio创建新项目报错

    创建新项目自动执行时报错: Failed to import new Gradle project: failed to find Build Tools revision 17.0.0 Consul ...

  4. 配置ogg目录索引-oracle与mysql的双向同步步骤

    以下几篇文章描述了利用ogg对oracle与mysql进行双向同步的配置过程以及注意事项,欢迎参考. 配置ogg异构oracle-mysql(1)基础环境配置 http://www.cnblogs.c ...

  5. 1.ok6410移植bootloader,移植u-boot,学习u-boot命令

    ok6410移植u-boot 既然是移植u-boot当然首先需要u-boot源码,这里的u-boot代码是由国嵌提供的. 一.配置编译u-boot A. 解压 u-boot 压缩文件 B. 进入解压生 ...

  6. Activity有四种加载模式(转)

    Activity有四种加载模式: standard singleTop singleTask singleInstance 在多Activity开发中,有可能是自己应用之间的Activity跳转,或者 ...

  7. 在Asp.Net MVC中实现RequiredIf标签对Model中的属性进行验证

    在Asp.Net MVC中可以用继承ValidationAttribute的方式,自定制实现RequiredIf标签对Model中的属性进行验证 具体场景为:某一属性是否允许为null的验证,要根据另 ...

  8. HDU 5919 Sequence II 主席树

    Sequence II Problem Description   Mr. Frog has an integer sequence of length n, which can be denoted ...

  9. 移动 Web 开发技巧

    1.使用click会出现绑定点击区域闪一下的情况,解决:给该元素一个样式如下 -webkit-tap-highlight-color: rgba(0,0,0,0); 2.用iphone或ipad浏览很 ...

  10. 《大话》之 策略模式 Vs 状态模式

    一.简介: 策略模式: 背景:商店要打折销售,各种版本的销售方式,让小菜心烦意乱 内容:    定义算法家族,分别封装起来,让他们之间可以户型替换,此模式让算法的变化,不会影响到使用算法的用户. 图文 ...