errno.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the w64 mingw-runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER within this package.
  5. */
  6. #ifndef _INC_ERRNO
  7. #define _INC_ERRNO
  8. #include <_mingw.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #ifndef _CRT_ERRNO_DEFINED
  13. #define _CRT_ERRNO_DEFINED
  14. _CRTIMP extern int *__cdecl _errno(void);
  15. #define errno (*_errno())
  16. errno_t __cdecl _set_errno(int _Value);
  17. errno_t __cdecl _get_errno(int *_Value);
  18. #endif
  19. #define EPERM 1
  20. #define ENOENT 2
  21. #define ESRCH 3
  22. #define EINTR 4
  23. #define EIO 5
  24. #define ENXIO 6
  25. #define E2BIG 7
  26. #define ENOEXEC 8
  27. #define EBADF 9
  28. #define ECHILD 10
  29. #define EAGAIN 11
  30. #define ENOMEM 12
  31. #define EACCES 13
  32. #define EFAULT 14
  33. #define EBUSY 16
  34. #define EEXIST 17
  35. #define EXDEV 18
  36. #define ENODEV 19
  37. #define ENOTDIR 20
  38. #define EISDIR 21
  39. #define ENFILE 23
  40. #define EMFILE 24
  41. #define ENOTTY 25
  42. #define EFBIG 27
  43. #define ENOSPC 28
  44. #define ESPIPE 29
  45. #define EROFS 30
  46. #define EMLINK 31
  47. #define EPIPE 32
  48. #define EDOM 33
  49. #define EDEADLK 36
  50. #define ENAMETOOLONG 38
  51. #define ENOLCK 39
  52. #define ENOSYS 40
  53. #define ENOTEMPTY 41
  54. #ifndef RC_INVOKED
  55. #if !defined(_SECURECRT_ERRCODE_VALUES_DEFINED)
  56. #define _SECURECRT_ERRCODE_VALUES_DEFINED
  57. #define EINVAL 22
  58. #define ERANGE 34
  59. #define EILSEQ 42
  60. #define STRUNCATE 80
  61. #endif
  62. #endif
  63. #define EDEADLOCK EDEADLK
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif