下面是error相关的返回值
1#ifndef _ASM_GENERIC_ERRNO_BASE_H
2#define _ASM_GENERIC_ERRNO_BASE_H
3
4#define EPERM 1 /* Operation not permitted */操作禁止
5#define ENOENT 2 /* No such file or directory */文件或者目录不存在
6#define ESRCH 3 /* No such process */相应的进程不存在
7#define EINTR 4 /* Interrupted system call */中断系统调用
8#define EIO 5 /* I/O error */I/O错误
9#define ENXIO 6 /* No such device or address */相应设备或者地址不存在
10#define E2BIG 7 /* Argument list too long */参数列表太长
11#define ENOEXEC 8 /* Exec format error */Exec格式错误
12#define EBADF 9 /* Bad file number */错误的文档编号
13#define ECHILD 10 /* No child processes */没有子进程
14#define EAGAIN 11 /* Try again */ 重试
15#define ENOMEM 12 /* Out of memory */溢出内存
16#define EACCES 13 /* Permission denied */没有权限
17#define EFAULT 14 /* Bad address */错误的地址
18#define ENOTBLK 15 /* Block device required */块设备需求
19#define EBUSY 16 /* Device or resource busy */设备或者资源繁忙
20#define EEXIST 17 /* File exists */文件已经存在
21#define EXDEV 18 /* Cross-device link */交叉链接设备
22#define ENODEV 19 /* No such device */没有对应的设备
23#define ENOTDIR 20 /* Not a directory */不是路径
24#define EISDIR 21 /* Is a directory */是路径,与上面意思相反
25#define EINVAL 22 /* Invalid argument */无效参数
26#define ENFILE 23 /* File table overflow */文件表溢出
27#define EMFILE 24 /* Too many open files */打开的文件太多了
28#define ENOTTY 25 /* Not a typewriter */非打印机
29#define ETXTBSY 26 /* Text file busy */文本文件繁忙
30#define EFBIG 27 /* File too large */文件太大
31#define ENOSPC 28 /* No space left on device */没有足够的空间留给设备使用
32#define ESPIPE 29 /* Illegal seek */非法定位
33#define EROFS 30 /* Read-only file system */只读文件系统
34#define EMLINK 31 /* Too many links */太多的链接
35#define EPIPE 32 /* Broken pipe */管道中断
36#define EDOM 33 /* Math argument out of domain of func */??
37#define ERANGE 34 /* Math result not representable */非数字结果
38
39#endif
40
阅读(862) | 评论(0) | 转发(0) |