Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.7 KiB

  1. /***
  2. *errno.h - system wide error numbers (set by system calls)
  3. *
  4. * Copyright (c) 1985-1992, 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. * [ANSI/System V]
  11. *
  12. ****/
  13. #ifndef _INC_ERRNO
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #if (_MSC_VER <= 600)
  18. #define __cdecl _cdecl
  19. #define __far _far
  20. #define __near _near
  21. #endif
  22. /* declare reference to errno */
  23. #ifdef _MT
  24. extern int __far * __cdecl __far volatile _errno(void);
  25. #define errno (*_errno())
  26. #else
  27. extern int __near __cdecl volatile errno;
  28. #endif
  29. /* Error Codes */
  30. #define EZERO 0
  31. #define EPERM 1
  32. #define ENOENT 2
  33. #define ESRCH 3
  34. #define EINTR 4
  35. #define EIO 5
  36. #define ENXIO 6
  37. #define E2BIG 7
  38. #define ENOEXEC 8
  39. #define EBADF 9
  40. #define ECHILD 10
  41. #define EAGAIN 11
  42. #define ENOMEM 12
  43. #define EACCES 13
  44. #define EFAULT 14
  45. #define ENOTBLK 15
  46. #define EBUSY 16
  47. #define EEXIST 17
  48. #define EXDEV 18
  49. #define ENODEV 19
  50. #define ENOTDIR 20
  51. #define EISDIR 21
  52. #define EINVAL 22
  53. #define ENFILE 23
  54. #define EMFILE 24
  55. #define ENOTTY 25
  56. #define ETXTBSY 26
  57. #define EFBIG 27
  58. #define ENOSPC 28
  59. #define ESPIPE 29
  60. #define EROFS 30
  61. #define EMLINK 31
  62. #define EPIPE 32
  63. #define EDOM 33
  64. #define ERANGE 34
  65. #define EUCLEAN 35
  66. #define EDEADLOCK 36
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #define _INC_ERRNO
  71. #endif