home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newlibs / cclib.lzh / errno.h < prev    next >
C/C++ Source or Header  |  1989-09-25  |  620b  |  28 lines

  1. #ifndef ERRNO_H
  2. #define ERRNO_H 1
  3.  
  4. extern long errno; /* <= contained in main.c */
  5.  
  6. /* Open() can't open the file */
  7. #define ENOENT 1
  8. /* invalid file handle passed to close() */
  9. #define EBADF 2
  10. /* not enough memory to allocate another file handle */
  11. #define ENOMEM 3
  12. /* file already exists */
  13. #define EEXIST 4
  14. /* invalid function number */
  15. #define EINVAL 5
  16. /* no file handles left (should never occur) */
  17. #define EMFILE 6
  18. /* not a console device (should never occur) */
  19. #define ENOTTY 7
  20. /* invalid mode used in open() */
  21. #define EACCES 8
  22. /* math errors (not used by library) */
  23. #define ERANGE 9
  24. #define EDOM 10
  25.  
  26. #endif
  27.  
  28.