Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

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