errnostr.inc 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2010 by Jasper Lievisse Adriaanse <[email protected]>
  4. Contains BSD specific errors for error.pp in rtl/unix
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. const
  12. sys_errn=92;
  13. sys_errlist:array[0..sys_errn-1] of pchar = (
  14. 'Success', { 0 }
  15. 'Operation not permitted', { EPERM }
  16. 'No such file or directory', { ENOENT }
  17. 'No such process', { ESRCH }
  18. 'Interrupted system call', { EINTR }
  19. 'I/O error', { EIO }
  20. 'No such device or address', { ENXIO }
  21. 'Arg list too long', { E2BIG }
  22. 'Exec format error', { ENOEXEC }
  23. 'Bad file number', { EBADF }
  24. 'No child processes', { ECHILD }
  25. 'Resource deadlock avoided', { EDEADLK was EAGAIN }
  26. 'Out of memory', { ENOMEM }
  27. 'Permission denied', { EACCES }
  28. 'Bad address', { EFAULT }
  29. 'Block device required', { ENOTBLK }
  30. 'Device or resource busy', { EBUSY }
  31. 'File exists', { EEXIST }
  32. 'Cross-device link', { EXDEV }
  33. 'No such device', { ENODEV }
  34. 'Not a directory', { ENOTDIR }
  35. 'Is a directory', { EISDIR }
  36. 'Invalid argument', { EINVAL }
  37. 'File table overflow', { ENFILE }
  38. 'Too many open files', { EMFILE }
  39. 'Not a typewriter', { ENOTTY }
  40. 'Text file busy', { ETXTBSY }
  41. 'File too large', { EFBIG }
  42. 'No space left on device', { ENOSPC }
  43. 'Illegal seek', { ESPIPE }
  44. 'Read-only file system', { EROFS }
  45. 'Too many links', { EMLINK }
  46. 'Broken pipe', { EPIPE }
  47. // math software
  48. 'Numerical argument out of domain', { EDOM }
  49. 'Result too large', { ERANGE }
  50. // non-blocking and interrupt io
  51. 'Resource temporarily unavailable', { EAGAIN }
  52. 'Operation now in progress', { EINPROGRESS }
  53. // 'Operation would block', { EAGAIN }
  54. 'Operation already in progress', { EALREADY }
  55. // ipc/network software -- argument errors
  56. 'Socket operation on non-socket', { ENOTSOCK }
  57. 'Destination address required', { EDESTADDRREQ }
  58. 'Message too long', { EMSGSIZE }
  59. 'Protocol wrong type for socket', { EPROTOTYPE }
  60. 'Protocol not available', { ENOPROTOOPT }
  61. 'Protocol not supported', { EPROTONOSUPPORT }
  62. 'Socket type not supported', { ESOCKTNOSUPPORT }
  63. 'Operation not supported', { EOPNOTSUPP }
  64. 'Protocol family not supported', { EPFNOSUPPORT }
  65. 'Address family not supported by protocol family', { EAFNOSUPPORT }
  66. 'Address already in use', { EADDRINUSE }
  67. 'Can''t assign requested address', { EADDRNOTAVAIL }
  68. // ipc/network software -- operational errors
  69. 'Network is down', { ENETDOWN }
  70. 'Network is unreachable', { ENETUNREACH }
  71. 'Network dropped connection on reset', { ENETRESET }
  72. 'Software caused connection abort', { ECONNABORTED }
  73. 'Connection reset by peer', { ECONNRESET }
  74. 'No buffer space available', { ENOBUFS }
  75. 'Socket is already connected', { EISCONN }
  76. 'Socket is not connected', { ENOTCONN }
  77. 'Can''t send after socket shutdown', { ESHUTDOWN }
  78. 'Too many references: can''t splice', { ETOOMANYREFS }
  79. 'Operation timed out', { ETIMEDOUT }
  80. 'Connection refused', { ECONNREFUSED }
  81. 'Too many levels of symbolic links', { ELOOP }
  82. 'File name too long', { ENAMETOOLONG }
  83. 'Host is down', { EHOSTDOWN }
  84. 'No route to host', { EHOSTUNREACH }
  85. 'Directory not empty', { ENOTEMPTY }
  86. // quotas & mush
  87. 'Too many processes', { EPROCLIM }
  88. 'Too many users', { EUSERS }
  89. 'Disc quota exceeded', { EDQUOT }
  90. // Network File System
  91. 'Stale NFS file handle', { ESTALE }
  92. 'Too many levels of remote in path', { EREMOTE }
  93. 'RPC struct is bad', { EBADRPC }
  94. 'RPC version wrong', { ERPCMISMATCH }
  95. 'RPC prog. not avail', { EPROGUNAVAIL }
  96. 'Program version wrong', { EPROGMISMATCH }
  97. 'Bad procedure for program', { EPROCUNAVAIL }
  98. 'No locks available', { ENOLCK }
  99. 'Function not implemented', { ENOSYS }
  100. 'Inappropriate file type or format', { EFTYPE }
  101. 'Authentication error', { EAUTH }
  102. 'Need authenticator', { ENEEDAUTH }
  103. 'IPsec processing failure', { EIPSEC }
  104. 'Attribute not found', { ENOATTR }
  105. 'Illegal byte sequence', { EILSEQ }
  106. 'No medium found', { ENOMEDIUM }
  107. 'Wrong Meda Type', { EMEDIUMTYPE }
  108. 'Value too large to be stored in data type', { EOVERFLOW }
  109. 'Operation canceled', { ECANCELED }
  110. 'Identifier removed', { EIDRM }
  111. 'No message of desired type', { ENOMSG }
  112. 'Not supported' { ENOTSUP }
  113. // 'Must be equal to largest errno' { ELAST }
  114. );