00001 00005 #ifndef _ERRNO_H_ 00006 #define _ERRNO_H_ 00007 00008 #define EPERM 1 /* Operation not permitted */ 00009 #define ENOENT 2 /* No such file or directory */ 00010 #define ESRCH 3 /* No such process */ 00011 #define EINTR 4 /* Interrupted system call */ 00012 #define EIO 5 /* Input/output error */ 00013 #define ENXIO 6 /* Device not configured */ 00014 #define E2BIG 7 /* Argument list too long */ 00015 #define ENOEXEC 8 /* Exec format error */ 00016 #define EBADF 9 /* Bad file descriptor */ 00017 #define ECHILD 10 /* No child processes */ 00018 #define EDEADLK 11 /* Resource deadlock avoided */ 00019 /* 11 was EAGAIN */ 00020 #define ENOMEM 12 /* Cannot allocate memory */ 00021 #define EACCES 13 /* Permission denied */ 00022 #define EFAULT 14 /* Bad address */ 00023 #define ENOTBLK 15 /* Block device required */ 00024 #define EBUSY 16 /* Device busy */ 00025 #define EEXIST 17 /* File exists */ 00026 #define EXDEV 18 /* Cross-device link */ 00027 #define ENODEV 19 /* Operation not supported by device */ 00028 #define ENOTDIR 20 /* Not a directory */ 00029 #define EISDIR 21 /* Is a directory */ 00030 #define EINVAL 22 /* Invalid argument */ 00031 #define ENFILE 23 /* Too many open files in system */ 00032 #define EMFILE 24 /* Too many open files */ 00033 #define ENOTTY 25 /* Inappropriate ioctl for device */ 00034 #define ETXTBSY 26 /* Text file busy */ 00035 #define EFBIG 27 /* File too large */ 00036 #define ENOSPC 28 /* No space left on device */ 00037 #define ESPIPE 29 /* Illegal seek */ 00038 #define EROFS 30 /* Read-only file system */ 00039 #define EMLINK 31 /* Too many links */ 00040 #define EPIPE 32 /* Broken pipe */ 00041 00042 /* math software */ 00043 #define EDOM 33 /* Numerical argument out of domain */ 00044 #define ERANGE 34 /* Result too large */ 00045 00046 /* non-blocking and interrupt i/o */ 00047 #define EAGAIN 35 /* Resource temporarily unavailable */ 00048 #define EWOULDBLOCK EAGAIN /* Operation would block */ 00049 #define EINPROGRESS 36 /* Operation now in progress */ 00050 #define EALREADY 37 /* Operation already in progress */ 00051 00052 extern __near int errno; /* only used for math functions */ 00053 00054 #endif /* _ERRNO_H_ */