home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / INCLUDE.ZIP / ERRNO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  2.9 KB  |  89 lines

  1. /*    errno.h
  2.  
  3.     Defines the system error variable errno and the error
  4.     numbers set by system calls. Errors which exist in Unix(tm)
  5.     but not MSDOS have value -1.
  6.  
  7.         Copyright (c) Borland International 1987,1988,1990
  8.     All Rights Reserved.
  9. */
  10.  
  11. #ifndef __ERRNO_H
  12. #define __ERRNO_H
  13.  
  14. #if __STDC__
  15. #define _Cdecl
  16. #else
  17. #define _Cdecl    cdecl
  18. #endif
  19.  
  20. #ifndef __PAS__
  21. #define _CType _Cdecl
  22. #else
  23. #define _CType pascal
  24. #endif
  25.  
  26. /*  Dos Error Codes */
  27.  
  28. #define EZERO     0        /* Error 0                    */
  29. #define EINVFNC     1        /* Invalid function number    */
  30. #define ENOFILE     2        /* File not found            */
  31. #define ENOPATH     3        /* Path not found            */
  32. #define ECONTR     7        /* Memory blocks destroyed    */
  33. #define EINVMEM     9        /* Invalid memory block address */
  34. #define EINVENV 10        /* Invalid environment        */
  35. #define EINVFMT 11        /* Invalid format            */
  36. #define EINVACC 12        /* Invalid access code        */
  37. #define EINVDAT 13        /* Invalid data                */
  38. #define EINVDRV 15        /* Invalid drive specified    */
  39. #define ECURDIR 16        /* Attempt to remove CurDir    */
  40. #define ENOTSAM 17        /* Not same device            */
  41. #define ENMFILE 18        /* No more files            */
  42.  
  43. #define ENOENT     2        /* No such file or directory*/
  44. #define EMFILE     4        /* Too many open files        */
  45. #define EACCES     5        /* Permission denied        */
  46. #define EBADF     6        /* Bad file number            */
  47. #define ENOMEM     8        /* Not enough core            */
  48. #define ENODEV    15        /* No such device            */
  49. #define EINVAL    19        /* Invalid argument            */
  50. #define E2BIG    20        /* Arg list too long        */
  51. #define ENOEXEC 21        /* Exec format error        */
  52. #define EXDEV    22        /* Cross-device link        */
  53. #define EDOM    33        /* Math argument            */
  54. #define ERANGE    34        /* Result too large            */
  55. #define EEXIST    35        /* File already exists        */
  56. #define ECHILD    -1        /* Unix/DOS                 */
  57. #define EFAULT    -1        /* Unknown error            */
  58. #define EPERM    -1        /* UNIX - not MSDOS            */
  59. #define ESRCH    -1        /* UNIX - not MSDOS            */
  60. #define EINTR    -1        /* UNIX - not MSDOS            */
  61. #define EIO        -1        /* UNIX - not MSDOS            */
  62. #define ENXIO    -1        /* UNIX - not MSDOS            */
  63. #define EAGAIN    -1        /* UNIX - not MSDOS            */
  64. #define ENOTBLK -1        /* UNIX - not MSDOS            */
  65. #define EBUSY    -1        /* UNIX - not MSDOS            */
  66. #define ENOTDIR -1        /* UNIX - not MSDOS            */
  67. #define EISDIR    -1        /* UNIX - not MSDOS            */
  68. #define ENFILE    -1        /* UNIX - not MSDOS            */
  69. #define ENOTTY    -1        /* UNIX - not MSDOS            */
  70. #define ETXTBSY -1        /* UNIX - not MSDOS            */
  71. #define EFBIG    -1        /* UNIX - not MSDOS            */
  72. #define ENOSPC    -1        /* UNIX - not MSDOS            */
  73. #define ESPIPE    -1        /* UNIX - not MSDOS            */
  74. #define EROFS    -1        /* UNIX - not MSDOS            */
  75. #define EMLINK    -1        /* UNIX - not MSDOS            */
  76. #define EPIPE    -1        /* UNIX - not MSDOS            */
  77. #define EUCLEAN -1        /* UNIX - not MSDOS            */
  78.  
  79. extern    int    _Cdecl  errno;
  80. extern    int    _Cdecl    _doserrno;
  81.  
  82. extern    unsigned _Cdecl _localseg; 
  83.  
  84. #if !__STDC__
  85. #define _sys_nerr   35        /* highest defined system error number */
  86. #endif
  87.  
  88. #endif
  89.