1 /* Begin include file errno.h */ 2 /* @(#)errno.h 6.1 */ 3 /* 4 * Error codes 5 */ 6 7 extern int errno; 8 9 #define EPERM 1 /* Not super-user */ 10 #define ENOENT 2 /* No such file or directory */ 11 #define ESRCH 3 /* No such process */ 12 #define EINTR 4 /* interrupted system call */ 13 #define EIO 5 /* I/O error */ 14 #define ENXIO 6 /* No such device or address */ 15 #define E2BIG 7 /* Arg list too long */ 16 #define ENOEXEC 8 /* Exec format error */ 17 #define EBADF 9 /* Bad file number */ 18 #define ECHILD 10 /* No children */ 19 #define EAGAIN 11 /* No more processes */ 20 #define ENOMEM 12 /* Not enough core */ 21 #define EACCES 13 /* Permission denied */ 22 #define EFAULT 14 /* Bad address */ 23 #define ENOTBLK 15 /* Block device required */ 24 #define EBUSY 16 /* Mount device busy */ 25 #define EEXIST 17 /* File exists */ 26 #define EXDEV 18 /* Cross-device link */ 27 #define ENODEV 19 /* No such device */ 28 #define ENOTDIR 20 /* Not a directory */ 29 #define EISDIR 21 /* Is a directory */ 30 #define EINVAL 22 /* Invalid argument */ 31 #define ENFILE 23 /* File table overflow */ 32 #define EMFILE 24 /* Too many open files */ 33 #define ENOTTY 25 /* Not a typewriter */ 34 #define ETXTBSY 26 /* Text file busy */ 35 #define EFBIG 27 /* File too large */ 36 #define ENOSPC 28 /* No space left on device */ 37 #define ESPIPE 29 /* Illegal seek */ 38 #define EROFS 30 /* Read only file system */ 39 #define EMLINK 31 /* Too many links */ 40 #define EPIPE 32 /* Broken pipe */ 41 #define EDOM 33 /* Math arg out of domain of func */ 42 #define ERANGE 34 /* Math result not representable */ 43 #define ENOMSG 35 /* No message of desired type */ 44 #define EIDRM 36 /* Identifier removed */ 45 #define ECHRNG 37 /* Channel number out of range */ 46 #define EL2NSYNC 38 /* Level 2 not synchronized */ 47 #define EL3HLT 39 /* Level 3 halted */ 48 #define EL3RST 40 /* Level 3 reset */ 49 #define ELNRNG 41 /* Link number out of range */ 50 #define EUNATCH 42 /* Protocol driver not attached */ 51 #define ENOCSI 43 /* No CSI structure available */ 52 #define EL2HLT 44 /* Level 2 halted */ 53 54 /* End include file errno.h */