home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c034 / 4.ddi / INCLUDE / ERRNO.H$ / ERRNO.bin
Encoding:
Text File  |  1989-10-04  |  1.4 KB  |  72 lines

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