?? errno.h
字號:
#ifndef _ERRNO_H#define _ERRNO_H/** ok, as I hadn't got any other source of information about* possible error numbers, I was forced to use the same numbers* as minix.* Hopefully these are posix or something. I wouldn't know (and posix* isn't telling me - they want $$$ for their f***ing standard).** We don't use the _SIGN cludge of minix, so kernel returns must* see to the sign by themselves.** NOTE! Remember to change strerror() if you change this file!*//** ok,由于我沒有得到任何其它有關出錯號的資料,我只能使用與minix 系統* 相同的出錯號了。* 希望這些是POSIX 兼容的或者在一定程度上是這樣的,我不知道(而且POSIX* 沒有告訴我 - 要獲得他們的混蛋標準需要出錢)。** 我們沒有使用minix 那樣的_SIGN 簇,所以內核的返回值必須自己辨別正負號。** 注意!如果你改變該文件的話,記著也要修改strerror()函數。*/extern int errno;#define ERROR 99 // 一般錯誤。#define EPERM 1 // 操作沒有許可。#define ENOENT 2 // 文件或目錄不存在。#define ESRCH 3 // 指定的進程不存在。#define EINTR 4 // 中斷的函數調用。#define EIO 5 // 輸入/輸出錯。#define ENXIO 6 // 指定設備或地址不存在。#define E2BIG 7 // 參數列表太長。#define ENOEXEC 8 // 執行程序格式錯誤。#define EBADF 9 // 文件句柄(描述符)錯誤。#define ECHILD 10 // 子進程不存在。#define EAGAIN 11 // 資源暫時不可用。#define ENOMEM 12 // 內存不足。#define EACCES 13 // 沒有許可權限。#define EFAULT 14 // 地址錯。#define ENOTBLK 15 // 不是塊設備文件。#define EBUSY 16 // 資源正忙。#define EEXIST 17 // 文件已存在。#define EXDEV 18 // 非法連接。#define ENODEV 19 // 設備不存在。#define ENOTDIR 20 // 不是目錄文件。#define EISDIR 21 // 是目錄文件。#define EINVAL 22 // 參數無效。#define ENFILE 23 // 系統打開文件數太多。#define EMFILE 24 // 打開文件數太多。#define ENOTTY 25 // 不恰當的IO 控制操作(沒有tty 終端)。#define ETXTBSY 26 // 不再使用。#define EFBIG 27 // 文件太大。#define ENOSPC 28 // 設備已滿(設備已經沒有空間)。#define ESPIPE 29 // 無效的文件指針重定位。#define EROFS 30 // 文件系統只讀。#define EMLINK 31 // 連接太多。#define EPIPE 32 // 管道錯。#define EDOM 33 // 域(domain)出錯。#define ERANGE 34 // 結果太大。#define EDEADLK 35 // 避免資源死鎖。#define ENAMETOOLONG 36 // 文件名太長。#define ENOLCK 37 // 沒有鎖定可用。#define ENOSYS 38 // 功能還沒有實現。#define ENOTEMPTY 39 // 目錄不空。#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -