home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / ERRNO.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  2KB  |  54 lines

  1. /* errno.h (emx+gcc) */
  2.  
  3. #if !defined (_ERRNO_H)
  4. #define _ERRNO_H
  5.  
  6. #if defined (__cplusplus)
  7. extern "C" {
  8. #endif
  9.  
  10. #if !defined (_LIBM_H)
  11. #if !defined (_ERRNO)
  12. #define _ERRNO
  13. #if defined (__MT__)
  14. extern int *_errno_fun (void);
  15. #define errno (*_errno_fun ())
  16. #else
  17. extern int errno;
  18. #endif
  19. #endif
  20. #endif
  21.  
  22. #define EPERM           1   /* Operation not permitted              */
  23. #define ENOENT          2   /* No such file or directory            */
  24. #define ESRCH           3   /* No such process                      */
  25. #define EINTR           4   /* Interrupted system call              */
  26. #define EIO             5   /* I/O error                            */
  27. #define E2BIG           7   /* Arguments or environment too big     */
  28. #define ENOEXEC         8   /* Invalid executable file format       */
  29. #define EBADF           9   /* Bad file number                      */
  30. #define ECHILD          10  /* No child processes                   */
  31. #define EAGAIN          11  /* No more processes                    */
  32. #define ENOMEM          12  /* Not enough memory                    */
  33. #define EACCES          13  /* Permission denied                    */
  34. #define EEXIST          17  /* File exists                          */
  35. #define EXDEV           18  /* Cross-device link                    */
  36. #define ENOTDIR         20  /* Not a directory                      */
  37. #define EISDIR          21  /* Is a directory                       */
  38. #define EINVAL          22  /* Invalid argument                     */
  39. #define EMFILE          24  /* Too many open files                  */
  40. #define ENOSPC          28  /* Disk full                            */
  41. #define ESPIPE          29  /* Illegal seek                         */
  42. #define EROFS           30  /* Read-only file system                */
  43. #define EPIPE           32  /* Broken pipe                          */
  44. #define EDOM            33  /* Domain error                         */
  45. #define ERANGE          34  /* Result too large                     */
  46. #define EMSDOS          37  /* Not supported under MS-DOS           */
  47. #define ENAMETOOLONG    38  /* File name too long                   */
  48.  
  49. #if defined (__cplusplus)
  50. }
  51. #endif
  52.  
  53. #endif /* !defined (_ERRNO_H) */
  54.