免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 971 | 回复: 0
打印 上一主题 下一主题

ERROR [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-19 13:40 |只看该作者 |倒序浏览

error返回值简单列表
   下面是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


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78225/showart_1206247.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP