home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c045 / 2.ddi / INCLUDE / ERRNO.H$ / ERRNO.bin
Encoding:
Text File  |  1992-01-01  |  1.7 KB  |  92 lines

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