errno.inc 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. { -------------------------- Base POSIX-mandated constants --------------- }
  2. { no such file or directory }
  3. const
  4. SYS_ENOENT = 1; // arg list too big
  5. SYS_E2BIG = 2; // arg list too big
  6. SYS_ENOEXEC = 3; // exec format error
  7. SYS_EBADF = 4; // bad file number
  8. SYS_ENOMEM = 5; // not enough memory
  9. SYS_EACCES = 6; // permission denied
  10. SYS_EEXIST = 7; // file exists
  11. SYS_EXDEV = 8; // cross-device link
  12. SYS_EINVAL = 9; // invalid argument
  13. SYS_ENFILE = 10; // file table overflow
  14. SYS_EMFILE = 11; // too many open files
  15. SYS_ENOSPC = 12; // no space left on device
  16. SYS_EDOM = 13; // argument too large
  17. SYS_ERANGE = 14; // result too large
  18. SYS_EDEADLK = 15; // resource deadlock would occur
  19. { -------------------------- Miscellaneous NLM Library constants --------- }
  20. SYS_EINUSE = 16; // resource(s) in use
  21. SYS_ESERVER = 17; // server error (memory out, I/O error, etc.)
  22. SYS_ENOSERVR = 18; // no server (queue server, file server, etc.)
  23. SYS_EWRNGKND = 19; // wrong kind--an operation is being...
  24. // ...attempted on the wrong kind of object
  25. SYS_ETRNREST = 20; // transaction restarted
  26. SYS_ERESOURCE = 21; // resources unavailable (maybe permanently)
  27. SYS_EBADHNDL = 22; // bad non-file handle (screen, semaphore, etc)
  28. SYS_ENO_SCRNS = 23; // screen I/O attempted when no screens
  29. { -------------------------- Additional POSIX / traditional UNIX constants }
  30. SYS_EAGAIN = 24; // resource temporarily unavailable
  31. SYS_ENXIO = 25; // no such device or address
  32. SYS_EBADMSG = 26; // not a data message
  33. SYS_EFAULT = 27; // bad address
  34. SYS_EIO = 28; // physical I/O error
  35. SYS_ENODATA = 29; // no data
  36. SYS_ENOSTRMS = 30; // streams not available
  37. { Berkeley sockets constants ------------------ }
  38. SYS_EPROTO = 31; // fatal protocol error
  39. SYS_EPIPE = 32; // broken pipe
  40. SYS_ESPIPE = 33; // illegal seek
  41. { Non-blocking and interrupt I/O constants ---- }
  42. SYS_ETIME = 34; // ioctl acknowledge timeout
  43. { operation would block }
  44. SYS_EWOULDBLOCK=35; // operation would block
  45. SYS_EINPROGRESS=36; // operation now in progress
  46. SYS_EALREADY = 37; // operation already in progress
  47. { IPC network argument constants -------------- }
  48. SYS_ENOTSOCK = 38; // socket operation on non-socket
  49. SYS_EDESTADDRREQ=39; // destination address required
  50. SYS_EMSGSIZE = 40; // message too long
  51. SYS_EPROTOTYPE= 41; // protocol wrong type for socket
  52. SYS_ENOPROTOOPT=42; // protocol not available
  53. SYS_EPROTONOSUPPORT = 43; // protocol not supported
  54. SYS_ESOCKTNOSUPPORT = 44; // socket type not supported
  55. SYS_EOPNOTSUPP = 45; // operation not supported on socket
  56. SYS_EPFNOSUPPORT = 46; // protocol family not supported
  57. SYS_EAFNOSUPPORT = 47; // address family unsupported by protocol family
  58. SYS_EADDRINUSE = 48; // address already in use
  59. SYS_EADDRNOTAVAIL = 49; // can't assign requested address
  60. { Operational constants ----------------------- }
  61. SYS_ENETDOWN = 50; // Network is down
  62. { network is unreachable }
  63. SYS_ENETUNREACH = 51;
  64. { network dropped connection on reset }
  65. SYS_ENETRESET = 52;
  66. { software caused connection abort }
  67. SYS_ECONNABORTED = 53;
  68. { connection reset by peer }
  69. SYS_ECONNRESET = 54;
  70. { no buffer space available }
  71. SYS_ENOBUFS = 55;
  72. { socket is already connected }
  73. SYS_EISCONN = 56;
  74. { socket is not connected }
  75. SYS_ENOTCONN = 57;
  76. { can't send after socket shutdown }
  77. SYS_ESHUTDOWN = 58;
  78. { too many references: can't splice }
  79. SYS_ETOOMANYREFS = 59;
  80. { connection timed out }
  81. SYS_ETIMEDOUT = 60;
  82. { connection refused }
  83. SYS_ECONNREFUSED = 61;
  84. { -------------------------- Additional POSIX-mandated constants --------- }
  85. { resource busy }
  86. SYS_EBUSY = 62;
  87. { interrupted function call }
  88. SYS_EINTR = 63;
  89. { is a directory }
  90. SYS_EISDIR = 64;
  91. { filename too long }
  92. SYS_ENAMETOOLONG = 65;
  93. { function not implemented }
  94. SYS_ENOSYS = 66;
  95. { not a directory }
  96. SYS_ENOTDIR = 67;
  97. { directory not empty }
  98. SYS_ENOTEMPTY = 68;
  99. { operation not permitted }
  100. SYS_EPERM = 69;
  101. { no child process }
  102. SYS_ECHILD = 70;
  103. { file too large }
  104. SYS_EFBIG = 71;
  105. { too many links }
  106. SYS_EMLINK = 72;
  107. SYS_ELOOP = SYS_EMLINK;
  108. { no such device }
  109. SYS_ENODEV = 73;
  110. { no locks available }
  111. SYS_ENOLCK = 74;
  112. { inappropriate I/O control operation }
  113. SYS_ENOTTY = 75;
  114. { inappropriate operation for file type }
  115. SYS_EFTYPE = SYS_ENOTTY;
  116. { read-only file system }
  117. SYS_EROFS = 76;
  118. { no such process }
  119. SYS_ESRCH = 77;
  120. { operation was cancelled }
  121. SYS_ECANCELED = 78;
  122. { this optional functionality not supported }
  123. SYS_ENOTSUP = 79;
  124. { -------------------------- CLib-implementation-specific constants ------ }
  125. SYS_ECANCELLED = SYS_ECANCELED;
  126. { anomaly in NLM data structure }
  127. SYS_ENLMDATA = 100;
  128. { illegal character sequence in multibyte }
  129. SYS_EILSEQ = 101;
  130. { internal library inconsistency }
  131. SYS_EINCONSIS = 102;
  132. { DOS-text file inconsistency--no newline... }
  133. SYS_EDOSTEXTEOL = 103;
  134. { ...after carriage return }
  135. { object doesn't exist }
  136. SYS_ENONEXTANT = 104;
  137. SYS_ENOCONTEXT = 105; // no thread library context present
  138. SYS_ELASTERR = SYS_ENOCONTEXT;