常见的Linux系统错误码由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“linux系统中错误的是”。
常见的Linux系统错误码,即errorno的值EPERM Operation not permitted 操作不许可 ENOENT No such file or directory 无此文件或目录ESRCH No such proce 无此过程 EINTR Interrupted system call 系统调用被禁止EIO I/O error I/O 错误 ENXIO No such device or addre 无此器件或地址E2BIG Arg list too long Arg 列表太长 ENOEXEC Exec format error Exec 格式错误EBADF Bad file number 文件数目错误 10 ECHILD No child procees 无子过程 11 EAGAIN Try again 再试一遍ENOMEM Out of memory 内存溢出 13 EACCES Permiion denied 许可拒绝 14 EFAULT Bad addre 错误的地址ENOTBLK Block device required 需要块设备 16 EBUSY Device or resource busy 设备或资源忙 17 EEXIST File exists 文件存在EXDEV Cro-device link 跨器链接 19 ENODEV No such device 无此设备ENOTDIR Not a directory 不是一个目录 21 EISDIR Is a directory 是一个目录EINVAL Invalid argument 无效的函数自变量 23 ENFILE File table overflow 文件表溢出EMFILE Too many open files 打开的文件太多 25 ENOTTY Inappropriate ioctl for device 26 ETXTBSY Text file busy 文本文件忙 27 EFBIG File too large 文件太大ENOSPC No space left on device 磁盘空间不足 29 ESPIPE Illegal seek 不合法的寻找EROFS Read-only file system 只读文件系统 31 EMLINK Too many links 太多的链接
/usr/include/asm-generic/errno-base.h
#define EPERM
/* Operation not permitted */ #define ENOENT
/* No such file or directory */ #define ESRCH
/* No such proce */ #define EINTR
/* Interrupted system call */ #define EIO 5 /* I/O error */ #define ENXIO
/* No such device or addre */ #define E2BIG
/* Argument list too long */ #define ENOEXEC
/* Exec format error */ #define EBADF
/* Bad file number */ #define ECHILD
/* No child procees */ #define EAGAIN
/* Try again */ #define ENOMEM
/* Out of memory */ #define EACCES
/* Permiion denied */ #define EFAULT
/* Bad addre */ #define ENOTBLK
/* Block device required */ #define EBUSY
/* Device or resource busy */ #define EEXIST
/* File exists */ #define EXDEV
/* Cro-device link */ #define ENODEV
/* No such device */ #define ENOTDIR
/* Not a directory */ #define EISDIR
/* Is a directory */ #define EINVAL
/* Invalid argument */ #define ENFILE
/* File table overflow */ #define EMFILE
/* Too many open files */ #define ENOTTY
/* Not a typewriter */ #define ETXTBSY
/* Text file busy */ #define EFBIG
/* File too large */ #define ENOSPC
/* No space left on device */ #define ESPIPE
/* Illegal seek */ #define EROFS
/* Read-only file system */ #define EMLINK
/* Too many links */ #define EPIPE 32 /* Broken pipe */ #define EDOM
/* Math argument out of domain of func */ #define ERANGE
/* Math result not representable */
/usr/include/asm-generic/errno.h
#define EDEADLK
/* Resource deadlock would occur */ #define ENAMETOOLONG 36 /* File name too long */ #define ENOLCK
/* No record locks available */ #define ENOSYS
/* Function not implemented */ #define ENOTEMPTY
/* Directory not empty */ #define ELOOP
/* Too many symbolic links encountered */ #define EWOULDBLOCK EAGAIN /* Operation would block */ #define ENOMSG
/* No meage of desired type */ #define EIDRM
/* Identifier removed */ #define ECHRNG
/* Channel number out of range */ #define EL2NSYNC 45 /* Level 2 not synchronized */ #define EL3HLT
/* Level 3 halted */ #define EL3RST
/* Level 3 reset */ #define ELNRNG
/* Link number out of range */ #define EUNATCH
/* Protocol driver not attached */ #define ENOCSI
/* No CSI structure available */ #define EL2HLT
/* Level 2 halted */ #define EBADE
/* Invalid exchange */ #define EBADR
/* Invalid request descriptor */ #define EXFULL
/* Exchange full */ #define ENOANO
/* No anode */ #define EBADRQC
/* Invalid request code */ #define EBADSLT
/* Invalid slot */ #define EDEADLOCK
EDEADLK
#define EBFONT
/* Bad font file format */ #define ENOSTR
/* Device not a stream */ #define ENODATA
/* No data available */ #define ETIME
/* Timer expired */ #define ENOSR
/* Out of streams resources */ #define ENONET
/* Machine is not on the network */ #define ENOPKG
/* Package not installed */ #define EREMOTE
/* Object is remote */ #define ENOLINK
/* Link has been severed */ #define EADV
/* Advertise error */ #define ESRMNT
/* Srmount error */ #define ECOMM
/* Communication error on send */ #define EPROTO
/* Protocol error */ #define EMULTIHOP
/* Multihop attempted */ #define EDOTDOT
/* RFS specific error */ #define EBADMSG
/* Not a data meage */ #define EOVERFLOW
/* Value too large for defined data type */ #define ENOTUNIQ 76 /* Name not unique on network */ #define EBADFD
/* File descriptor in bad state */ #define EREMCHG
/* Remote addre changed */ #define ELIBACC
/* Can not acce a needed shared library */ #define ELIBBAD
/* Acceing a corrupted shared library */ #define ELIBSCN
/*.lib section in a.out corrupted */ #define ELIBMAX
/* Attempting to link in too many shared libraries */ #define ELIBEXEC 83 /* Cannot exec a shared library directly */ #define EILSEQ
/* Illegal byte sequence */ #define ERESTART 85 /* Interrupted system call should be restarted */ #define ESTRPIPE 86 /* Streams pipe error */ #define EUSERS
/* Too many users */ #define ENOTSOCK 88 /* Socket operation on non-socket */ #define EDESTADDRREQ 89 /* Destination addre required */ #define EMSGSIZE 90 /* Meage 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 /* Addre family not supported by protocol */ #define EADDRINUSE 98 /* Addre already in use */ #define EADDRNOTAVAIL 99 /* Cannot aign requested addre */ #define ENETDOWN 100 /* Network is down */ #define ENETUNREACH 101 /* Network is unreachable */ #define ENETRESET
/* Network dropped connection because of reset */ #define ECONNABORTED 103 /* Software caused connection abort */ #define ECONNRESET 104 /* Connection reset by peer */ #define ENOBUFS
/* No buffer space available */ #define EISCONN
/* Transport endpoint is already connected */ #define ENOTCONN 107 /* Transport endpoint is not connected */ #define ESHUTDOWN
/* Cannot send after transport endpoint shutdown */ #define ETOOMANYREFS 109 /* Too many references: cannot splice */ #define ETIMEDOUT
/* Connection timed out */ #define ECONNREFUSED 111 /* Connection refused */ #define EHOSTDOWN
/* Host is down */ #define EHOSTUNREACH 113 /* No route to host */ #define EALREADY 114 /* Operation already in progre */ #define EINPROGRESS 115 /* Operation now in progre */ #define ESTALE
/* Stale NFS file handle */ #define EUCLEAN
/* Structure needs cleaning */ #define ENOTNAM
/* Not a XENIX named type file */ #define ENAVAIL
/* No XENIX semaphores available */ #define EISNAM
/* Is a named type file */ #define EREMOTEIO
/* Remote I/O error */ #define EDQUOT
/* Quota exceeded */
#define ENOMEDIUM 123 /* No medium found */ #define EMEDIUMTYPE 124 /* Wrong medium type */ #define ECANCELED
/* 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 */