linux错误码大全

合集下载

linux编程中会出现的错误

linux编程中会出现的错误

linux编程中会出现的错误1、错误提示1.ERROR: Kernel configuration is invalid.2. include/linux/autoconf.h or include/config/auto.conf aremissing.3. Run 'make oldconfig && make prepare' on kernel src to fix it.解决方法在自己的linux内核目录下运行make oldconfig && make prepare2、错误提示挂载时会报错“permission denied“解决方法这一步“服务器端在文件/etc/exports中设定允许被访问的文件、目录以及访问的权限”修改/etc/exports 文件,添加如下内容/opt/nfs *(rw,sync,no_root_squash,no_all_squash)(不同的人可能挂在的目录不同)运行以下命令启动nfs 服务:Host #/usr/sbin/exportfs –aHost #/sbin/service nfs restart3、错误提示mach/regs-gpio.h 找不到这个文件解决方法利用make menuconfig将内核CPU版本配成S3C2410,然后make config 最后make zImage,在编译就不会有问题了。

(得出结论:要编译2410的模块驱动文件,内核源码目录必须跟其一致,也配成2410的编译源码,要是配成6410则不行。

当然编译6410的模块文件,则必须将源码目录配成6410。

)4、错误提示led_driver: version magic '2.6.30.4 mod_unload modversions ARMv4 ' should be '2.6.30.4-GTStudio mod_unload ARMv4 ' insmod: cannot insert 'led_driver.ko': invalid module format 解决方法是由于编译器的版本不同和make menuconfig 配置时,在配置单中添加如下信息General setup --->Prompt for development and/or incomplete code/drivers(-EmbedSky(填上自己的模块名称)) Local version - append to kernel release内核版本的差异导致的。

linux系统错误码大全

linux系统错误码大全

linux系统错误码⼤全#define EPERM 1 /* Operation not permitted */#define ENOENT 2 /* No such file or directory */#define ESRCH 3 /* No such process */#define EINTR 4 /* Interrupted system call */#define EIO 5 /* I/O error */#define ENXIO 6 /* No such device or address */#define E2BIG 7 /* Arg list too long */#define ENOEXEC 8 /* Exec format error */#define EBADF 9 /* Bad file number */#define ECHILD 10 /* No child processes */#define EAGAIN 11 /* Try again */#define ENOMEM 12 /* Out of memory */#define EACCES 13 /* Permission denied */#define EFAULT 14 /* Bad address */#define ENOTBLK 15 /* Block device required */#define EBUSY 16 /* Device or resource busy */#define EEXIST 17 /* File exists */#define EXDEV 18 /* Cross-device link */#define ENODEV 19 /* No such device */#define ENOTDIR 20 /* Not a directory */#define EISDIR 21 /* Is a directory */#define EINVAL 22 /* Invalid argument */#define ENFILE 23 /* File table overflow */#define EMFILE 24 /* Too many open files */#define ENOTTY 25 /* Not a typewriter */#define ETXTBSY 26 /* Text file busy */#define EFBIG 27 /* File too large */#define ENOSPC 28 /* No space left on device */#define ESPIPE 29 /* Illegal seek */#define EROFS 30 /* Read-only file system */#define EMLINK 31 /* Too many links */#define EPIPE 32 /* Broken pipe */#define EDOM 33 /* Math argument out of domain of func */#define ERANGE 34 /* Math result not representable */#define EDEADLK 35 /* Resource deadlock would occur */#define ENAMETOOLONG 36 /* File name too long */#define ENOLCK 37 /* No record locks available */#define ENOSYS 38 /* Function not implemented */#define ENOTEMPTY 39 /* Directory not empty */#define ELOOP 40 /* Too many symbolic links encountered */#define EWOULDBLOCK EAGAIN /* Operation would block */#define ENOMSG 42 /* No message of desired type */#define EIDRM 43 /* Identifier removed */#define ECHRNG 44 /* Channel number out of range */#define EL2NSYNC 45 /* Level 2 not synchronized */#define EL3HLT 46 /* Level 3 halted */#define EL3RST 47 /* Level 3 reset */#define ELNRNG 48 /* Link number out of range */#define EUNATCH 49 /* Protocol driver not attached */#define ENOCSI 50 /* No CSI structure available */#define EL2HLT 51 /* Level 2 halted */#define EBADE 52 /* Invalid exchange */#define EBADR 53 /* Invalid request descriptor */#define EXFULL 54 /* Exchange full */#define ENOANO 55 /* No anode */#define EBADRQC 56 /* Invalid request code */#define EBADSLT 57 /* Invalid slot */#define EDEADLOCK EDEADLK#define EBFONT 59 /* Bad font file format */#define ENOSTR 60 /* Device not a stream */#define ENODATA 61 /* No data available */#define ETIME 62 /* Timer expired */#define ENOSR 63 /* Out of streams resources */#define ENONET 64 /* Machine is not on the network */#define ENOPKG 65 /* Package not installed */#define EREMOTE 66 /* Object is remote */#define ENOLINK 67 /* Link has been severed */#define EADV 68 /* Advertise error */#define ESRMNT 69 /* Srmount error */#define ECOMM 70 /* Communication error on send */#define EPROTO 71 /* Protocol error */#define EMULTIHOP 72 /* Multihop attempted */#define EDOTDOT 73 /* RFS specific error */#define EBADMSG 74 /* Not a data message */#define EOVERFLOW 75 /* Value too large for defined data type */#define ENOTUNIQ 76 /* Name not unique on network */#define EBADFD 77 /* File descriptor in bad state */#define EREMCHG 78 /* Remote address changed */#define ELIBACC 79 /* Can not access a needed shared library */#define ELIBBAD 80 /* Accessing a corrupted shared library */#define ELIBSCN 81 /* .lib section in a.out corrupted */#define ELIBMAX 82 /* Attempting to link in too many shared libraries */#define ELIBEXEC 83 /* Cannot exec a shared library directly */#define EILSEQ 84 /* Illegal byte sequence */#define ERESTART 85 /* Interrupted system call should be restarted */#define ESTRPIPE 86 /* Streams pipe error */#define EUSERS 87 /* Too many users */#define ENOTSOCK 88 /* Socket operation on non-socket */#define EDESTADDRREQ 89 /* Destination address required */#define EMSGSIZE 90 /* Message too long */#define EPROTOTYPE 91 /* Protocol wrong type for socket */#define ENOPROTOOPT 92 /* Protocol not available */#define EPROTONOSUPPORT 93 /* Protocol not supported */#define ESOCKTNOSUPPORT 94 /* Socket type not supported */#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ #define EPFNOSUPPORT 96 /* Protocol family not supported */#define EAFNOSUPPORT 97 /* Address family not supported by protocol */#define EADDRINUSE 98 /* Address already in use */#define EADDRNOTAVAIL 99 /* Cannot assign requested address */#define ENETDOWN 100 /* Network is down */#define ENETUNREACH 101 /* Network is unreachable */#define ENETRESET 102 /* Network dropped connection because of reset */ #define ECONNABORTED 103 /* Software caused connection abort */#define ECONNRESET 104 /* Connection reset by peer */#define ENOBUFS 105 /* No buffer space available */#define EISCONN 106 /* Transport endpoint is already connected */#define ENOTCONN 107 /* Transport endpoint is not connected */#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ #define ETOOMANYREFS 109 /* Too many references: cannot splice */#define ETIMEDOUT 110 /* Connection timed out */#define ECONNREFUSED 111 /* Connection refused */#define EHOSTDOWN 112 /* Host is down */#define EHOSTUNREACH 113 /* No route to host */#define EALREADY 114 /* Operation already in progress */#define EINPROGRESS 115 /* Operation now in progress */#define ESTALE 116 /* Stale NFS file handle */#define EUCLEAN 117 /* Structure needs cleaning */#define ENOTNAM 118 /* Not a XENIX named type file */#define ENAVAIL 119 /* No XENIX semaphores available */#define EISNAM 120 /* Is a named type file */#define EREMOTEIO 121 /* Remote I/O error */#define EDQUOT 122 /* Quota exceeded */#define ENOMEDIUM 123 /* No medium found */#define EMEDIUMTYPE 124 /* Wrong medium type */。

系统Code_error对照表

系统Code_error对照表

网上找的,号称全集,但至少是比较多的了。

和大家分享一下,方便大家查找。

(一)0 0x0000 作业完成。

10x0001 不正确的函数。

20x0002 系统找不到指定的档案。

30x0003 系统找不到指定的路径。

40x0004 系统无法开启档案。

50x0005 拒绝存取。

60x0006 无效的代码。

70x0007 储存体控制区块已毁。

80x0008 储存体空间不足,无法处理这个指令。

90x0009 储存体控制区块位址无效。

100x000A 环境不正确。

110x000B 尝试载入一个格式错误的程式。

120x000C 存取码错误。

130x000D 资料错误。

140x000E 储存体空间不够,无法完成这项作业。

150x000F 系统找不到指定的磁碟机。

160x0010 无法移除目录。

170x0011 系统无法将档案移到其他的磁碟机。

180x0012 没有任何档案。

190x0013 储存媒体为防写状态。

200x0014 系统找不到指定的装置。

210x0015 装置尚未就绪。

220x0016 装置无法识别指令。

230x0017 资料错误 (cyclic redundancy check) 24 0x0018 程式发出一个长度错误的指令。

250x0019 磁碟机在磁碟找不到持定的磁区或磁轨。

260x001A 指定的磁碟或磁片无法存取。

270x001B 磁碟机找不到要求的磁区。

280x001C 印表机没有纸。

290x001D 系统无法将资料写入指定的磁碟机。

300x001E 系统无法读取指定的装置。

310x001F 连接到系统的某个装置没有作用。

320x0020 The process cannot access the file because it is being used by another process.330x0021 档案的一部份被锁定,现在无法存取。

340x0022 磁碟机的磁片不正确。

请将 %2 (Volume Serial Number: %3) 插入磁碟机 %1。

常见的Linux系统错误码

常见的Linux系统错误码

常见的Linux系统错误码,即errorno的值1 EPERM Operation not permitted 操作不许可2 ENOENT No such file or directory 无此文件或目录3 ESRCH No such process 无此过程4 EINTR Interrupted system call 系统调用被禁止5 EIO I/O error I/O 错误6 ENXIO No such device or address 无此器件或地址7 E2BIG Arg list too long Arg 列表太长8 ENOEXEC Exec format error Exec 格式错误9 EBADF Bad file number 文件数目错误10 ECHILD No child processes 无子过程11 EAGAIN Try again 再试一遍12 ENOMEM Out of memory 内存溢出13 EACCES Permission denied 许可拒绝14 EFAULT Bad address 错误的地址15 ENOTBLK Block device required 需要块设备16 EBUSY Device or resource busy 设备或资源忙17 EEXIST File exists 文件存在18 EXDEV Cross-device link 跨器链接19 ENODEV No such device 无此设备20 ENOTDIR Not a directory 不是一个目录21 EISDIR Is a directory 是一个目录22 EINV AL Invalid argument 无效的函数自变量23 ENFILE File table overflow 文件表溢出24 EMFILE Too many open files 打开的文件太多25 ENOTTY Inappropriate ioctl for device26 ETXTBSY Text file busy 文本文件忙27 EFBIG File too large 文件太大28 ENOSPC No space left on device 磁盘空间不足29 ESPIPE Illegal seek 不合法的寻找30 EROFS Read-only file system 只读文件系统31 EMLINK Too many links 太多的链接/usr/include/asm-generic/errno-base.h#define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */#define EINTR 4 /* Interrupted system call */ #define EIO 5 /* I/O error */#define ENXIO 6 /* No such device or address */ #define E2BIG 7 /* Argument list too long */#define ENOEXEC 8 /* Exec format error */#define EBADF 9 /* Bad file number */#define ECHILD 10 /* No child processes */#define EAGAIN 11 /* Try again */#define ENOMEM 12 /* Out of memory */#define EACCES 13 /* Permission denied */#define EFAULT 14 /* Bad address */#define ENOTBLK 15 /* Block device required */#define EBUSY 16 /* Device or resource busy */ #define EEXIST 17 /* File exists */#define EXDEV 18 /* Cross-device link */#define ENODEV 19 /* No such device */#define ENOTDIR 20 /* Not a directory */#define EISDIR 21 /* Is a directory */#define EINVAL 22 /* Invalid argument */#define ENFILE 23 /* File table overflow */#define EMFILE 24 /* Too many open files */#define ENOTTY 25 /* Not a typewriter */#define ETXTBSY 26 /* Text file busy */#define EFBIG 27 /* File too large */#define ENOSPC 28 /* No space left on device */#define ESPIPE 29 /* Illegal seek */#define EROFS 30 /* Read-only file system */#define EMLINK 31 /* Too many links */#define EPIPE 32 /* Broken pipe */#define EDOM 33 /* Math argument out of domain of func */ #define ERANGE 34 /* Math result not representable *//usr/include/asm-generic/errno.h#define EDEADLK 35 /* Resource deadlock would occur */#define ENAMETOOLONG 36 /* File name too long */#define ENOLCK 37 /* No record locks available */#define ENOSYS 38 /* Function not implemented */#define ENOTEMPTY 39 /* Directory not empty */#define ELOOP 40 /* Too many symbolic links encountered */ #define EWOULDBLOCK EAGAIN /* Operation would block */#define ENOMSG 42 /* No message of desired type */#define EIDRM 43 /* Identifier removed */#define ECHRNG 44 /* Channel number out of range */#define EL2NSYNC 45 /* Level 2 not synchronized */#define EL3HLT 46 /* Level 3 halted */#define EL3RST 47 /* Level 3 reset */#define ELNRNG 48 /* Link number out of range */#define EUNATCH 49 /* Protocol driver not attached */ #define ENOCSI 50 /* No CSI structure available */#define EL2HLT 51 /* Level 2 halted */#define EBADE 52 /* Invalid exchange */#define EBADR 53 /* Invalid request descriptor */#define EXFULL 54 /* Exchange full */#define ENOANO 55 /* No anode */#define EBADRQC 56 /* Invalid request code */#define EBADSLT 57 /* Invalid slot */#define EDEADLOCK EDEADLK#define EBFONT 59 /* Bad font file format */#define ENOSTR 60 /* Device not a stream */#define ENODATA 61 /* No data available */#define ETIME 62 /* Timer expired */#define ENOSR 63 /* Out of streams resources */#define ENONET 64 /* Machine is not on the network */ #define ENOPKG 65 /* Package not installed */#define EREMOTE 66 /* Object is remote */#define ENOLINK 67 /* Link has been severed */#define EADV 68 /* Advertise error */#define ESRMNT 69 /* Srmount error */#define ECOMM 70 /* Communication error on send */#define EPROTO 71 /* Protocol error */#define EMULTIHOP 72 /* Multihop attempted */#define EDOTDOT 73 /* RFS specific error */#define EBADMSG 74 /* Not a data message */#define EOVERFLOW 75 /* Value too large for defined data type */#define ENOTUNIQ 76 /* Name not unique on network */#define EBADFD 77 /* File descriptor in bad state */#define EREMCHG 78 /* Remote address changed */#define ELIBACC 79 /* Can not access a needed shared library */#define ELIBBAD 80 /* Accessing a corrupted shared library */#define ELIBSCN 81 /* .lib section in a.out corrupted */#define ELIBMAX 82 /* Attempting to link in too many shared libraries */ #define ELIBEXEC 83 /* Cannot exec a shared library directly */#define EILSEQ 84 /* Illegal byte sequence */#define ERESTART 85 /* Interrupted system call should be restarted */#define ESTRPIPE 86 /* Streams pipe error */#define EUSERS 87 /* Too many users */#define ENOTSOCK 88 /* Socket operation on non-socket */#define EDESTADDRREQ 89 /* Destination address required */#define EMSGSIZE 90 /* Message too long */#define EPROTOTYPE 91 /* Protocol wrong type for socket */#define ENOPROTOOPT 92 /* Protocol not available */#define EPROTONOSUPPORT 93 /* Protocol not supported */#define ESOCKTNOSUPPORT 94 /* Socket type not supported */#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */#define EPFNOSUPPORT 96 /* Protocol family not supported */#define EAFNOSUPPORT 97 /* Address family not supported by protocol */ #define EADDRINUSE 98 /* Address already in use */#define EADDRNOTAVAIL 99 /* Cannot assign requested address */#define ENETDOWN 100 /* Network is down */#define ENETUNREACH 101 /* Network is unreachable */#define ENETRESET 102 /* Network dropped connection because of reset */#define ECONNABORTED 103 /* Software caused connection abort */#define ECONNRESET 104 /* Connection reset by peer */#define ENOBUFS 105 /* No buffer space available */#define EISCONN 106 /* Transport endpoint is already connected */#define ENOTCONN 107 /* Transport endpoint is not connected */#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */#define ETOOMANYREFS 109 /* Too many references: cannot splice */#define ETIMEDOUT 110 /* Connection timed out */#define ECONNREFUSED 111 /* Connection refused */#define EHOSTDOWN 112 /* Host is down */#define EHOSTUNREACH 113 /* No route to host */#define EALREADY 114 /* Operation already in progress */ #define EINPROGRESS 115 /* Operation now in progress */ #define ESTALE 116 /* Stale NFS file handle */#define EUCLEAN 117 /* Structure needs cleaning */#define ENOTNAM 118 /* Not a XENIX named type file */ #define ENAVAIL 119 /* No XENIX semaphores available */ #define EISNAM 120 /* Is a named type file */#define EREMOTEIO 121 /* Remote I/O error */#define EDQUOT 122 /* Quota exceeded */#define ENOMEDIUM 123 /* No medium found */#define EMEDIUMTYPE 124 /* Wrong medium type */#define ECANCELED 125 /* Operation Canceled */#define ENOKEY 126 /* Required key not available */#define EKEYEXPIRED 127 /* Key has expired */#define EKEYREVOKED 128 /* Key has been revoked */#define EKEYREJECTED 129 /* Key was rejected by service */ /* for robust mutexes */#define EOWNERDEAD 130 /* Owner died */#define ENOTRECOVERABLE 131 /* State not recoverable */。

Linuxerrno错误对照表

Linuxerrno错误对照表

Linuxerrno错误对照表errno 在<errno.h> 中定义,错误Exx 的宏定义在/usr/include/asm-generic 文件夹下面的 errno-base.h 和errno.h,分别定义了 1-34 、35-132 的错误定义。

strerror() 函数依据 errno 值返回错误描述字符串,下面程序打印对照表:[cpp] view plain copy1.#include <errno.h>2.#include <string.h>3.#include <stdio.h>4.5.int main()6.{7.int i;8.for(i = 0; i < 140; ++i)9.{10.errno = i;11.printf("errno %d :\t\t%s\n",i,strerror(errno));12.}13.return 0;14.}错误对照表:errno0 : Successerrno1 : Operation not permittederrno2 : No such file or directoryerrno3 : No such processerrno4 : Interrupted system callerrno5 : Input/output errorerrno6 : No such device or addresserrno7 : Argument list too longerrno8 : Exec format errorerrno9 : Bad file descriptorerrno10 : No child processeserrno11 : Resource temporarily unavailable errno12 : Cannot allocate memoryerrno13 : Permission deniederrno14 : Bad addresserrno15 : Block device requirederrno16 : Device or resource busyerrno17 : File existserrno18 : Invalid cross-device linkerrno19 : No such deviceerrno20 : Not a directoryerrno21 : Is a directoryerrno22 : Invalid argumenterrno23 : Too many open files in system errno24 : Too many open fileserrno25 : Inappropriate ioctl for device errno26 : Text file busyerrno27 : File too largeerrno28 : No space left on deviceerrno29 : Illegal seekerrno30 : Read-only file systemerrno31 : Too many linkserrno32 : Broken pipeerrno33 : Numerical argument out of domain errno34 : Numerical result out of range errno35 : Resource deadlock avoidederrno36 : File name too longerrno37 : No locks availableerrno38 : Function not implemented errno39 : Directory not emptyerrno40 : Too many levels of symbolic links errno41 : Unknown error 41errno42 : No message of desired type errno43 : Identifier removederrno44 : Channel number out of range errno45 : Level 2 not synchronizederrno46 : Level 3 haltederrno47 : Level 3 reseterrno48 : Link number out of rangeerrno49 : Protocol driver not attached errno50 : No CSI structure availableerrno51 : Level 2 haltederrno52 : Invalid exchangeerrno53 : Invalid request descriptorerrno54 : Exchange fullerrno55 : No anodeerrno56 : Invalid request codeerrno57 : Invalid sloterrno58 : Unknown error 58errno59 : Bad font file formaterrno60 : Device not a streamerrno61 : No data availableerrno62 : Timer expirederrno63 : Out of streams resourceserrno64 : Machine is not on the network errno65 : Package not installederrno66 : Object is remoteerrno67 : Link has been severederrno68 : Advertise errorerrno69 : Srmount errorerrno70 : Communication error on senderrno71 : Protocol errorerrno72 : Multihop attemptederrno73 : RFS specific errorerrno74 : Bad messageerrno75 : Value too large for defined datatypeerrno76 : Name not unique on networkerrno77 : File descriptor in bad stateerrno78 : Remote address changederrno79 : Can not access a needed sharedlibraryerrno80 : Accessing a corrupted sharedlibraryerrno81 : .lib section in a.out corruptederrno82 : Attempting to link in too manyshared libraries errno83 : Cannot exec a shared librarydirectlyerrno84 : Invalid or incomplete multibyte orwide character errno85 : Interrupted system call should berestarted errno86 : Streams pipe errorerrno87 : Too many userserrno88 : Socket operation on non-socketerrno89 : Destinationaddress requirederrno90 : Message too longerrno91 : Protocol wrong type for socketerrno92 : Protocol not availableerrno93 : Protocol not supportederrno94 : Socket type not supportederrno95 : Operation not supportederrno96 : Protocol family not supportederrno97 : Address family not supported byprotocol errno98 : Address already in useerrno99 : Cannot assign requested addresserrno100 : Network is downerrno101 : Network is unreachableerrno102 : Network dropped connection onreseterrno103 : Software caused connection aborterrno104 : Connection reset by peererrno105 : No buffer space availableerrno106 : Transport endpoint is alreadyconnectederrno107 : Transport endpoint is notconnectederrno108 : Cannot send after transportendpoint shutdown errno109 : Too many references: cannot spliceerrno110 : Connection timed outerrno111 : Connection refusederrno112 : Host is downerrno113 : No route to hosterrno114 : Operation already in progresserrno115 : Operation now in progresserrno116 : Stale NFS file handleerrno117 : Structure needs cleaningerrno118 : Not a XENIX named type fileerrno119 : No XENIX semaphores availableerrno120 : Is a named type fileerrno121 : Remote I/O errorerrno122 : Disk quota exceedederrno123 : No medium founderrno124 : Wrong medium typeerrno125 : Operation cancelederrno126 : Required key not availableerrno127 : Key has expirederrno128 : Key has been revokederrno129 : Key was rejected by serviceerrno130 : Owner diederrno131 : State not recoverableerrno132 : Operation not possible due toRF-killerrno133 : Unknown error 133errno134 : Unknown error 134errno135 : Unknown error 135errno136 : Unknown error 136errno137 : Unknown error 137errno138 : Unknown error 138errno139 : Unknown error 139由上可见Linux对错误宏的定义。

Linux错误码大全(建议收藏)

Linux错误码大全(建议收藏)

Linux错误码大全(建议收藏)Linux错误码大全查看错误代码errno是调试程序的一个重要方法。

当linuc C api 函数发生异常时,一般会将errno变量(需include errno.h)赋一个整数值,不同的值表示不同的含义,可以通过查看该值推测出错的原因。

在实际编程中用这一招解决了不少原本看来莫名其妙的问题。

比较麻烦的是每次都要去linux源代码里面查找错误代码的含义,现在把它贴出来,以后需要查时就来这里看了。

1-34号错误号是在内核源码的include/asm-generic/errno-base.h定义35-132则是在include/asm-generic/errno.h中定义剩下还有一些更大的错误号是留给内核级别的,如系统调用等,用户程序一般是看不见的这些号的,Ubuntu9.10中/usr/src/linux-headers-2.6.31-21-generic/include/linux/errno.h#ifndef _ASM_GENERIC_ERRNO_BASE_H#define _ASM_GENERIC_ERRNO_BASE_H#define EPERM 1 /*Operation not permitted */ #define ENOENT 2 /*No such file or directory */ #define ESRCH 3 /*No such process */#define EINTR 4 /*Interrupted system call */ #define EIO 5 /*I/O error */#define ENXIO 6 /*No such device or address */ #define E2BIG 7 /*Argument list too long */ #define ENOEXEC 8 /*Exec format error */ #define EBADF 9 /*Bad file number */ #define ECHILD 10 /*No child processes */ #define EAGAIN 11 /*Try again */#define ENOMEM 12 /*Out of memory */#define EACCES 13 /*Permission denied */ #define EFAULT14 /*Bad address */#define ENOTBLK 15 /*Block device required */ #define EBUSY16 /*Device or resource busy */ #define EEXIST 17 /*File exists */#define EXDEV 18 /*Cross-device link */#define ENODEV 19 /*No such device */#define ENOTDIR 20 /*Not a directory */#define EISDIR 21 /*Is a directory */#define EINVAL 22 /*Invalid argument */#define ENFILE 23 /*File table overflow */#define EMFILE 24 /*Too many open files */#define ENOTTY 25 /*Not a typewriter */#define ETXTBSY 26 /*Text file busy */#define EFBIG 27 /*File too large */#define ENOSPC 28 /*No space left on device */ #define ESPIPE 29 /*Illegal seek */#define EROFS 30 /*Read-only file system */#define EMLINK 31 /*Too many links */#define EPIPE 32 /*Broken pipe */#define EDOM 33 /*Math argument out of domain of func */#define ERANGE 34 /*Math result not representable */#endif#include#define EDEADLK 35 /*Resource deadlock would occur */ #define ENAMETOOLONG 36 /*File name too long */ #define ENOLCK 37 /*No record locks available */ #define ENOSYS 38 /*Function not implemented */ #define ENOTEMPTY 39 /*Directory not empty */#define ELOOP 40 /*Too many symbolic links encountered */#define EWOULDBLOCK EAGAIN /*Operation would block */ #define ENOMSG 42 /*No message of desired type */ #define EIDRM 43 /*Identifier removed */#define ECHRNG 44 /*Channel number out of range */ #define EL2NSYNC 45 /*Level 2 not synchronized */ #define EL3HLT 46 /*Level 3 halted */#define EL3RST 47 /*Level 3 reset */#define ELNRNG 48 /*Link number out of range */#define EUNATCH 49 /*Protocol driver not attached */ #define ENOCSI 50 /*No CSI structure available */ #define EL2HLT 51 /*Level 2 halted */#define EBADE 52 /*Invalid exchange */#define EBADR 53 /*Invalid request descriptor */ #define EXFULL 54 /*Exchange full */#define ENOANO 55 /*No anode */#define EBADRQC 56 /*Invalid request code */ #define EBADSLT 57 /*Invalid slot */#define EDEADLOCK EDEADLK#define EBFONT 59 /*Bad font file format */#define ENOSTR 60 /*Device not a stream */#define ENODATA 61 /*No data available */#define ETIME 62 /*Timer expired */#define ENOSR 63 /*Out of streams resources */#define ENONET 64 /*Machine is not on the network */ #define ENOPKG 65 /*Package not installed */ #define EREMOTE 66 /*Object is remote */#define ENOLINK 67 /*Link has been severed */ #define EADV 68 /*Advertise error */#define ESRMNT 69 /*Srmount error */#define ECOMM 70 /*Communication error on send */ #define EPROTO 71 /*Protocol error */#define EMULTIHOP 72 /*Multihop attempted */#define EDOTDOT 73 /*RFS specific error */#define EBADMSG 74 /*Not a data message */#define EOVERFLOW 75 /*Value too large for defined data type */#define ENOTUNIQ 76 /*Name not unique on network */ #define EBADFD 77 /*File descriptor in bad state */ #define EREMCHG 78 /*Remote address changed */ #define ELIBACC 79 /*Can not access a needed shared library */#define ELIBBAD 80 /*Accessing a corrupted shared library */ #define ELIBSCN 81 /* .lib section in a.out corrupted */ #define ELIBMAX 82 /*Attempting to link in too many shared libraries */#define ELIBEXEC 83 /*Cannot exec a shared library directly */ #define EILSEQ 84 /*Illegal byte sequence */#define ERESTART 85 /*Interrupted system call should be restarted */#define ESTRPIPE 86 /*Streams pipe error */#define EUSERS 87 /*Too many users */#define ENOTSOCK 88 /*Socket operation on non-socket */#define EDESTADDRREQ 89 /*Destination address required */ #define EMSGSIZE 90 /*Message too long */#define EPROTOTYPE 91 /*Protocol wrong type for socket */ #define ENOPROTOOPT 92 /*Protocol not available */ #define EPROTONOSUPPORT 93 /*Protocol not supported */ #define ESOCKTNOSUPPORT 94 /*Socket type notsupported */ #define EOPNOTSUPP 95 /*Operation not supported on transport endpoint */#define EPFNOSUPPORT 96 /*Protocol family not supported */ #define EAFNOSUPPORT 97 /*Address family not supported by protocol */#define EADDRINUSE 98 /*Address already in use */#define EADDRNOTAVAIL 99 /*Cannot assign requested address */#define ENETDOWN 100 /*Network is down */#define ENETUNREACH 101 /*Network is unreachable */ #define ENETRESET 102 /*Network dropped connection because of reset */#define ECONNABORTED 103 /*Software caused connection abort */#define ECONNRESET 104 /*Connection reset by peer */ #define ENOBUFS 105 /*No buffer space available */ #define EISCONN 106 /*Transport endpoint is already connected */#define ENOTCONN 107 /*Transport endpoint is not connected */#define ESHUTDOWN 108 /*Cannot send after transport endpoint shutdown */#define ETOOMANYREFS 109 /*T oo many references: cannot splice */#define ETIMEDOUT 110 /*Connection timed out */#define ECONNREFUSED 111 /*Connection refused */ #define EHOSTDOWN 112 /*Host is down */#define EHOSTUNREACH 113 /*No route to host */#define EALREADY 114 /*Operation already in progress */ #define EINPROGRESS 115 /*Operation now in progress */#define ESTALE 116 /*Stale NFS file handle */ #define EUCLEAN 117 /*Structure needs cleaning */ #define ENOTNAM 118 /*Not a XENIX named type file */ #define ENAVAIL 119 /*No XENIX semaphores available */ #define EISNAM 120 /*Is a named type file */ #define EREMOTEIO 121 /*Remote I/O error */#define EDQUOT 122 /*Quota exceeded */#define ENOMEDIUM 123 /*No medium found */#define EMEDIUMTYPE 124 /*Wrong medium type *#define ECANCELED 125 / *操作已取消*/#define ENOKEY 126 / *必需的密钥不可用*/ #define EKEYEXPIRED 127 / *密钥已过期*/#define EKEYREVOKED 128 / *密钥已被撤销*/#define EKEYREJECTED 129 / *密钥被服务拒绝*// *用于强大的互斥体*/#define EOWNERDEAD 130 / *所有者死亡*/#define ENOTRECOVERABLE 131 / *状态不可恢复*/#define ERFKILL 132 / *由于射频杀死*/#ifdef __KERNEL__/ **用户程序切勿看到这些内容。

错误代码列表及说明

错误代码列表及说明

错误代码列表及说明错误代码1HTTP/1.1 300 Multiple Choices5HTTP/1.1 400 Bad Request6HTTP/1.1 401 Unauthorized7HTTP/1.1 402 Payment Required8HTTP/1.1 403 Forbidden9HTTP/1.1 404 Not Found10HTTP/1.1 405 Method Not Allowed11HTTP/1.1 406 Not Acceptable12HTTP/1.1 407 Proxy Authentication Required 13HTTP/1.1 408 Request Time-out14HTTP/1.1 409 Conflict15HTTP/1.1 410 Gone16HTTP/1.1 411 Length Required17HTTP/1.1 412 Precondition Failed18HTTP/1.1 413 Request Entity Too Large19HTTP/1.1 414 Request-URI Too Large20HTTP/1.1 415 Unsupported Media Type21HTTP/1.1 416 Requested range not satisfiable 22HTTP/1.1 417 Expectation Failed23HTTP/1.1 500 Internal Server Error24HTTP/1.1 501 Not Implemented25HTTP/1.1 502 Bad Gateway26HTTP/1.1 503 Service Unavailable27HTTP/1.1 504 Gateway Time-out28HTTP/1.1 505 http version not supported29操作超时操作被取消30URL 无效31URL 未使用可识别的协议32无法解析服务器的名称或地址33未发现具有所需功能的协议34用户名无效35密码无效36拒绝登录申请37不能在代理会话上提出请求38无法与服务器建立连接39与服务器的连接意外终止40与服务器的连接被重置41代理请求无效42证书中的日期无效或已过期43证书中的主名称无效或不相符44证书错误45证书未收到46证书失败47服务器不支持申请的协议级48服务器返回的信息无效或不可识别49应用的证书无效50应用的证书已被撤销51任务超时52预期的页面内容未找到(页面)53发现表示页面错误的内容(页面) 54不安全的文件下载55文件下载失败56CDN内容不同步57打开流媒体失败58无法获取流媒体文件59流媒体客户端错误60Traceroute失败61事务处理失败6280070037: Cannot find the file 63800704CF: Cannot find the file 64800C2EE2: Action timed out 65C00D000F: The server has no more connections available 66C00D001F: Cannot find the file67C00D07F1: Your network may not be set up to handle a live broadcast connection68C00D07F2: Your network may not be set up to handle a live broadcast connection69C00D080D: File is corrupted70C00D0BB8: Cannot play the file71C00D1074: Cannot play the file72C00D1076: Cannot play the file73C00D1090: Cannot play the file74C00D10B6: Cannot play items in the playlist 75C00D10BA: Cannot find the file76C00D1196: Incorrect user name or password 77C00D1197: Cannot play the file78C00D1198: Cannot connect to the server79C00D119D: Cannot play this file because the associated playlist is not valid80C00D11B0: Cannot perform the requested action 81C00D11B3: Encountered a network error82C00D11B6: Cannot play the file.83C00D11C0: Cannot play the file because a network problem occurred84C00D11CB: Encountered a network problem85C00D11CD: Unknown error86C00D132B: Cannot play the file87C00D13ED: The specified origin server cannot be found.88C00D13EC: The archive request conflicts with other requests in progress89C00D13EE: The specified origin server is not responding 90C00D13EF: The internal code for HTTP status code 412 Precondition Failed due to not broadcast type91C00D13F0: The internal code for HTTP status code 403 Forbidden due to not cacheable92C00D13F1: The internal code for HTTP status code 304 Not Modified93HXR_DOC_MISSING94HXR_NO_FILESYSTEM95HXR_RESTORE_SERVER_DENIED96HXR_RESTORE_SERVER_CONNECT97HXR_RESTORE_SERVER_TIMEOUT98HXR_REVOKE_SERVER_CONNECT99HXR_REVOKE_SERVER_TIMEOUT100HXR_NET_SOCKET_INVALID101HXR_NET_CONNECT102HXR_BIND103HXR_SOCKET_CREATE104HXR_INVALID_HOST105HXR_NET_READ106HXR_NET_WRITE107HXR_SERVER_TIMEOUT108HXR_SERVER_DISCONNECTED109HXR_DNS_RESOLVE_FAILURE110HXR_END_WITH_REASON111HXR_INVALID_PATH112HXR_FULL_DOWNLOAD_NEEDED113HXR_PROGRESSIVE_DOWNLOAD_TIMEOUT114HXR_BAD_SERVER115HXR_OLD_SERVER116HXR_INVALID_PROTOCOL117HXR_INVALID_URL_OPTION118HXR_INVALID_URL_HOST119HXR_INVALID_URL_PATH120HXR_HTTP_CONTENT_NOT_FOUND 121HXR_NOT_AUTHORIZED122HXR_UNEXPECTED_MSG123HXR_NO_SESSION_ID124HXR_FORBIDDEN125HXR_RTSP_RESP_SINK_MESSAGE 126HXR_LATE_PACKET127HXR_OVERLAPPED_PACKET128HXR_OUTOFORDER_PACKET129HXR_NONCONTIGUOUS_PACKET。

常见错误代码含义大全

常见错误代码含义大全

常见错误代码含义大全欢迎来到店铺,本文为大家带来常见错误代码含义大全,一起来店铺。

0 0x00000000 作业完成。

1 0x00000001 不正确的函数。

2 0x00000002 系统找不到指定的档案。

3 0x00000003 系统找不到指定的路径。

4 0x00000004 系统无法开启档案。

5 0x00000005 拒绝存取。

6 0x00000006 无效的代码。

7 0x00000007 储存体控制区块已毁。

8 0x00000008 储存体空间不足,无法处理这个指令。

9 0x00000009 储存体控制区块地址无效。

10 0x0000000A 环境不正确。

11 0x0000000B 尝试加载一个格式错误的程序。

12 0x0000000C 存取码错误。

13 0x0000000D 资料错误。

14 0x0000000E 储存体空间不够,无法完成这项作业。

15 0x0000000F 系统找不到指定的磁盘驱动器。

16 0x00000010 无法移除目录。

16 0x00000010 无法移除目录。

17 0x00000011 系统无法将档案移到其它的磁盘驱动器。

18 0x00000012 没有任何档案。

19 0x00000013 储存媒体为写保护状态。

20 0x00000014 系统找不到指定的装置。

21 0x00000015 装置尚未就绪。

22 0x00000016 装置无法识别指令。

23 0x00000017 资料错误 (cyclic redundancy check)24 0x00000018 程序发出一个长度错误的指令。

25 0x00000019 磁盘驱动器在磁盘找不到持定的扇区或磁道。

26 0x0000001A 指定的磁盘或磁盘无法存取。

27 0x0000001B 磁盘驱动器找不到要求的扇区。

28 0x0000001C 打印机没有纸。

29 0x0000001D 系统无法将资料写入指定的磁盘驱动器。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

linux错误码大全查看错误代码errno是调试程序的一个重要方法。

当linuc C api函数发生异常时,一般会将errno变量(需include errno.h)赋一个整数值,不同的值表示不同的含义,可以通过查看该值推测出错的原因。

在实际编程中用这一招解决了不少原本看来莫名其妙的问题。

比较麻烦的是每次都要去linux源代码里面查找错误代码的含义,现在把它贴出来,以后需要查时就来这里看了。

1-34号错误号是在内核源码的include/asm-generic/errno-base.h定义35-132则是在include/asm-generic/errno.h中定义剩下还有一些更大的错误号是留给内核级别的,如系统调用等,用户程序一般是看不见的这些号的,Ubuntu9.10中/usr/src/linux-headers-2.6.31-21-generic/include/linux/errno.h#ifndef _ASM_GENERIC_ERRNO_BASE_H#define _ASM_GENERIC_ERRNO_BASE_H#define EPERM 1 /* Operation not permitted */#define ENOENT 2 /* No such file or directory */#define ESRCH 3 /* No such process */#define EINTR 4 /* Interrupted system call */#define EIO 5 /* I/O error */#define ENXIO 6 /* No such device or address */#define E2BIG 7 /* Argument list too long */#define ENOEXEC 8 /* Exec format error */#define EBADF 9 /* Bad file number */#define ECHILD 10 /* No child processes */#define EAGAIN 11 /* Try again */#define ENOMEM 12 /* Out of memory */#define EACCES 13 /* Permission denied */#define EFAULT 14 /* Bad address */#define ENOTBLK 15 /* Block device required */#define EBUSY 16 /* Device or resource busy */#define EEXIST 17 /* File exists */#define EXDEV 18 /* Cross-device link */#define ENODEV 19 /* No such device */#define ENOTDIR 20 /* Not a directory */#define EISDIR 21 /* Is a directory */#define EINVAL 22 /* Invalid argument */#define ENFILE 23 /* File table overflow */#define EMFILE 24 /* Too many open files */#define ENOTTY 25 /* Not a typewriter */#define ETXTBSY 26 /* Text file busy */#define EFBIG 27 /* File too large */#define ENOSPC 28 /* No space left on device */#define ESPIPE 29 /* Illegal seek */#define EROFS 30 /* Read-only file system */#define EMLINK 31 /* Too many links */#define EPIPE 32 /* Broken pipe */#define EDOM 33 /* Math argument out of domain of func */#define ERANGE 34 /* Math result not representable */ #endif#include <asm-generic/errno-base.h>#define EDEADLK 35 /* Resource deadlock would occur */ #define ENAMETOOLONG 36 /* File name too long */#define ENOLCK 37 /* No record locks available */#define ENOSYS 38 /* Function not implemented */#define ENOTEMPTY 39 /* Directory not empty */#define ELOOP 40 /* Too many symbolic links encountered */#define EWOULDBLOCK EAGAIN /* Operation would block */#define ENOMSG 42 /* No message of desired type */#define EIDRM 43 /* Identifier removed */#define ECHRNG 44 /* Channel number out of range */#define EL2NSYNC 45 /* Level 2 not synchronized */#define EL3HLT 46 /* Level 3 halted */#define EL3RST 47 /* Level 3 reset */#define ELNRNG 48 /* Link number out of range */#define EUNATCH 49 /* Protocol driver not attached */ #define ENOCSI 50 /* No CSI structure available */#define EL2HLT 51 /* Level 2 halted */#define EBADE 52 /* Invalid exchange */#define EBADR 53 /* Invalid request descriptor */#define EXFULL 54 /* Exchange full */#define ENOANO 55 /* No anode */#define EBADRQC 56 /* Invalid request code */#define EBADSLT 57 /* Invalid slot */#define EDEADLOCK EDEADLK#define EBFONT 59 /* Bad font file format */#define ENOSTR 60 /* Device not a stream */#define ENODATA 61 /* No data available */#define ETIME 62 /* Timer expired */#define ENOSR 63 /* Out of streams resources */#define ENONET 64 /* Machine is not on the network */ #define ENOPKG 65 /* Package not installed */#define EREMOTE 66 /* Object is remote */#define ENOLINK 67 /* Link has been severed */#define EADV 68 /* Advertise error */#define ESRMNT 69 /* Srmount error */#define ECOMM 70 /* Communication error on send */#define EPROTO 71 /* Protocol error */#define EMULTIHOP 72 /* Multihop attempted */#define EDOTDOT 73 /* RFS specific error */#define EBADMSG 74 /* Not a data message */#define EOVERFLOW 75 /* Value too large for defined data type */#define ENOTUNIQ 76 /* Name not unique on network */#define EBADFD 77 /* File descriptor in bad state */#define EREMCHG 78 /* Remote address changed */#define ELIBACC 79 /* Can not access a needed shared library */#define ELIBBAD 80 /* Accessing a corrupted shared library */#define ELIBSCN 81 /* .lib section in a.out corrupted */#define ELIBMAX 82 /* Attempting to link in too many shared libraries */#define ELIBEXEC 83 /* Cannot exec a shared library directly */#define EILSEQ 84 /* Illegal byte sequence */#define ERESTART 85 /* Interrupted system call should be restarted */#define ESTRPIPE 86 /* Streams pipe error */#define EUSERS 87 /* Too many users */#define ENOTSOCK 88 /* Socket operation on non-socket */#define EDESTADDRREQ 89 /* Destination address required */ #define EMSGSIZE 90 /* Message too long */#define EPROTOTYPE 91 /* Protocol wrong type for socket */ #define ENOPROTOOPT 92 /* Protocol not available */#define EPROTONOSUPPORT 93 /* Protocol not supported */#define ESOCKTNOSUPPORT 94 /* Socket type not supported */ #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */#define EPFNOSUPPORT 96 /* Protocol family not supported */ #define EAFNOSUPPORT 97 /* Address family not supported by protocol */#define EADDRINUSE 98 /* Address already in use */#define EADDRNOTAVAIL 99 /* Cannot assign requested address */#define ENETDOWN 100 /* Network is down */#define ENETUNREACH 101 /* Network is unreachable */#define ENETRESET 102 /* Network dropped connection because of reset */#define ECONNABORTED 103 /* Software caused connection abort */#define ECONNRESET 104 /* Connection reset by peer */#define ENOBUFS 105 /* No buffer space available */#define EISCONN 106 /* Transport endpoint is already connected */#define ENOTCONN 107 /* Transport endpoint is not connected */#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */#define ETOOMANYREFS 109 /* Too many references: cannot splice */#define ETIMEDOUT 110 /* Connection timed out */#define ECONNREFUSED 111 /* Connection refused */#define EHOSTDOWN 112 /* Host is down */#define EHOSTUNREACH 113 /* No route to host */#define EALREADY 114 /* Operation already in progress */#define EINPROGRESS 115 /* Operation now in progress */#define ESTALE 116 /* Stale NFS file handle */#define EUCLEAN 117 /* Structure needs cleaning */#define ENOTNAM 118 /* Not a XENIX named type file */ #define ENAVAIL 119 /* No XENIX semaphores available */ #define EISNAM 120 /* Is a named type file */#define EREMOTEIO 121 /* Remote I/O error */#define EDQUOT 122 /* Quota exceeded */#define ENOMEDIUM 123 /* No medium found */#define EMEDIUMTYPE 124 /* Wrong medium type */#define ECANCELED 125 /* Operation Canceled */#define ENOKEY 126 /* Required key not available */#define EKEYEXPIRED 127 /* Key has expired */#define EKEYREVOKED 128 /* Key has been revoked */#define EKEYREJECTED 129 /* Key was rejected by service *//* for robust mutexes */#define EOWNERDEAD 130 /* Owner died */#define ENOTRECOVERABLE 131 /* State not recoverable */#define ERFKILL 132 /* Operation not possible due to RF-kill */#ifdef __KERNEL__/** These should never be seen by user programs. To return one of ERESTART ** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see.*/#define ERESTARTSYS 512#define ERESTARTNOINTR 513#define ERESTARTNOHAND 514 /* restart if no handler.. */#define ENOIOCTLCMD 515 /* No ioctl command */#define ERESTART_RESTARTBLOCK 516 /* restart by callingsys_restart_syscall *//* Defined for the NFSv3 protocol */#define EBADHANDLE 521 /* Illegal NFS file handle */#define ENOTSYNC 522 /* Update synchronization mismatch */#define EBADCOOKIE 523 /* Cookie is stale */#define ENOTSUPP 524 /* Operation is not supported */#define ETOOSMALL 525 /* Buffer or request is too small */#define ESERVERFAULT 526 /* An untranslatable error occurred */#define EBADTYPE 527 /* Type not supported by server */#define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */#define EIOCBQUEUED 529 /* iocb queued, will get completion event */#define EIOCBRETRY 530 /* iocb queued, will trigger a retry */ #endif。

相关文档
最新文档