need_errno.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /***
  2. * errno.h - system wide error numbers (set by system calls)
  3. *
  4. * Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. * Purpose:
  7. * This file defines the system-wide error numbers (set by
  8. * system calls). Conforms to the XENIX standard. Extended
  9. * for compatibility with Uniforum standard.
  10. * [System V]
  11. *
  12. * [Public]
  13. *
  14. ****/
  15. #ifndef _INC_ERRNO
  16. #define _INC_ERRNO
  17. #ifdef __cplusplus
  18. extern "C"
  19. {
  20. #endif
  21. /* declare reference to errno */
  22. extern int errno;
  23. /* Error Codes */
  24. #define EPERM 1
  25. #define ENOENT 2
  26. #define ESRCH 3
  27. #define EINTR 4
  28. #define EIO 5
  29. #define ENXIO 6
  30. #define E2BIG 7
  31. #define ENOEXEC 8
  32. #define EBADF 9
  33. #define ECHILD 10
  34. #define EAGAIN 11
  35. #define ENOMEM 12
  36. #define EACCES 13
  37. #define EFAULT 14
  38. #define EBUSY 16
  39. #define EEXIST 17
  40. #define EXDEV 18
  41. #define ENODEV 19
  42. #define ENOTDIR 20
  43. #define EISDIR 21
  44. #define EINVAL 22
  45. #define ENFILE 23
  46. #define EMFILE 24
  47. #define ENOTTY 25
  48. #define EFBIG 27
  49. #define ENOSPC 28
  50. #define ESPIPE 29
  51. #define EROFS 30
  52. #define EMLINK 31
  53. #define EPIPE 32
  54. #define EDOM 33
  55. #define ERANGE 34
  56. #define EDEADLK 36
  57. /* defined differently in winsock.h on WinCE */
  58. #ifndef ENAMETOOLONG
  59. #define ENAMETOOLONG 38
  60. #endif
  61. #define ENOLCK 39
  62. #define ENOSYS 40
  63. /* defined differently in winsock.h on WinCE */
  64. #ifndef ENOTEMPTY
  65. #define ENOTEMPTY 41
  66. #endif
  67. #define EILSEQ 42
  68. /*
  69. * Support EDEADLOCK for compatibiity with older MS-C versions.
  70. */
  71. #define EDEADLOCK EDEADLK
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75. #endif /* _INC_ERRNO */