PageRenderTime 24ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/tango/sys/linux/consts/errno.d

http://github.com/SiegeLord/Tango-D2
D | 154 lines | 153 code | 1 blank | 0 comment | 8 complexity | 9429687454979353bcd5ae08a915c711 MD5 | raw file
  1. module tango.sys.linux.consts.errno;
  2. version(X86) {
  3. version=X86_CPU;
  4. } else version(X86_64) {
  5. version=X86_CPU;
  6. } else version ( PPC64 )
  7. {
  8. version=PPC_CPU;
  9. } else version ( PPC ) {
  10. version=PPC_CPU;
  11. } else version(ARM){
  12. } else version(SPARC){
  13. } else {
  14. static assert(0,"unknown cpu family");
  15. }
  16. enum {
  17. E2BIG = 7, // Argument list too long
  18. EACCES = 13, // Permission denied
  19. EADDRINUSE = 98, // Address already in use
  20. EADDRNOTAVAIL = 99, // Can't assign requested address
  21. EADV = 68, // Advertise error
  22. EAFNOSUPPORT = 97, // Address family not supported by protocol family
  23. EAGAIN = 11, // Resource temporarily unavailable
  24. EALREADY = 114, // Operation already in progress
  25. EBADE = 52, // Invalid exchange
  26. EBADF = 9, // Bad file descriptor
  27. EBADFD = 77, // File descriptor in bad state
  28. EBADMSG = 74, // Bad message
  29. EBADR = 53, // Invalid request descriptor
  30. EBADRQC = 56, // Invalid request code
  31. EBADSLT = 57, // Invalid slot
  32. EBFONT = 59, // Bad font file format
  33. EBUSY = 16, // Device busy
  34. ECANCELED = 125, // Operation canceled
  35. ECHILD = 10, // No child processes
  36. ECHRNG = 44, // Channel number out of range
  37. ECOMM = 70, // Communication error on send
  38. ECONNABORTED = 103, // Software caused connection abort
  39. ECONNREFUSED = 111, // Connection refused
  40. ECONNRESET = 104, // Connection reset by peer
  41. EDEADLK = 35, // Resource deadlock avoided
  42. EDESTADDRREQ = 89, // Destination address required
  43. EDOM = 33, // Numerical argument out of domain
  44. EDOTDOT = 73, // RFS specific error
  45. EDQUOT = 122, // Disc quota exceeded
  46. EEXIST = 17, // File exists
  47. EFAULT = 14, // Bad address
  48. EFBIG = 27, // File too large
  49. EHOSTDOWN = 112, // Host is down
  50. EHOSTUNREACH = 113, // No route to host
  51. EIDRM = 43, // Itendifier removed
  52. EILSEQ = 84, // Illegal byte sequence
  53. EINPROGRESS = 115, // Operation now in progress
  54. EINTR = 4, // Interrupted system call
  55. EINVAL = 22, // Invalid argument
  56. EIO = 5, // Input/output error
  57. EISCONN = 106, // Socket is already connected
  58. EISDIR = 21, // Is a directory
  59. EISNAM = 120, // Is a named type file
  60. EKEYEXPIRED = 127, // Key has expired
  61. EKEYREJECTED = 129, // Key was rejected by service
  62. EKEYREVOKED = 128, // Key has been revoked
  63. EL2HLT = 51, // Level 2 halted
  64. EL2NSYNC = 45, // Level 2 not synchronized
  65. EL3HLT = 46, // Level 3 halted
  66. EL3RST = 47, // Level 3 reset
  67. ELIBACC = 79, // Can not access a needed shared library
  68. ELIBBAD = 80, // Accessing a corrupted shared library
  69. ELIBEXEC = 83, // Cannot exec a shared library directly
  70. ELIBMAX = 82, // Attempting to link in too many shared libraries
  71. ELIBSCN = 81, // .lib section in a.out corrupted
  72. ELNRNG = 48, // Link number out of range
  73. ELOOP = 40, // Too many levels of symbolic links
  74. EMEDIUMTYPE = 124, // Wrong medium type
  75. EMFILE = 24, // Too many open files
  76. EMLINK = 31, // Too many links
  77. EMSGSIZE = 90, // Message too long
  78. EMULTIHOP = 72, // Multihop attempted
  79. ENAMETOOLONG = 36, // File name too long
  80. ENAVAIL = 119, // No XENIX semaphores available
  81. ENETDOWN = 100, // Network is down
  82. ENETRESET = 102, // Network dropped connection on reset
  83. ENETUNREACH = 101, // Network is unreachable
  84. ENFILE = 23, // Too many open files in system
  85. ENOANO = 55, // No anode
  86. ENOBUFS = 105, // No buffer space available
  87. ENOCSI = 50, // No CSI structure available
  88. ENODATA = 61, // No message available on STREAM
  89. ENODEV = 19, // Operation not supported by device
  90. ENOENT = 2, // No such file or directory
  91. ENOEXEC = 8, // Exec format error
  92. ENOKEY = 126, // Required key not available
  93. ENOLCK = 37, // No locks available
  94. ENOLINK = 67, // Link has been severed
  95. ENOMEDIUM = 123, // No medium found
  96. ENOMEM = 12, // Cannot allocate memory
  97. ENOMSG = 42, // No message of desired type
  98. ENONET = 64, // Machine is not on the network
  99. ENOPKG = 65, // Package not installed
  100. ENOPROTOOPT = 92, // Protocol not available
  101. ENOSPC = 28, // No space left on device
  102. ENOSR = 63, // No STREAM resources
  103. ENOSTR = 60, // Not a STREAM
  104. ENOSYS = 38, // Function not implemented
  105. ENOTBLK = 15, // Block device required
  106. ENOTCONN = 107, // Socket is not connected
  107. ENOTDIR = 20, // Not a directory
  108. ENOTEMPTY = 39, // Directory not empty
  109. ENOTNAM = 118, // Not a XENIX named type file
  110. ENOTRECOVERABLE = 131, // State not recoverable
  111. ENOTSOCK = 88, // Socket operation on non-socket
  112. ENOTSUP = 95, // Operation not supported
  113. ENOTTY = 25, // Inappropriate ioctl for device
  114. ENOTUNIQ = 76, // Name not unique on network
  115. ENXIO = 6, // Device not configured
  116. EOPNOTSUPP = 95, // Operation not supported on socket
  117. EOVERFLOW = 75, // Value too large to be stored in data type
  118. EOWNERDEAD = 130, // Owner died
  119. EPERM = 1, // Operation not permitted
  120. EPFNOSUPPORT = 96, // Protocol family not supported
  121. EPIPE = 32, // Broken pipe
  122. EPROTO = 71, // Protocol error
  123. EPROTONOSUPPORT = 93, // Protocol not supported
  124. EPROTOTYPE = 91, // Protocol wrong type for socket
  125. ERANGE = 34, // Result too large
  126. EREMCHG = 78, // Remote address changed
  127. EREMOTE = 66, // Too many levels of remote in path
  128. EREMOTEIO = 121, // Remote I/O error
  129. ERESTART = 85, // Interrupted system call should be restarted
  130. EROFS = 30, // Read-only file system
  131. ESHUTDOWN = 108, // Can't send after socket shutdown
  132. ESOCKTNOSUPPORT = 94, // Socket type not supported
  133. ESPIPE = 29, // Illegal seek
  134. ESRCH = 3, // No such process
  135. ESRMNT = 69, // Srmount error
  136. ESTALE = 116, // Stale NFS file handle
  137. ESTRPIPE = 86, // Streams pipe error
  138. ETIME = 62, // STREAM ioctl timeout
  139. ETIMEDOUT = 110, // Operation timed out
  140. ETOOMANYREFS = 109, // Too many refrences, can't splice
  141. ETXTBSY = 26, // Text file busy
  142. EUCLEAN = 117, // Structure needs cleaning
  143. EUNATCH = 49, // Protocol driver not attached
  144. EUSERS = 87, // Too many users
  145. EWOULDBLOCK = 11, // Operation would block
  146. EXDEV = 18, // Cross-device link
  147. EXFULL = 54, // Exchange full
  148. }
  149. version(X86_CPU)
  150. enum { EDEADLOCK = 35, }
  151. else version(PPC_CPU)
  152. enum { EDEADLOCK = 58, }
  153. else static assert(0);