home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c063 / 1.ddi / INCLUDE.ZIP / ERRNO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  3.3 KB  |  80 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) 1987, 1991 by Borland International
  8.     All Rights Reserved.
  9. */
  10.  
  11. #ifndef __ERRNO_H
  12. #define __ERRNO_H
  13.  
  14. #if !defined( __DEFS_H )
  15. #include <_defs.h>
  16. #endif
  17.  
  18. /*  Dos Error Codes */
  19.  
  20. #define EZERO    0      /* Error 0                  */
  21. #define EINVFNC  1      /* Invalid function number  */
  22. #define ENOFILE  2      /* File not found           */
  23. #define ENOPATH  3      /* Path not found           */
  24. #define ECONTR   7      /* Memory blocks destroyed  */
  25. #define EINVMEM  9      /* Invalid memory block address */
  26. #define EINVENV 10      /* Invalid environment      */
  27. #define EINVFMT 11      /* Invalid format           */
  28. #define EINVACC 12      /* Invalid access code      */
  29. #define EINVDAT 13      /* Invalid data             */
  30. #define EINVDRV 15      /* Invalid drive specified  */
  31. #define ECURDIR 16      /* Attempt to remove CurDir */
  32. #define ENOTSAM 17      /* Not same device          */
  33. #define ENMFILE 18      /* No more files            */
  34.  
  35. #define ENOENT   2      /* No such file or directory*/
  36. #define EMFILE   4      /* Too many open files      */
  37. #define EACCES   5      /* Permission denied        */
  38. #define EBADF    6      /* Bad file number          */
  39. #define ENOMEM   8      /* Not enough core          */
  40. #define ENODEV  15      /* No such device           */
  41. #define EINVAL  19      /* Invalid argument         */
  42. #define E2BIG   20      /* Arg list too long        */
  43. #define ENOEXEC 21      /* Exec format error        */
  44. #define EXDEV   22      /* Cross-device link        */
  45. #define EDOM    33      /* Math argument            */
  46. #define ERANGE  34      /* Result too large         */
  47. #define EEXIST  35      /* File already exists      */
  48. #define EDEADLOCK 36    /* Locking violation        */
  49. #define ECHILD  -1      /* Unix/DOS                 */
  50. #define EFAULT  -1      /* Unknown error            */
  51. #define EPERM   -1      /* UNIX - not MSDOS         */
  52. #define ESRCH   -1      /* UNIX - not MSDOS         */
  53. #define EINTR   -1      /* UNIX - not MSDOS         */
  54. #define EIO     -1      /* UNIX - not MSDOS         */
  55. #define ENXIO   -1      /* UNIX - not MSDOS         */
  56. #define EAGAIN  -1      /* UNIX - not MSDOS         */
  57. #define ENOTBLK -1      /* UNIX - not MSDOS         */
  58. #define EBUSY   -1      /* UNIX - not MSDOS         */
  59. #define ENOTDIR -1      /* UNIX - not MSDOS         */
  60. #define EISDIR  -1      /* UNIX - not MSDOS         */
  61. #define ENFILE  -1      /* UNIX - not MSDOS         */
  62. #define ENOTTY  -1      /* UNIX - not MSDOS         */
  63. #define ETXTBSY -1      /* UNIX - not MSDOS         */
  64. #define EFBIG   -1      /* UNIX - not MSDOS         */
  65. #define ENOSPC  -1      /* UNIX - not MSDOS         */
  66. #define ESPIPE  -1      /* UNIX - not MSDOS         */
  67. #define EROFS   -1      /* UNIX - not MSDOS         */
  68. #define EMLINK  -1      /* UNIX - not MSDOS         */
  69. #define EPIPE   -1      /* UNIX - not MSDOS         */
  70. #define EUCLEAN -1      /* UNIX - not MSDOS         */
  71.  
  72. extern  int _Cdecl  errno;
  73. extern  int _Cdecl  _doserrno;
  74.  
  75. #if !__STDC__
  76. #define _sys_nerr   35      /* highest defined system error number */
  77. #endif
  78.  
  79. #endif
  80.