home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / errno.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  7.5 KB  |  190 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_ERRNO_H
  11. #define _SYS_ERRNO_H
  12.  
  13. #ident    "@(#)/usr/include/sys/errno.h.sl 1.1 4.0 12/08/90 48012 AT&T-USL"
  14.  
  15. /*
  16.  *          PROPRIETARY NOTICE (Combined)
  17.  *  
  18.  *  This source code is unpublished proprietary information
  19.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  20.  *  In addition, portions of such source code were derived from Berkeley
  21.  *  4.3 BSD under license from the Regents of the University of
  22.  *  California.
  23.  *  
  24.  *  
  25.  *  
  26.  *          Copyright Notice 
  27.  *  
  28.  *  Notice of copyright on this source code product does not indicate 
  29.  *  publication.
  30.  *  
  31.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  32.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  33.  *                All rights reserved.
  34.  */
  35.  
  36. /*
  37.  * Error codes
  38.  */
  39.  
  40. #define    EPERM    1    /* Not super-user            */
  41. #define    ENOENT    2    /* No such file or directory        */
  42. #define    ESRCH    3    /* No such process            */
  43. #define    EINTR    4    /* interrupted system call        */
  44. #define    EIO    5    /* I/O error                */
  45. #define    ENXIO    6    /* No such device or address        */
  46. #define    E2BIG    7    /* Arg list too long            */
  47. #define    ENOEXEC    8    /* Exec format error            */
  48. #define    EBADF    9    /* Bad file number            */
  49. #define    ECHILD    10    /* No children                */
  50. #define    EAGAIN    11    /* No more processes            */
  51. #define    ENOMEM    12    /* Not enough core            */
  52. #define    EACCES    13    /* Permission denied            */
  53. #define    EFAULT    14    /* Bad address                */
  54. #define    ENOTBLK    15    /* Block device required        */
  55. #define    EBUSY    16    /* Mount device busy            */
  56. #define    EEXIST    17    /* File exists                */
  57. #define    EXDEV    18    /* Cross-device link            */
  58. #define    ENODEV    19    /* No such device            */
  59. #define    ENOTDIR    20    /* Not a directory            */
  60. #define    EISDIR    21    /* Is a directory            */
  61. #define    EINVAL    22    /* Invalid argument            */
  62. #define    ENFILE    23    /* File table overflow            */
  63. #define    EMFILE    24    /* Too many open files            */
  64. #define    ENOTTY    25    /* Not a typewriter            */
  65. #define    ETXTBSY    26    /* Text file busy            */
  66. #define    EFBIG    27    /* File too large            */
  67. #define    ENOSPC    28    /* No space left on device        */
  68. #define    ESPIPE    29    /* Illegal seek                */
  69. #define    EROFS    30    /* Read only file system        */
  70. #define    EMLINK    31    /* Too many links            */
  71. #define    EPIPE    32    /* Broken pipe                */
  72. #define    EDOM    33    /* Math arg out of domain of func    */
  73. #define    ERANGE    34    /* Math result not representable    */
  74. #define    ENOMSG    35    /* No message of desired type        */
  75. #define    EIDRM    36    /* Identifier removed            */
  76. #define    ECHRNG    37    /* Channel number out of range        */
  77. #define    EL2NSYNC 38    /* Level 2 not synchronized        */
  78. #define    EL3HLT    39    /* Level 3 halted            */
  79. #define    EL3RST    40    /* Level 3 reset            */
  80. #define    ELNRNG    41    /* Link number out of range        */
  81. #define    EUNATCH 42    /* Protocol driver not attached        */
  82. #define    ENOCSI    43    /* No CSI structure available        */
  83. #define    EL2HLT    44    /* Level 2 halted            */
  84. #define    EDEADLK    45    /* Deadlock condition.            */
  85. #define    ENOLCK    46    /* No record locks available.        */
  86.  
  87. /* Convergent Error Returns */
  88. #define EBADE    50    /* invalid exchange            */
  89. #define EBADR    51    /* invalid request descriptor        */
  90. #define EXFULL    52    /* exchange full            */
  91. #define ENOANO    53    /* no anode                */
  92. #define EBADRQC    54    /* invalid request code            */
  93. #define EBADSLT    55    /* invalid slot                */
  94. #define EDEADLOCK 56    /* file locking deadlock error        */
  95.  
  96. #define EBFONT    57    /* bad font file fmt            */
  97.  
  98. /* stream problems */
  99. #define ENOSTR    60    /* Device not a stream            */
  100. #define ENODATA    61    /* no data (for no delay io)        */
  101. #define ETIME    62    /* timer expired            */
  102. #define ENOSR    63    /* out of streams resources        */
  103.  
  104. #define ENONET    64    /* Machine is not on the network    */
  105. #define ENOPKG    65    /* Package not installed                */
  106. #define EREMOTE    66    /* The object is remote            */
  107. #define ENOLINK    67    /* the link has been severed */
  108. #define EADV    68    /* advertise error */
  109. #define ESRMNT    69    /* srmount error */
  110.  
  111. #define    ECOMM    70    /* Communication error on send        */
  112. #define EPROTO    71    /* Protocol error            */
  113. #define    EMULTIHOP 74    /* multihop attempted */
  114. #define EBADMSG 77    /* trying to read unreadable message    */
  115. #define ENAMETOOLONG 78    /* path name is too long */
  116. #define EOVERFLOW 79    /* value too large to be stored in data type */
  117. #define ENOTUNIQ 80    /* given log. name not unique */
  118. #define EBADFD     81    /* f.d. invalid for this operation */
  119. #define EREMCHG     82    /* Remote address changed */
  120.  
  121. /* shared library problems */
  122. #define ELIBACC    83    /* Can't access a needed shared lib.    */
  123. #define ELIBBAD    84    /* Accessing a corrupted shared lib.    */
  124. #define ELIBSCN    85    /* .lib section in a.out corrupted.    */
  125. #define ELIBMAX    86    /* Attempting to link in too many libs.    */
  126. #define ELIBEXEC 87    /* Attempting to exec a shared library.    */
  127. #define    EILSEQ 88    /* Illegal byte sequence. */
  128. #define ENOSYS 89    /* Unsupported file system operation */
  129. #define ELOOP    90    /* Symbolic link loop */
  130. #define    ERESTART 91    /* Restartable system call */
  131. #define ESTRPIPE 92    /* if pipe/FIFO, don't sleep in stream head */
  132. #define ENOTEMPTY 93    /* directory not empty */
  133. #define EUSERS    94    /* Too many users (for UFS) */
  134.  
  135. /* BSD Networking Software */
  136.     /* argument errors */
  137. #define    ENOTSOCK    95        /* Socket operation on non-socket */
  138. #define    EDESTADDRREQ    96        /* Destination address required */
  139. #define    EMSGSIZE    97        /* Message too long */
  140. #define    EPROTOTYPE    98        /* Protocol wrong type for socket */
  141. #define    ENOPROTOOPT    99        /* Protocol not available */
  142. #define    EPROTONOSUPPORT    120        /* Protocol not supported */
  143. #define    ESOCKTNOSUPPORT    121        /* Socket type not supported */
  144. #define    EOPNOTSUPP    122        /* Operation not supported on socket */
  145. #define    EPFNOSUPPORT    123        /* Protocol family not supported */
  146. #define    EAFNOSUPPORT    124        /* Address family not supported by 
  147.                        protocol family */
  148. #define    EADDRINUSE    125        /* Address already in use */
  149. #define    EADDRNOTAVAIL    126        /* Can't assign requested address */
  150.     /* operational errors */
  151. #define    ENETDOWN    127        /* Network is down */
  152. #define    ENETUNREACH    128        /* Network is unreachable */
  153. #define    ENETRESET    129        /* Network dropped connection because
  154.                        of reset */
  155. #define    ECONNABORTED    130        /* Software caused connection abort */
  156. #define    ECONNRESET    131        /* Connection reset by peer */
  157. #define    ENOBUFS        132               /* No buffer space available */
  158. #define    EISCONN        133        /* Socket is already connected */
  159. #define    ENOTCONN    134        /* Socket is not connected */
  160. /* XENIX has 135 - 142 */
  161. #define    ESHUTDOWN    143        /* Can't send after socket shutdown */
  162. #define    ETOOMANYREFS    144        /* Too many references: can't splice */
  163. #define    ETIMEDOUT    145        /* Connection timed out */
  164. #define    ECONNREFUSED    146        /* Connection refused */
  165. #define    EHOSTDOWN    147        /* Host is down */
  166. #define    EHOSTUNREACH    148        /* No route to host */
  167. #define EWOULDBLOCK    EAGAIN
  168. #define EALREADY    149        /* operation already in progress */
  169. #define EINPROGRESS    150        /* operation now in progress */
  170.  
  171. /* SUN Network File System */
  172. #define    ESTALE        151        /* Stale NFS file handle */
  173.  
  174. /* Pyramid's AIO Compatibility - raw disk async I/O */
  175.  
  176. #define EIORESID    500        /* block not fully transferred */
  177.  
  178. /* XENIX Support */
  179. /* XENIX error numbers */
  180. #define EUCLEAN     135    /* Structure needs cleaning */
  181. #define    ENOTNAM        137    /* Not a XENIX named type file */
  182. #define    ENAVAIL        138    /* No XENIX semaphores available */
  183. #define    EISNAM        139    /* Is a named type file */
  184. #define EREMOTEIO    140    /* Remote I/O error */
  185. #define EINIT        141    /* Reserved for future */
  186. #define EREMDEV        142    /* Error 142 */
  187. /* End XENIX Support */
  188.  
  189. #endif    /* _SYS_ERRNO_H */
  190.