home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 163_01 / errno.h < prev    next >
Text File  |  1987-06-03  |  1KB  |  28 lines

  1. /*
  2. ** include "errno.h"
  3. **
  4. ** UNIX-like error codes
  5. */
  6.  
  7. #define ENOENT 2       /* no such file or directory */
  8. #define EIO    5       /* physical I/O error */
  9. #define ENXIO  6       /* device not available (not mounted) */
  10. #define E2BIG  7       /* argument list too long */
  11. #define EBADF  9       /* bad file number (or wrong file read/write mode) */
  12. #define ENOMEM 12      /* out of main storage (or data seg full) */
  13. #define EACCES 13      /* permission denied */
  14. #define EFAULT 14      /* bad address (or address range) */
  15. #define EEXIST 17      /* file exists */
  16. #define ENODEV 19      /* no such device or invalid mode for device */
  17. #define EINVAL 22      /* invalid argument */
  18. #define ENFILE 23      /* too many open files (system wide) */
  19. #define EMFILE 24      /* too many open files (process) */
  20. #define ENOTTY 25      /* not a terminal device */
  21. #define EFBIG  27      /* file too big (in excess of max possible size) */
  22. #define ENOSPC 28      /* no space left on device (or in device directory) */
  23. #define ESPIPE 29      /* seek to non-seekable device */
  24. #define EROFS  30      /* attempt to write to write-protected device */
  25. #define EDOM   33      /* math argument domain error */
  26. #define ERANGE 34      /* math argument range error */
  27. #define EUSER  100     /* user error codes begin here */
  28.