home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / INCLUDE / ERRNO.H$ / ERRNO
Encoding:
Text File  |  1991-11-06  |  1.4 KB  |  76 lines

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