package unix-errno

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | E2BIG
  2. | EACCES
  3. | EADDRINUSE
  4. | EADDRNOTAVAIL
  5. | EAFNOSUPPORT
  6. | EAGAIN
  7. | EALREADY
  8. | EBADF
  9. | EBADMSG
  10. | EBUSY
  11. | ECANCELED
  12. | ECHILD
  13. | ECONNABORTED
  14. | ECONNREFUSED
  15. | ECONNRESET
  16. | EDEADLK
  17. | EDESTADDRREQ
  18. | EDOM
  19. | EDQUOT
  20. | EEXIST
  21. | EFAULT
  22. | EFBIG
  23. | EHOSTDOWN
  24. | EHOSTUNREACH
  25. | EIDRM
  26. | EILSEQ
  27. | EINPROGRESS
  28. | EINTR
  29. | EINVAL
  30. | EIO
  31. | EISCONN
  32. | EISDIR
  33. | ELOOP
  34. | EMFILE
  35. | EMSGSIZE
  36. | EMULTIHOP
  37. | ENAMETOOLONG
  38. | ENETDOWN
  39. | ENETRESET
  40. | ENETUNREACH
  41. | ENFILE
  42. | ENOBUFS
  43. | ENODEV
  44. | ENOENT
  45. | ENOEXEC
  46. | ENOLCK
  47. | ENOMEM
  48. | ENOMSG
  49. | ENOPROTOOPT
  50. | ENOSPC
  51. | ENOSYS
  52. | ENOTBLK
  53. | ENOTCONN
  54. | ENOTDIR
  55. | ENOTEMPTY
  56. | ENOTRECOVERABLE
  57. | ENOTSOCK
  58. | ENOTSUP
  59. | ENOTTY
  60. | ENXIO
  61. | EOPNOTSUPP
  62. | EOVERFLOW
  63. | EOWNERDEAD
  64. | EPERM
  65. | EPFNOSUPPORT
  66. | EPIPE
  67. | EPROTO
  68. | EPROTONOSUPPORT
  69. | EPROTOTYPE
  70. | ERANGE
  71. | EREMOTE
  72. | EROFS
  73. | ESHUTDOWN
  74. | ESOCKTNOSUPPORT
  75. | ESPIPE
  76. | ESRCH
  77. | ESTALE
  78. | ETIMEDOUT
  79. | ETOOMANYREFS
  80. | ETXTBSY
  81. | EUSERS
  82. | EWOULDBLOCK
  83. | EXDEV
  84. | ECHRNG
  85. | EL2NSYNC
  86. | EL3HLT
  87. | EL3RST
  88. | ELNRNG
  89. | EUNATCH
  90. | ENOCSI
  91. | EL2HLT
  92. | EBADE
  93. | EBADR
  94. | EXFULL
  95. | ENOANO
  96. | EBADRQC
  97. | EBADSLT
  98. | EBFONT
  99. | ENONET
  100. | ENOPKG
  101. | EADV
  102. | ESRMNT
  103. | ECOMM
  104. | EDOTDOT
  105. | ENOTUNIQ
  106. | EBADFD
  107. | EREMCHG
  108. | ELIBACC
  109. | ELIBBAD
  110. | ELIBSCN
  111. | ELIBMAX
  112. | ELIBEXEC
  113. | ERESTART
  114. | ESTRPIPE
  115. | EUCLEAN
  116. | ENOTNAM
  117. | ENAVAIL
  118. | EISNAM
  119. | EREMOTEIO
  120. | ENOMEDIUM
  121. | EMEDIUMTYPE
  122. | ENOKEY
  123. | EKEYEXPIRED
  124. | EKEYREVOKED
  125. | EKEYREJECTED
  126. | ERFKILL
  127. | EHWPOISON
  128. | EPWROFF
  129. | EDEVERR
  130. | EBADEXEC
  131. | EBADARCH
  132. | ESHLIBVERS
  133. | EBADMACHO
  134. | ENOPOLICY
  135. | EQFULL
  136. | EDOOFUS
  137. | ENOTCAPABLE
  138. | ECAPMODE
  139. | EPROCLIM
  140. | EBADRPC
  141. | ERPCMISMATCH
  142. | EPROGUNAVAIL
  143. | EPROGMISMATCH
  144. | EPROCUNAVAIL
  145. | EFTYPE
  146. | EAUTH
  147. | ENEEDAUTH
  148. | ENOATTR
  149. | ENOSTR
  150. | ENODATA
  151. | ETIME
  152. | ENOSR
  153. | EUNKNOWNERR of Signed.sint
type error = {
  1. errno : t list;
  2. call : string;
  3. label : string;
}
exception Error of error

NB: This module registers a printer for the Error exception.

type defns = {
  1. e2big : Signed.sint option;
  2. eacces : Signed.sint option;
  3. eaddrinuse : Signed.sint option;
  4. eaddrnotavail : Signed.sint option;
  5. eafnosupport : Signed.sint option;
  6. eagain : Signed.sint option;
  7. ealready : Signed.sint option;
  8. ebadf : Signed.sint option;
  9. ebadmsg : Signed.sint option;
  10. ebusy : Signed.sint option;
  11. ecanceled : Signed.sint option;
  12. echild : Signed.sint option;
  13. econnaborted : Signed.sint option;
  14. econnrefused : Signed.sint option;
  15. econnreset : Signed.sint option;
  16. edeadlk : Signed.sint option;
  17. edestaddrreq : Signed.sint option;
  18. edom : Signed.sint option;
  19. edquot : Signed.sint option;
  20. eexist : Signed.sint option;
  21. efault : Signed.sint option;
  22. efbig : Signed.sint option;
  23. ehostdown : Signed.sint option;
  24. ehostunreach : Signed.sint option;
  25. eidrm : Signed.sint option;
  26. eilseq : Signed.sint option;
  27. einprogress : Signed.sint option;
  28. eintr : Signed.sint option;
  29. einval : Signed.sint option;
  30. eio : Signed.sint option;
  31. eisconn : Signed.sint option;
  32. eisdir : Signed.sint option;
  33. eloop : Signed.sint option;
  34. emfile : Signed.sint option;
  35. emsgsize : Signed.sint option;
  36. emultihop : Signed.sint option;
  37. enametoolong : Signed.sint option;
  38. enetdown : Signed.sint option;
  39. enetreset : Signed.sint option;
  40. enetunreach : Signed.sint option;
  41. enfile : Signed.sint option;
  42. enobufs : Signed.sint option;
  43. enodev : Signed.sint option;
  44. enoent : Signed.sint option;
  45. enoexec : Signed.sint option;
  46. enolck : Signed.sint option;
  47. enomem : Signed.sint option;
  48. enomsg : Signed.sint option;
  49. enoprotoopt : Signed.sint option;
  50. enospc : Signed.sint option;
  51. enosys : Signed.sint option;
  52. enotblk : Signed.sint option;
  53. enotconn : Signed.sint option;
  54. enotdir : Signed.sint option;
  55. enotempty : Signed.sint option;
  56. enotrecoverable : Signed.sint option;
  57. enotsock : Signed.sint option;
  58. enotsup : Signed.sint option;
  59. enotty : Signed.sint option;
  60. enxio : Signed.sint option;
  61. eopnotsupp : Signed.sint option;
  62. eoverflow : Signed.sint option;
  63. eownerdead : Signed.sint option;
  64. eperm : Signed.sint option;
  65. epfnosupport : Signed.sint option;
  66. epipe : Signed.sint option;
  67. eproto : Signed.sint option;
  68. eprotonosupport : Signed.sint option;
  69. eprototype : Signed.sint option;
  70. erange : Signed.sint option;
  71. eremote : Signed.sint option;
  72. erofs : Signed.sint option;
  73. eshutdown : Signed.sint option;
  74. esocktnosupport : Signed.sint option;
  75. espipe : Signed.sint option;
  76. esrch : Signed.sint option;
  77. estale : Signed.sint option;
  78. etimedout : Signed.sint option;
  79. etoomanyrefs : Signed.sint option;
  80. etxtbsy : Signed.sint option;
  81. eusers : Signed.sint option;
  82. ewouldblock : Signed.sint option;
  83. exdev : Signed.sint option;
  84. echrng : Signed.sint option;
  85. el2nsync : Signed.sint option;
  86. el3hlt : Signed.sint option;
  87. el3rst : Signed.sint option;
  88. elnrng : Signed.sint option;
  89. eunatch : Signed.sint option;
  90. enocsi : Signed.sint option;
  91. el2hlt : Signed.sint option;
  92. ebade : Signed.sint option;
  93. ebadr : Signed.sint option;
  94. exfull : Signed.sint option;
  95. enoano : Signed.sint option;
  96. ebadrqc : Signed.sint option;
  97. ebadslt : Signed.sint option;
  98. ebfont : Signed.sint option;
  99. enonet : Signed.sint option;
  100. enopkg : Signed.sint option;
  101. eadv : Signed.sint option;
  102. esrmnt : Signed.sint option;
  103. ecomm : Signed.sint option;
  104. edotdot : Signed.sint option;
  105. enotuniq : Signed.sint option;
  106. ebadfd : Signed.sint option;
  107. eremchg : Signed.sint option;
  108. elibacc : Signed.sint option;
  109. elibbad : Signed.sint option;
  110. elibscn : Signed.sint option;
  111. elibmax : Signed.sint option;
  112. elibexec : Signed.sint option;
  113. erestart : Signed.sint option;
  114. estrpipe : Signed.sint option;
  115. euclean : Signed.sint option;
  116. enotnam : Signed.sint option;
  117. enavail : Signed.sint option;
  118. eisnam : Signed.sint option;
  119. eremoteio : Signed.sint option;
  120. enomedium : Signed.sint option;
  121. emediumtype : Signed.sint option;
  122. enokey : Signed.sint option;
  123. ekeyexpired : Signed.sint option;
  124. ekeyrevoked : Signed.sint option;
  125. ekeyrejected : Signed.sint option;
  126. erfkill : Signed.sint option;
  127. ehwpoison : Signed.sint option;
  128. epwroff : Signed.sint option;
  129. edeverr : Signed.sint option;
  130. ebadexec : Signed.sint option;
  131. ebadarch : Signed.sint option;
  132. eshlibvers : Signed.sint option;
  133. ebadmacho : Signed.sint option;
  134. enopolicy : Signed.sint option;
  135. eqfull : Signed.sint option;
  136. edoofus : Signed.sint option;
  137. enotcapable : Signed.sint option;
  138. ecapmode : Signed.sint option;
  139. eproclim : Signed.sint option;
  140. ebadrpc : Signed.sint option;
  141. erpcmismatch : Signed.sint option;
  142. eprogunavail : Signed.sint option;
  143. eprogmismatch : Signed.sint option;
  144. eprocunavail : Signed.sint option;
  145. eftype : Signed.sint option;
  146. eauth : Signed.sint option;
  147. eneedauth : Signed.sint option;
  148. enoattr : Signed.sint option;
  149. enostr : Signed.sint option;
  150. enodata : Signed.sint option;
  151. etime : Signed.sint option;
  152. enosr : Signed.sint option;
}
module Host : sig ... end
val to_code : host:Host.t -> t -> Signed.sint option
val of_code : host:Host.t -> Signed.sint -> t list
val to_string : t -> string
val iter_defns : defns -> (Signed.sint -> t -> unit) -> (t -> unit) -> unit
val string_of_defns : defns -> string
val defns_of_string : string -> defns
val check_errno : (unit -> 'a) -> ('a, error) Result.result
val string_of_error : error -> string
OCaml

Innovation. Community. Security.