home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / h / errno < prev    next >
Encoding:
Text File  |  1995-01-11  |  5.2 KB  |  157 lines

  1. /*
  2.  * $Header: /ax/networking:include/errno.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/errno.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    errno.h,v $
  8.  * Revision 1.1  95/01/11  10:21:32  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.4     88/10/25  13:21:59  brian
  12.  * Shared library errors added.
  13.  * 
  14.  * Revision 1.3     88/06/17  20:19:06  beta
  15.  * Acorn Unix initial beta version
  16.  * 
  17.  */
  18. /* @(#)errno.h    1.4 87/06/02 3.2/4.3NFSSRC */
  19. /*
  20.  * Copyright (c) 1982, 1986 Regents of the University of California.
  21.  * All rights reserved.     The Berkeley software License Agreement
  22.  * specifies the terms and conditions for redistribution.
  23.  *
  24.  *    @(#)errno.h    7.1 (Berkeley) 6/4/86
  25.  */
  26.  
  27. #ifndef    __errno_h
  28. #define    __errno_h
  29.  
  30. #include "kernel.h"
  31.  
  32. /*
  33.  * global error variables, declared in socklib
  34.  */
  35. #ifndef KERNEL
  36. extern int errno;
  37. extern _kernel_oserror _inet_error;
  38.  
  39. /*
  40.  * this function returns the last error string
  41.  * returned from the Internet module
  42.  */
  43. extern char *_inet_err(void);
  44. #endif
  45.  
  46. /*
  47.  * Error codes
  48.  */
  49. #define    EPERM        1        /* Not owner */
  50. #define    ENOENT        2        /* No such file or directory */
  51. #define    ESRCH        3        /* No such process */
  52. #define    EINTR        4        /* Interrupted system call */
  53. #define    EIO        5        /* I/O error */
  54. #define    ENXIO        6        /* No such device or address */
  55. #define    E2BIG        7        /* Arg list too long */
  56. #define    ENOEXEC        8        /* Exec format error */
  57. #define    EBADF        9        /* Bad file number */
  58. #define    ECHILD        10        /* No children */
  59. #define    EAGAIN        11        /* No more processes */
  60. #define    ENOMEM        12        /* Not enough core */
  61. #define    EACCES        13        /* Permission denied */
  62. #define    EFAULT        14        /* Bad address */
  63. #define    ENOTBLK        15        /* Block device required */
  64. #define    EBUSY        16        /* Mount device busy */
  65. #define    EEXIST        17        /* File exists */
  66. #define    EXDEV        18        /* Cross-device link */
  67. #define    ENODEV        19        /* No such device */
  68. #define    ENOTDIR        20        /* Not a directory*/
  69. #define    EISDIR        21        /* Is a directory */
  70. #define    EINVAL        22        /* Invalid argument */
  71. #define    ENFILE        23        /* File table overflow */
  72. #define    EMFILE        24        /* Too many open files */
  73. #define    ENOTTY        25        /* Not a typewriter */
  74. #define    ETXTBSY        26        /* Text file busy */
  75. #define    EFBIG        27        /* File too large */
  76. #define    ENOSPC        28        /* No space left on device */
  77. #define    ESPIPE        29        /* Illegal seek */
  78. #define    EROFS        30        /* Read-only file system */
  79. #define    EMLINK        31        /* Too many links */
  80. #define    EPIPE        32        /* Broken pipe */
  81.  
  82. /* math software */
  83. #define    EDOM        33        /* Argument too large */
  84. #define    ERANGE        34        /* Result too large */
  85.  
  86. /* non-blocking and interrupt i/o */
  87. #define    EWOULDBLOCK    35        /* Operation would block */
  88. #define    EINPROGRESS    36        /* Operation now in progress */
  89. #define    EALREADY    37        /* Operation already in progress */
  90.  
  91. /* ipc/network software */
  92.  
  93.     /* argument errors */
  94. #define    ENOTSOCK    38        /* Socket operation on non-socket */
  95. #define    EDESTADDRREQ    39        /* Destination address required */
  96. #define    EMSGSIZE    40        /* Message too long */
  97. #define    EPROTOTYPE    41        /* Protocol wrong type for socket */
  98. #define    ENOPROTOOPT    42        /* Protocol not available */
  99. #define    EPROTONOSUPPORT 43        /* Protocol not supported */
  100. #define    ESOCKTNOSUPPORT 44        /* Socket type not supported */
  101. #define    EOPNOTSUPP    45        /* Operation not supported on socket */
  102. #define    EPFNOSUPPORT    46        /* Protocol family not supported */
  103. #define    EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  104. #define    EADDRINUSE    48        /* Address already in use */
  105. #define    EADDRNOTAVAIL    49        /* Can't assign requested address */
  106.  
  107.     /* operational errors */
  108. #define    ENETDOWN    50        /* Network is down */
  109. #define    ENETUNREACH    51        /* Network is unreachable */
  110. #define    ENETRESET    52        /* Network dropped connection on reset */
  111. #define    ECONNABORTED    53        /* Software caused connection abort */
  112. #define    ECONNRESET    54        /* Connection reset by peer */
  113. #define    ENOBUFS        55        /* No buffer space available */
  114. #define    EISCONN        56        /* Socket is already connected */
  115. #define    ENOTCONN    57        /* Socket is not connected */
  116. #define    ESHUTDOWN    58        /* Can't send after socket shutdown */
  117. #define    ETOOMANYREFS    59        /* Too many references: can't splice */
  118. #define    ETIMEDOUT    60        /* Connection timed out */
  119. #define    ECONNREFUSED    61        /* Connection refused */
  120.  
  121.     /* */
  122. #define    ELOOP        62        /* Too many levels of symbolic links */
  123. #define    ENAMETOOLONG    63        /* File name too long */
  124.  
  125. /* should be rearranged */
  126. #define    EHOSTDOWN    64        /* Host is down */
  127. #define    EHOSTUNREACH    65        /* No route to host */
  128. #define    ENOTEMPTY    66        /* Directory not empty */
  129.  
  130. /* quotas & mush */
  131. #define    EPROCLIM    67        /* Too many processes */
  132. #define    EUSERS        68        /* Too many users */
  133. #define    EDQUOT        69        /* Disc quota exceeded */
  134.  
  135. /* Network File System */
  136. #define    ESTALE        70        /* Stale NFS file handle */
  137. #define    EREMOTE        71        /* Too many levels of remote in path */
  138.  
  139. /* SystemV Record Locking */
  140. #define    EDEADLK        78        /* Deadlock condition. */
  141. #define    ENOLCK        79        /* No record locks available. */
  142.  
  143. /* SystemV IPC */
  144. #define    ENOMSG        80        /* No suitable message on queue */
  145. #define    EIDRM        81        /* Identifier removed from system */
  146.  
  147. /* Shared libraries */
  148. #define    ELIBVER        82        /* Wrong version of shared library */
  149. #define    ELIBACC        83        /* Permission denied (shared library) */ 
  150. #define    ELIBLIM        84        /* Shared libraries nested too deeply */
  151. #define    ELIBNOENT    85        /* Shared library file not found */
  152. #define    ELIBNOEXEC    86        /* Shared library exec format error */
  153.  
  154. #endif/*__errno_h*/
  155.  
  156. /* EOF errno.h */
  157.