home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Include / asm / errno.h < prev    next >
C/C++ Source or Header  |  2002-04-26  |  6KB  |  135 lines

  1. /* $Id: errno.h,v 1.2 2002/04/26 23:09:19 smilcke Exp $ */
  2.  
  3. #ifndef _I386_ERRNO_H
  4. #define _I386_ERRNO_H
  5.  
  6. #define    EPERM         1    /* Operation not permitted */
  7. #define    ENOENT         2    /* No such file or directory */
  8. #define    ESRCH         3    /* No such process */
  9. #define    EINTR         4    /* Interrupted system call */
  10. #define    EIO         5    /* I/O error */
  11. #define    ENXIO         6    /* No such device or address */
  12. #define    E2BIG         7    /* Arg list too long */
  13. #define    ENOEXEC         8    /* Exec format error */
  14. #define    EBADF         9    /* Bad file number */
  15. #define    ECHILD        10    /* No child processes */
  16. #define    EAGAIN        11    /* Try again */
  17. #define    ENOMEM        12    /* Out of memory */
  18. #define    EACCES        13    /* Permission denied */
  19. #define    EFAULT        14    /* Bad address */
  20. #define    ENOTBLK        15    /* Block device required */
  21. #define    EBUSY        16    /* Device or resource busy */
  22. #define    EEXIST        17    /* File exists */
  23. #define    EXDEV        18    /* Cross-device link */
  24. #define    ENODEV        19    /* No such device */
  25. #define    ENOTDIR        20    /* Not a directory */
  26. #define    EISDIR        21    /* Is a directory */
  27. #define    EINVAL        22    /* Invalid argument */
  28. #define    ENFILE        23    /* File table overflow */
  29. #define    EMFILE        24    /* Too many open files */
  30. #define    ENOTTY        25    /* Not a typewriter */
  31. #define    ETXTBSY        26    /* Text file busy */
  32. #define    EFBIG        27    /* File too large */
  33. #define    ENOSPC        28    /* No space left on device */
  34. #define    ESPIPE        29    /* Illegal seek */
  35. #define    EROFS        30    /* Read-only file system */
  36. #define    EMLINK        31    /* Too many links */
  37. #define    EPIPE        32    /* Broken pipe */
  38. #define    EDOM        33    /* Math argument out of domain of func */
  39. #define    ERANGE        34    /* Math result not representable */
  40. #define    EDEADLK        35    /* Resource deadlock would occur */
  41. #define    ENAMETOOLONG    36    /* File name too long */
  42. #define    ENOLCK        37    /* No record locks available */
  43. #define    ENOSYS        38    /* Function not implemented */
  44. #define    ENOTEMPTY    39    /* Directory not empty */
  45. #define    ELOOP        40    /* Too many symbolic links encountered */
  46. #define    EWOULDBLOCK    EAGAIN    /* Operation would block */
  47. #define    ENOMSG        42    /* No message of desired type */
  48. #define    EIDRM        43    /* Identifier removed */
  49. #define    ECHRNG        44    /* Channel number out of range */
  50. #define    EL2NSYNC    45    /* Level 2 not synchronized */
  51. #define    EL3HLT        46    /* Level 3 halted */
  52. #define    EL3RST        47    /* Level 3 reset */
  53. #define    ELNRNG        48    /* Link number out of range */
  54. #define    EUNATCH        49    /* Protocol driver not attached */
  55. #define    ENOCSI        50    /* No CSI structure available */
  56. #define    EL2HLT        51    /* Level 2 halted */
  57. #define    EBADE        52    /* Invalid exchange */
  58. #define    EBADR        53    /* Invalid request descriptor */
  59. #define    EXFULL        54    /* Exchange full */
  60. #define    ENOANO        55    /* No anode */
  61. #define    EBADRQC        56    /* Invalid request code */
  62. #define    EBADSLT        57    /* Invalid slot */
  63.  
  64. #define    EDEADLOCK    EDEADLK
  65.  
  66. #define    EBFONT        59    /* Bad font file format */
  67. #define    ENOSTR        60    /* Device not a stream */
  68. #define    ENODATA        61    /* No data available */
  69. #define    ETIME        62    /* Timer expired */
  70. #define    ENOSR        63    /* Out of streams resources */
  71. #define    ENONET        64    /* Machine is not on the network */
  72. #define    ENOPKG        65    /* Package not installed */
  73. #define    EREMOTE        66    /* Object is remote */
  74. #define    ENOLINK        67    /* Link has been severed */
  75. #define    EADV        68    /* Advertise error */
  76. #define    ESRMNT        69    /* Srmount error */
  77. #define    ECOMM        70    /* Communication error on send */
  78. #define    EPROTO        71    /* Protocol error */
  79. #define    EMULTIHOP    72    /* Multihop attempted */
  80. #define    EDOTDOT        73    /* RFS specific error */
  81. #define    EBADMSG        74    /* Not a data message */
  82. #define    EOVERFLOW    75    /* Value too large for defined data type */
  83. #define    ENOTUNIQ    76    /* Name not unique on network */
  84. #define    EBADFD        77    /* File descriptor in bad state */
  85. #define    EREMCHG        78    /* Remote address changed */
  86. #define    ELIBACC        79    /* Can not access a needed shared library */
  87. #define    ELIBBAD        80    /* Accessing a corrupted shared library */
  88. #define    ELIBSCN        81    /* .lib section in a.out corrupted */
  89. #define    ELIBMAX        82    /* Attempting to link in too many shared libraries */
  90. #define    ELIBEXEC    83    /* Cannot exec a shared library directly */
  91. #define    EILSEQ        84    /* Illegal byte sequence */
  92. #define    ERESTART    85    /* Interrupted system call should be restarted */
  93. #define    ESTRPIPE    86    /* Streams pipe error */
  94. #define    EUSERS        87    /* Too many users */
  95. #define    ENOTSOCK    88    /* Socket operation on non-socket */
  96. #define    EDESTADDRREQ    89    /* Destination address required */
  97. #define    EMSGSIZE    90    /* Message too long */
  98. #define    EPROTOTYPE    91    /* Protocol wrong type for socket */
  99. #define    ENOPROTOOPT    92    /* Protocol not available */
  100. #define    EPROTONOSUPPORT    93    /* Protocol not supported */
  101. #define    ESOCKTNOSUPPORT    94    /* Socket type not supported */
  102. #define    EOPNOTSUPP    95    /* Operation not supported on transport endpoint */
  103. #define    EPFNOSUPPORT    96    /* Protocol family not supported */
  104. #define    EAFNOSUPPORT    97    /* Address family not supported by protocol */
  105. #define    EADDRINUSE    98    /* Address already in use */
  106. #define    EADDRNOTAVAIL    99    /* Cannot assign requested address */
  107. #define    ENETDOWN    100    /* Network is down */
  108. #define    ENETUNREACH    101    /* Network is unreachable */
  109. #define    ENETRESET    102    /* Network dropped connection because of reset */
  110. #define    ECONNABORTED    103    /* Software caused connection abort */
  111. #define    ECONNRESET    104    /* Connection reset by peer */
  112. #define    ENOBUFS        105    /* No buffer space available */
  113. #define    EISCONN        106    /* Transport endpoint is already connected */
  114. #define    ENOTCONN    107    /* Transport endpoint is not connected */
  115. #define    ESHUTDOWN    108    /* Cannot send after transport endpoint shutdown */
  116. #define    ETOOMANYREFS    109    /* Too many references: cannot splice */
  117. #define    ETIMEDOUT    110    /* Connection timed out */
  118. #define    ECONNREFUSED    111    /* Connection refused */
  119. #define    EHOSTDOWN    112    /* Host is down */
  120. #define    EHOSTUNREACH    113    /* No route to host */
  121. #define    EALREADY    114    /* Operation already in progress */
  122. #define    EINPROGRESS    115    /* Operation now in progress */
  123. #define    ESTALE        116    /* Stale NFS file handle */
  124. #define    EUCLEAN        117    /* Structure needs cleaning */
  125. #define    ENOTNAM        118    /* Not a XENIX named type file */
  126. #define    ENAVAIL        119    /* No XENIX semaphores available */
  127. #define    EISNAM        120    /* Is a named type file */
  128. #define    EREMOTEIO    121    /* Remote I/O error */
  129. #define    EDQUOT        122    /* Quota exceeded */
  130.  
  131. #define    ENOMEDIUM    123    /* No medium found */
  132. #define    EMEDIUMTYPE    124    /* Wrong medium type */
  133.  
  134. #endif
  135.