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