Linux环境下错误码及意义总结
程序员文章站
2023-11-08 10:06:10
Linux的错误码包含在/usr/include/asm-generic/errno-base.h和/usr/include/asm-generic/errno.h 这两个文件内: ......
linux的错误码包含在/usr/include/asm-generic/errno-base.h和/usr/include/asm-generic/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
#ifndef _asm_generic_errno_h #define _asm_generic_errno_h #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 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 */ #define ehwpoison 133 /* memory page has hardware error */ #endif
推荐阅读
-
Linux环境下错误码及意义总结
-
Linux(Ubuntu)环境下Django2的环境配置及注意事项
-
Linux多线程环境下 关于进程线程终止函数总结
-
Linux下Pycharm、Anaconda环境配置及使用踩坑
-
C语言程序的编译、链接具体过程及Linux环境下的具体实例
-
mac及linux下搭建ruby+rails环境
-
Linux Debian 下LNMP服务器nginx+mysql+php环境搭建及配置_MySQL
-
Linux Debian 下LNMP服务器nginx+mysql+php环境搭建及配置_MySQL
-
Linux环境下错误码及意义总结
-
mysql5.7.18版本Linux·环境下数据库源码安装及配置