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.

71 lines
1.4 KiB

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