--- mstools/posix/h/sys/errno.h 2018/08/09 18:22:18 1.1.1.1 +++ mstools/posix/h/sys/errno.h 2018/08/09 18:24:37 1.1.1.2 @@ -12,20 +12,6 @@ Abstract: number as described in section 2.5 of IEEE P1003.1/Draft 13 as well as additional error codes for streams and sockets. -Author: - - Mark Lucovsky 21-Feb-1989 // errno.h - Sam Patton (sampa) July 26, 1991 // sys\errno.h - -Revision History: - - when who what - ---- --- ---- - 7-26-91 sampa initial version - 8-01-91 mikemas added inclusion of user-level errno.h - 9-09-91 mikemas merged with ..\errno.h - 9-19-91 mikemas removed STREAMS error codes to ..\..\sockets\sock_err.h - --*/ @@ -36,48 +22,51 @@ Revision History: * POSIX error codes */ -#define EZERO 0 -#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 /* not a POSIX.1 error code */ -#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 -#define ETXTBUSY 26 /* not a POSIX.1 error code */ -#define EFBIG 27 -#define ENOSPC 28 -#define ESPIPE 29 -#define EROFS 30 -#define EMLINK 31 -#define EPIPE 32 -#define EDOM 33 -#define ERANGE 34 -#define EUCLEAN 35 /* not a POSIX.1 error code */ -#define EDEADLOCK 36 -#define EDEADLK 36 -#define UNKNOWN 37 -#define ENAMETOOLONG 38 /* XXX.mjb: fix this. */ -#define ENOLCK 39 /* XXX.mjb: fix this. */ -#define ENOSYS 40 /* XXX.mjb: fix this. */ -#define ENOTEMPTY 41 /* XXX.mjb: fix this. */ +#define EZERO 0 /* No error */ +#define EPERM 1 /* Operation no permitted */ +#define ENOENT 2 /* No such file or directory */ +#define ESRCH 3 /* No such process */ +#define EINTR 4 /* Interrupted function call */ +#define EIO 5 /* Input/output error */ +#define ENXIO 6 /* No such device or address */ +#define E2BIG 7 /* Arg list too long */ +#define ENOEXEC 8 /* Exec format error */ +#define EBADF 9 /* Bad file descriptor */ +#define ECHILD 10 /* No child processes */ +#define EAGAIN 11 /* Resource temporarily unavailable */ +#define ENOMEM 12 /* Not enough space */ +#define EACCES 13 /* Permission denied */ +#define EFAULT 14 /* Bad address */ +#define ENOTBLK 15 /* Unknown error */ +#define EBUSY 16 /* Resource device */ +#define EEXIST 17 /* File exists */ +#define EXDEV 18 /* Improper link */ +#define ENODEV 19 /* No such device */ +#define ENOTDIR 20 /* Not a directory */ +#define EISDIR 21 /* Is a directory */ +#define EINVAL 22 /* Invalid argument */ +#define ENFILE 23 /* Too many open files in system */ +#define EMFILE 24 /* Too many open files */ +#define ENOTTY 25 /* Inappropriate I/O control operation */ +#define ETXTBUSY 26 /* Unknown error */ +#define EFBIG 27 /* File too large */ +#define ENOSPC 28 /* No space left on device */ +#define ESPIPE 29 /* Invalid seek */ +#define EROFS 30 /* Read-only file system */ +#define EMLINK 31 /* Too many links */ +#define EPIPE 32 /* Broken pipe */ +#define EDOM 33 /* Domain error */ +#define ERANGE 34 /* Result too large */ +#define EUCLEAN 35 /* Unknown error */ +#define EDEADLOCK 36 /* Resource deadlock avoided */ +#define EDEADLK 36 /* Resource deadlock avoided */ +#ifndef _POSIX_SOURCE +#define UNKNOWN 37 /* Unknown error */ +#endif /* _POSIX_SOURCE */ +#define ENAMETOOLONG 38 /* Filename too long */ +#define ENOLCK 39 /* No locks available */ +#define ENOSYS 40 /* Function not implemented */ +#define ENOTEMPTY 41 /* Direcotory not empty */ +#define EILSEQ 42 /* Invalid multi-byte character */ #endif /* _SYS_ERRNO_ */