home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / errno.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-13  |  4.7 KB  |  132 lines

  1. /*
  2.  *    @(#) errno.h 2.2 88/07/13 
  3.  *
  4.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
  5.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
  6.  *    This Module contains Proprietary Information of
  7.  *    The Santa Cruz Operation, Microsoft Corporation
  8.  *    and AT&T, and should be treated as Confidential.
  9.  */
  10.  
  11. /*
  12.  * Error codes
  13.  */
  14.  
  15. #define    EPERM    1    /* Not super-user            */
  16. #define    ENOENT    2    /* No such file or directory        */
  17. #define    ESRCH    3    /* No such process            */
  18. #define    EINTR    4    /* interrupted system call        */
  19. #define    EIO    5    /* I/O error                */
  20. #define    ENXIO    6    /* No such device or address        */
  21. #define    E2BIG    7    /* Arg list too long            */
  22. #define    ENOEXEC    8    /* Exec format error            */
  23. #define    EBADF    9    /* Bad file number            */
  24. #define    ECHILD    10    /* No children                */
  25. #define    EAGAIN    11    /* No more processes            */
  26. #define    ENOMEM    12    /* Not enough core            */
  27. #define    EACCES    13    /* Permission denied            */
  28. #define    EFAULT    14    /* Bad address                */
  29. #define    ENOTBLK    15    /* Block device required        */
  30. #define    EBUSY    16    /* Mount device busy            */
  31. #define    EEXIST    17    /* File exists                */
  32. #define    EXDEV    18    /* Cross-device link            */
  33. #define    ENODEV    19    /* No such device            */
  34. #define    ENOTDIR    20    /* Not a directory            */
  35. #define    EISDIR    21    /* Is a directory            */
  36. #define    EINVAL    22    /* Invalid argument            */
  37. #define    ENFILE    23    /* File table overflow            */
  38. #define    EMFILE    24    /* Too many open files            */
  39. #define    ENOTTY    25    /* Not a typewriter            */
  40. #define    ETXTBSY    26    /* Text file busy            */
  41. #define    EFBIG    27    /* File too large            */
  42. #define    ENOSPC    28    /* No space left on device        */
  43. #define    ESPIPE    29    /* Illegal seek                */
  44. #define    EROFS    30    /* Read only file system        */
  45. #define    EMLINK    31    /* Too many links            */
  46. #define    EPIPE    32    /* Broken pipe                */
  47. #define    EDOM    33    /* Math arg out of domain of func    */
  48. #define    ERANGE    34    /* Math result not representable    */
  49.  
  50. #ifdef M_I386
  51. #define    ENOMSG    35    /* No message of desired type        */
  52. #define    EIDRM    36    /* Identifier removed            */
  53. #define    ECHRNG    37    /* Channel number out of range        */
  54. #define    EL2NSYNC 38    /* Level 2 not synchronized        */
  55. #define    EL3HLT    39    /* Level 3 halted            */
  56. #define    EL3RST    40    /* Level 3 reset            */
  57. #define    ELNRNG    41    /* Link number out of range        */
  58. #define    EUNATCH 42    /* Protocol driver not attached        */
  59. #define    ENOCSI    43    /* No CSI structure available        */
  60. #define    EL2HLT    44    /* Level 2 halted            */
  61. #define    EDEADLK    45    /* Deadlock condition.            */
  62. #define    ENOLCK    46    /* No record locks available.        */
  63.  
  64. /* Convergent Error Returns */
  65. #define EBADE    50    /* invalid exchange            */
  66. #define EBADR    51    /* invalid request descriptor        */
  67. #define EXFULL    52    /* exchange full            */
  68. #define ENOANO    53    /* no anode                */
  69. #define EBADRQC    54    /* invalid request code            */
  70. #define EBADSLT    55    /* invalid slot                */
  71. #define EDEADLOCK 56    /* file locking deadlock error        */
  72.  
  73. #define EBFONT    57    /* bad font file fmt            */
  74.  
  75. /* stream problems */
  76. #define ENOSTR    60    /* Device not a stream            */
  77. #define ENODATA    61    /* no data (for no delay io)        */
  78. #define ETIME    62    /* timer expired            */
  79. #define ENOSR    63    /* out of streams resources        */
  80.  
  81. #define ENONET    64    /* Machine is not on the network    */
  82. #define ENOPKG    65    /* Package not installed                */
  83. #define EREMOTE    66    /* The object is remote            */
  84. #define ENOLINK    67    /* the link has been severed */
  85. #define EADV    68    /* advertise error */
  86. #define ESRMNT    69    /* srmount error */
  87.  
  88. #define    ECOMM    70    /* Communication error on send        */
  89. #define EPROTO    71    /* Protocol error            */
  90. #define    EMULTIHOP 74    /* multihop attempted */
  91. #define    ELBIN    75    /* Inode is remote (not really error)*/
  92. #define    EDOTDOT 76    /* Cross mount point (not really error)*/
  93. #define EBADMSG 77    /* trying to read unreadable message    */
  94.  
  95. #define ENOTUNIQ 80    /* given log. name not unique */
  96. #define EBADFD     81    /* f.d. invalid for this operation */
  97. #define EREMCHG     82    /* Remote address changed */
  98.  
  99. /* shared library problems */
  100. #define ELIBACC    83    /* Can't access a needed shared lib.    */
  101. #define ELIBBAD    84    /* Accessing a corrupted shared lib.    */
  102. #define ELIBSCN    85    /* .lib section in a.out corrupted.    */
  103. #define ELIBMAX    86    /* Attempting to link in too many libs.    */
  104. #define ELIBEXEC    87    /* Attempting to exec a shared library.    */
  105.  
  106.  
  107. /* MS */
  108. #define    EUCLEAN    135    /* File system needs cleaning        */
  109. #define    ENOTNAM    137    /* Not a name file            */
  110. #define    ENAVAIL    138    /* Not available            */
  111. #define    EISNAM    139    /* Is a name file            */
  112. #define EREMOTEIO 140
  113. #define EINIT    141
  114. #define EREMDEV 142
  115.  
  116. #else /* M_I286, ... */
  117.  
  118. #define    EUCLEAN    35    /* File system needs cleaning        */
  119. #define    EDEADLOCK    36    /* Would deadlock        */
  120. #define    EDEADLK    EDEADLOCK    /* Would deadlock        */
  121. #define    ENOTNAM    37    /* Not a name file            */
  122. #define    ENAVAIL    38    /* Not available            */
  123. #define    EISNAM    39    /* Is a name file            */
  124. #define EREMOTEIO 40
  125. #define EINIT    41
  126. #define EREMDEV 42
  127. #define ENOMSG  43
  128. #define EIDRM   44
  129. #define ENOLCK  45
  130. #endif
  131.  
  132.