Chinaunix首页 | 论坛 | 博客
  • 博客访问: 570860
  • 博文数量: 61
  • 博客积分: 2438
  • 博客等级: 大尉
  • 技术积分: 871
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-28 08:04
文章分类
文章存档

2013年(1)

2012年(8)

2011年(15)

2010年(37)

分类: LINUX

2010-12-04 22:34:12

遇到了一些错误号,有时要查阅有关文档去找对应的错误对照表,现整理一份:
error 0 is Success
error 1 is Operation not permitted
error 2 is No such file or directory
error 3 is No such process
error 4 is Interrupted system call
error 5 is Input/output error
error 6 is No such device or address
error 7 is Argument list too long
error 8 is Exec format error
error 9 is Bad file descriptor
error 10 is No child processes
error 11 is Resource temporarily unavailable
error 12 is Cannot allocate memory
error 13 is Permission denied
error 14 is Bad address
error 15 is Block device required
error 16 is Device or resource busy
error 17 is File exists
error 18 is Invalid cross-device link
error 19 is No such device
error 20 is Not a directory
error 21 is Is a directory
error 22 is Invalid argument
error 23 is Too many open files in system
error 24 is Too many open files
error 25 is Inappropriate ioctl for device
error 26 is Text file busy
error 27 is File too large
error 28 is No space left on device
error 29 is Illegal seek
error 30 is Read-only file system
error 31 is Too many links
error 32 is Broken pipe
error 33 is Numerical argument out of domain
error 34 is Numerical result out of range
error 35 is Resource deadlock avoided
error 36 is File name too long
error 37 is No locks available
error 38 is Function not implemented
error 39 is Directory not empty
error 40 is Too many levels of symbolic links
error 41 is Unknown error 41
error 42 is No message of desired type
error 43 is Identifier removed
error 44 is Channel number out of range
error 45 is Level 2 not synchronized
error 46 is Level 3 halted
error 47 is Level 3 reset
error 48 is Link number out of range
error 49 is Protocol driver not attached
error 50 is No CSI structure available
error 51 is Level 2 halted
error 52 is Invalid exchange
error 53 is Invalid request descriptor
error 54 is Exchange full
error 55 is No anode
error 56 is Invalid request code
error 57 is Invalid slot
error 58 is Unknown error 58
error 59 is Bad font file format
error 60 is Device not a stream
error 61 is No data available
error 62 is Timer expired
error 63 is Out of streams resources
error 64 is Machine is not on the network
error 65 is Package not installed
error 66 is Object is remote
error 67 is Link has been severed
error 68 is Advertise error
error 69 is Srmount error
error 70 is Communication error on send
error 71 is Protocol error
error 72 is Multihop attempted
error 73 is RFS specific error
error 74 is Bad message
error 75 is Value too large for defined data type
error 76 is Name not unique on network
error 77 is File descriptor in bad state
error 78 is Remote address changed
error 79 is Can not access a needed shared library
error 80 is Accessing a corrupted shared library
error 81 is .lib section in a.out corrupted
error 82 is Attempting to link in too many shared libraries
error 83 is Cannot exec a shared library directly
error 84 is Invalid or incomplete multibyte or wide character
error 85 is Interrupted system call should be restarted
error 86 is Streams pipe error
error 87 is Too many users
error 88 is Socket operation on non-socket
error 89 is Destination address required
error 90 is Message too long
error 91 is Protocol wrong type for socket
error 92 is Protocol not available
error 93 is Protocol not supported
error 94 is Socket type not supported
error 95 is Operation not supported
error 96 is Protocol family not supported
error 97 is Address family not supported by protocol
error 98 is Address already in use
error 99 is Cannot assign requested address
error 100 is Network is down
error 101 is Network is unreachable
error 102 is Network dropped connection on reset
error 103 is Software caused connection abort
error 104 is Connection reset by peer
error 105 is No buffer space available
error 106 is Transport endpoint is already connected
error 107 is Transport endpoint is not connected
error 108 is Cannot send after transport endpoint shutdown
error 109 is Too many references: cannot splice
error 110 is Connection timed out
error 111 is Connection refused
error 112 is Host is down
error 113 is No route to host
error 114 is Operation already in progress
error 115 is Operation now in progress
error 116 is Stale NFS file handle
error 117 is Structure needs cleaning
error 118 is Not a XENIX named type file
error 119 is No XENIX semaphores available
error 120 is Is a named type file
error 121 is Remote I/O error
error 122 is Disk quota exceeded
error 123 is No medium found
error 124 is Wrong medium type
error 125 is Operation canceled
error 126 is Required key not available
error 127 is Key has expired
error 128 is Key has been revoked
error 129 is Key was rejected by service
error 130 is Owner died
error 131 is State not recoverable

我是通过下面的函数获得的结果:

//filename: strerror.c


#include <stdio.h>
#include <string.h>
#include <errno.h>

int main(void)
{
    int i = 0;

    while( i < 132 ) {
        printf( "error %d is %s\n", i, strerror( i ) );
        i++;
    }

    return 0;
}


可能有不全的地方,欢迎指教!
阅读(2349) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~