Linux系统错误码一览

 

    SUSv3 AIX 4.3,5.1 HP-UX 11.22 Solaris 9,10 Linux 2.4.28,2.6.9 IRIX 6.5[4] OSF1 FreeBSD 5.2.1 OSX 10.3.8 MSVC6
EPERM 1 0 Operation not permitted. 1 Operation not permitted 1 Not super-user 1 Not super-user 1 Operation not permitted 1 Operation not permitted 1 Not owner 1 Operation not permitted 1 Operation not permitted 1 Operation not permitted
ENOENT 1 0 No such file or directory. 2 No such file or directory 2 No such file or directory 2 No such file or directory 2 No such file or directory 2 No such file or directory 2 No such file or directory 2 No such file or directory 2 No such file or directory 2 No such file or directory
ESRCH 1 0 No such process. 3 No such process 3 No such process 3 No such process 3 No such process 3 No such process 3 No such process 3 No such process 3 No such process 3 No such process
EINTR 1 0 Interrupted function. 4 interrupted system call 4 interrupted system call 4 interrupted system call 4 Interrupted system call 4 Interrupted function call 4 Interrupted system call 4 Interrupted system call 4 Interrupted system call 4 Interrupted function call
EIO 1 0 I/O error. 5 I/O error 5 I/O error 5 I/O error 5 I/O error 5 I/O error 5 I/O error 5 Input/output error 5 Input/output error 5 Input/output error
ENXIO 1 0 No such device or address. 6 No such device or address 6 No such device or address 6 No such device or address 6 No such device or address 6 No such device or address 6 No such device or address 6 Device not configured 6 Device not configured 6 No such device or address
E2BIG 1 0 Argument list too long. 7 Arg list too long 7 Arg list too long 7 Arg list too long 7 Arg list too long 7 Arg list too long 7 Arg list too long 7 Argument list too long 7 Argument list too long 7 Arg list too long
ENOEXEC 1 0 Executable file format error. 8 Exec format error 8 Exec format error 8 Exec format error 8 Exec format error 8 Exec format error 8 Exec format error 8 Exec format error 8 Exec format error 8 Exec format error
EBADF 1 0 Bad file descriptor. 9 Bad file descriptor 9 Bad file number 9 Bad file number 9 Bad file number 9 Bad file number 9 Bad file number 9 Bad file descriptor 9 Bad file descriptor 9 Bad file descriptor
ECHILD 1 0 No child processes. 10 No child processes 10 No children 10 No children 10 No child processes 10 No child processes 10 No children 10 No child processes 10 No child processes 10 No child processes
EAGAIN 1 0 Resource unavailable, try again [3] 11 Resource temporarily unavailable 11 No more processes 11 Resource temporarily unavailable 11 Try again 11 Resource temporarily unavailable 11 ditto 35 Resource temporarily unavailable 35 Resource temporarily unavailable 11 Resource temporarily unavailable
ENOMEM 1 0 Not enough space. 12 Not enough space 12 Not enough core 12 Not enough core 12 Out of memory 12 Not enough space 12 Not enough core 12 Cannot allocate memory 12 Cannot allocate memory 12 Not enough space
EACCES 1 0 Permission denied. 13 Permission denied 13 Permission denied 13 Permission denied 13 Permission denied 13 Permission denied 13 Permission denied 13 Permission denied 13 Permission denied 13 Permission denied
EFAULT 1 0 Bad address. 14 Bad address 14 Bad address 14 Bad address 14 Bad address 14 Bad address 14 Bad address 14 Bad address 14 Bad address 14 Bad address
ENOTBLK 0.9     15 Block device required 15 Block device required 15 Block device required 15 Block device required 15 Block device required 15 Block device required 15 Block device required 15 Block device required 15 Unknown error
EBUSY 1 0 Device or resource busy. 16 Resource busy 16 Mount device busy 16 Mount device busy 16 Device or resource busy 16 Resource busy 16 Mount device busy 16 Device busy 16 Device busy 16 Resource device
EEXIST 1 0 File exists. 17 File exists 17 File exists 17 File exists 17 File exists 17 File exists 17 File exists 17 File exists 17 File exists 17 File exists
EXDEV 1 0 Cross-device link. 18 Improper link 18 Cross-device link 18 Cross-device link 18 Cross-device link 18 Improper link 18 Cross-device link 18 Cross-device link 18 Cross-device link 18 Improper link
ENODEV 1 0 No such device. 19 No such device 19 No such device 19 No such device 19 No such device 19 No such device 19 No such device 19 Operation not supported by device 19 Operation not supported by device 19 No such device
ENOTDIR 1 0 Not a directory. 20 Not a directory 20 Not a directory 20 Not a directory 20 Not a directory 20 Not a directory 20 Not a directory 20 Not a directory 20 Not a directory 20 Not a directory
EISDIR 1 0 Is a directory. 21 Is a directory 21 Is a directory 21 Is a directory 21 Is a directory 21 Is a directory 21 Is a directory 21 Is a directory 21 Is a directory 21 Is a directory
EINVAL 1 0 Invalid argument. 22 Invalid argument 22 Invalid argument 22 Invalid argument 22 Invalid argument 22 Invalid argument 22 Invalid argument 22 Invalid argument 22 Invalid argument 22 Invalid argument
ENFILE 1 0 Too many files open in system. 23 Too many open files in system 23 File table overflow 23 File table overflow 23 File table overflow 23 File table overflow 23 File table overflow 23 Too many open files in system 23 Too many open files in system 23 Too many open files in system
EMFILE 1 0 Too many open files. 24 Too many open files 24 Too many open files 24 Too many open files 24 Too many open files 24 Too many open files 24 Too many open files 24 Too many open files 24 Too many open files 24 Too many open files
ENOTTY 1 0 Inappropriate I/O control operation. 25 Inappropriate I/O control operation 25 Not a typewriter 25 Inappropriate ioctl for device 25 Not a typewriter 25 Inappropriate I/O control operation 25 Not a typewriter 25 Inappropriate ioctl for device 25 Inappropriate ioctl for device 25 Inappropriate I/O control operation
ETXTBSY 1 0 Text file busy. 26 Text file busy 26 Text file busy 26 Text file busy 26 Text file busy 26 Text file busy 26 Text file busy 26 Text file busy 26 Text file busy 26 Unknown error
EFBIG 1 0 File too large. 27 File too large 27 File too large 27 File too large 27 File too large 27 File too large 27 File too large 27 File too large 27 File too large 27 File too large
ENOSPC 1 0 No space left on device. 28 No space left on device 28 No space left on device 28 No space left on device 28 No space left on device 28 No space left on device 28 No space left on device 28 No space left on device 28 No space left on device 28 No space left on device
ESPIPE 1 0 Invalid seek. 29 Invalid seek 29 Illegal seek 29 Illegal seek 29 Illegal seek 29 Illegal seek 29 Illegal seek 29 Illegal seek 29 Illegal seek 29 Invalid seek
EROFS 1 0 Read-only file system. 30 Read only file system 30 Read only file system 30 Read only file system 30 Read-only file system 30 Read only file system 30 Read-only file system 30 Read-only filesystem 30 Read-only file system 30 Read-only file system
EMLINK 1 0 Too many links. 31 Too many links 31 Too many links 31 Too many links 31 Too many links 31 Too many links 31 Too many links 31 Too many links 31 Too many links 31 Too many links
EPIPE 1 0 Broken pipe. 32 Broken pipe 32 Broken pipe 32 Broken pipe 32 Broken pipe 32 Broken pipe 32 Broken pipe 32 Broken pipe 32 Broken pipe 32 Broken pipe
EDOM 0.9 0 Mathematics argument out of domain of function. 33
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值