home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJDEV201.ZIP / include / errno.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-01  |  1.4 KB  |  75 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_errno_h_
  3. #define __dj_include_errno_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #define EDOM        1
  12. #define ERANGE        2
  13.  
  14. extern int errno;
  15.   
  16. #ifndef __STRICT_ANSI__
  17.  
  18. #define E2BIG        3
  19. #define EACCES        4
  20. #define EAGAIN        5
  21. #define EBADF        6
  22. #define EBUSY        7
  23. #define ECHILD        8
  24. #define EDEADLK        9
  25. #define EEXIST        10
  26. #define EFAULT        11
  27. #define EFBIG        12
  28. #define EINTR        13
  29. #define EINVAL        14
  30. #define EIO        15
  31. #define EISDIR        16
  32. #define EMFILE        17
  33. #define EMLINK        18
  34. #define ENAMETOOLONG    19
  35. #define ENFILE        20
  36. #define ENODEV        21
  37. #define ENOENT        22
  38. #define ENOEXEC        23
  39. #define ENOLCK        24
  40. #define ENOMEM        25
  41. #define ENOSPC        26
  42. #define ENOSYS        27
  43. #define ENOTDIR        28
  44. #define ENOTEMPTY    29
  45. #define ENOTTY        30
  46. #define ENXIO        31
  47. #define EPERM        32
  48. #define EPIPE        33
  49. #define EROFS        34
  50. #define ESPIPE        35
  51. #define ESRCH        36
  52. #define EXDEV        37
  53.  
  54. #ifndef _POSIX_SOURCE
  55.  
  56. #define ENMFILE        38
  57.  
  58. extern char *        sys_errlist[];
  59. extern int        sys_nerr;
  60. extern const char *    __sys_errlist[];
  61. extern int        __sys_nerr;
  62.  
  63. #endif /* !_POSIX_SOURCE */
  64. #endif /* !__STRICT_ANSI__ */
  65. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  66.  
  67. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  68. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73.  
  74. #endif /* !__dj_include_errno_h_ */
  75.