home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gccdist / gcc / include / errno.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-12  |  3.9 KB  |  101 lines

  1. /*
  2.  *    VAX-11 "C" runtime error codes (+ codes we may use later)
  3.  */
  4.  
  5. #define EPERM        1        /* Not owner */
  6. #define ENOENT        2        /* No such file or directory */
  7. #define ESRCH        3        /* No such process */
  8. #define EINTR        4        /* Interrupted system call */
  9. #define EIO        5        /* I/O error */
  10. #define ENXIO        6        /* No such device or address */
  11. #define E2BIG        7        /* Arg list too long */
  12. #define ENOEXEC        8        /* Exec format error */
  13. #define EBADF        9        /* Bad file number */
  14. #define ECHILD        10        /* No children */
  15. #define EAGAIN        11        /* No more processes */
  16. #define ENOMEM        12        /* Not enough core */
  17. #define EACCES        13        /* Permission denied */
  18. #define EFAULT        14        /* Bad address */
  19. #define ENOTBLK        15        /* Block device required */
  20. #define EBUSY        16        /* Mount device busy */
  21. #define EEXIST        17        /* File exists */
  22. #define EXDEV        18        /* Cross-device link */
  23. #define ENODEV        19        /* No such device */
  24. #define ENOTDIR        20        /* Not a directory*/
  25. #define EISDIR        21        /* Is a directory */
  26. #define EINVAL        22        /* Invalid argument */
  27. #define ENFILE        23        /* File table overflow */
  28. #define EMFILE        24        /* Too many open files */
  29. #define ENOTTY        25        /* Not a typewriter */
  30. #define ETXTBSY        26        /* Text file busy */
  31. #define EFBIG        27        /* File too large */
  32. #define ENOSPC        28        /* No space left on device */
  33. #define ESPIPE        29        /* Illegal seek */
  34. #define EROFS        30        /* Read-only file system */
  35. #define EMLINK        31        /* Too many links */
  36. #define EPIPE        32        /* Broken pipe */
  37.  
  38. /* math software */
  39. #define EDOM        33        /* Argument too large */
  40. #define ERANGE        34        /* Result too large */
  41.  
  42. /* non-blocking and interrupt i/o */
  43. #define EWOULDBLOCK    35        /* Operation would block */
  44. #define EINPROGRESS    36        /* Operation now in progress */
  45. #define EALREADY    37        /* Operation already in progress */
  46. /* ipc/network software */
  47.  
  48.     /* argument errors */
  49. #define ENOTSOCK    38        /* Socket operation on non-socket */
  50. #define EDESTADDRREQ    39        /* Destination address required */
  51. #define EMSGSIZE    40        /* Message too long */
  52. #define EPROTOTYPE    41        /* Protocol wrong type for socket */
  53. #define ENOPROTOOPT    42        /* Protocol not available */
  54. #define EPROTONOSUPPORT 43        /* Protocol not supported */
  55. #define ESOCKTNOSUPPORT 44        /* Socket type not supported */
  56. #define EOPNOTSUPP    45        /* Operation not supported on socket */
  57. #define EPFNOSUPPORT    46        /* Protocol family not supported */
  58. #define EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  59. #define EADDRINUSE    48        /* Address already in use */
  60. #define EADDRNOTAVAIL    49        /* Can't assign requested address */
  61.  
  62.     /* operational errors */
  63. #define ENETDOWN    50        /* Network is down */
  64. #define ENETUNREACH    51        /* Network is unreachable */
  65. #define ENETRESET    52        /* Network dropped connection on reset */
  66. #define ECONNABORTED    53        /* Software caused connection abort */
  67. #define ECONNRESET    54        /* Connection reset by peer */
  68. #define ENOBUFS        55        /* No buffer space available */
  69. #define EISCONN        56        /* Socket is already connected */
  70. #define ENOTCONN    57        /* Socket is not connected */
  71. #define ESHUTDOWN    58        /* Can't send after socket shutdown */
  72. #define ETOOMANYREFS    59        /* Too many references: can't splice */
  73. #define ETIMEDOUT    60        /* Connection timed out */
  74. #define ECONNREFUSED    61        /* Connection refused */
  75.  
  76.     /* */
  77. #define ELOOP        62        /* Too many levels of symbolic links */
  78. #define ENAMETOOLONG    63        /* File name too long */
  79.  
  80. /* should be rearranged */
  81. #define EHOSTDOWN    64        /* Host is down */
  82. #define EHOSTUNREACH    65        /* No route to host */
  83. #define ENOTEMPTY    66        /* Directory not empty */
  84.  
  85. /* quotas & mush */
  86. #define EPROCLIM    67        /* Too many processes */
  87. #define EUSERS        68        /* Too many users */
  88. #define EDQUOT        69        /* Disc quota exceeded */
  89.  
  90. #define EVMSERR 65535        /* VMS-specific error code for non-translatable errors from VMS to C */
  91.  
  92.  
  93. /*
  94.  *    Define the VAX-11 "C" runtime variables
  95.  */
  96. extern int      errno __asm("_$$PsectAttributes_NOSHR$$errno");
  97.         /* UNIX style error code */
  98. #define vaxc$errno __gnu_vaxc_errno__
  99. extern int vaxc$errno __asm("_$$PsectAttributes_NOSHR$$vaxc$errno");
  100.     /* VMS error code when errno = EVMSERR */
  101.