常见的Linux系统错误码

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

常见的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 device

26 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 EINV AL 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 */

相关文档
最新文档