package uwt

  1. Overview
  2. Docs

Lwt independent core

Uwt_base contains type definitions and functions that are shared by Uwt and Uv_fs_sync

type error =
  1. | E2BIG
    (*

    argument list too long

    *)
  2. | EACCES
    (*

    permission denied

    *)
  3. | EADDRINUSE
    (*

    address already in use

    *)
  4. | EADDRNOTAVAIL
    (*

    address not available

    *)
  5. | EAFNOSUPPORT
    (*

    address family not supported

    *)
  6. | EAGAIN
    (*

    resource temporarily unavailable

    *)
  7. | EAI_ADDRFAMILY
    (*

    address family not supported

    *)
  8. | EAI_AGAIN
    (*

    temporary failure

    *)
  9. | EAI_BADFLAGS
    (*

    bad ai_flags value

    *)
  10. | EAI_BADHINTS
    (*

    invalid value for hints

    *)
  11. | EAI_CANCELED
    (*

    request canceled

    *)
  12. | EAI_FAIL
    (*

    permanent failure

    *)
  13. | EAI_FAMILY
    (*

    ai_family not supported

    *)
  14. | EAI_MEMORY
    (*

    out of memory

    *)
  15. | EAI_NODATA
    (*

    no address

    *)
  16. | EAI_NONAME
    (*

    unknown node or service

    *)
  17. | EAI_OVERFLOW
    (*

    argument buffer overflow

    *)
  18. | EAI_PROTOCOL
    (*

    resolved protocol is unknown

    *)
  19. | EAI_SERVICE
    (*

    service not available for socket type

    *)
  20. | EAI_SOCKTYPE
    (*

    socket type not supported

    *)
  21. | EALREADY
    (*

    connection already in progress

    *)
  22. | EBADF
    (*

    bad file descriptor

    *)
  23. | EBUSY
    (*

    resource busy or locked

    *)
  24. | ECANCELED
    (*

    operation canceled

    *)
  25. | ECHARSET
    (*

    Windows filenames (and similar parameters) are expected to be utf-8 encoded. ECHARSET is returned, if one parameter contains invalid byte sequences. Furthermore, ECHARSET will be returned, if your strings contain null bytes (on *nix, too).

    *)
  26. | ECONNABORTED
    (*

    software caused connection abort

    *)
  27. | ECONNREFUSED
    (*

    connection refused

    *)
  28. | ECONNRESET
    (*

    connection reset by peer

    *)
  29. | EDESTADDRREQ
    (*

    destination address required

    *)
  30. | EEXIST
    (*

    file already exists

    *)
  31. | EFAULT
    (*

    bad address in system call argument

    *)
  32. | EFBIG
    (*

    file too large

    *)
  33. | EHOSTUNREACH
    (*

    host is unreachable

    *)
  34. | EINTR
    (*

    interrupted system call

    *)
  35. | EINVAL
    (*

    invalid argument

    *)
  36. | EIO
    (*

    i/o error

    *)
  37. | EISCONN
    (*

    socket is already connected

    *)
  38. | EISDIR
    (*

    illegal operation on a directory

    *)
  39. | ELOOP
    (*

    too many symbolic links encountered

    *)
  40. | EMFILE
    (*

    too many open files

    *)
  41. | EMSGSIZE
    (*

    message too long

    *)
  42. | ENAMETOOLONG
    (*

    name too long

    *)
  43. | ENETDOWN
    (*

    network is down

    *)
  44. | ENETUNREACH
    (*

    network is unreachable

    *)
  45. | ENFILE
    (*

    file table overflow

    *)
  46. | ENOBUFS
    (*

    no buffer space available

    *)
  47. | ENODEV
    (*

    no such device

    *)
  48. | ENOENT
    (*

    no such file or directory

    *)
  49. | ENOMEM
    (*

    not enough memory

    *)
  50. | ENONET
    (*

    machine is not on the network

    *)
  51. | ENOPROTOOPT
    (*

    protocol not available

    *)
  52. | ENOSPC
    (*

    no space left on device

    *)
  53. | ENOSYS
    (*

    function not implemented

    *)
  54. | ENOTCONN
    (*

    socket is not connected

    *)
  55. | ENOTDIR
    (*

    not a directory

    *)
  56. | ENOTEMPTY
    (*

    directory not empty

    *)
  57. | ENOTSOCK
    (*

    socket operation on non-socket

    *)
  58. | ENOTSUP
    (*

    operation not supported on socket

    *)
  59. | EPERM
    (*

    operation not permitted

    *)
  60. | EPIPE
    (*

    broken pipe

    *)
  61. | EPROTO
    (*

    protocol error

    *)
  62. | EPROTONOSUPPORT
    (*

    protocol not supported

    *)
  63. | EPROTOTYPE
    (*

    protocol wrong type for socket

    *)
  64. | ERANGE
    (*

    result too large

    *)
  65. | EROFS
    (*

    read-only file system

    *)
  66. | ESHUTDOWN
    (*

    cannot send after transport endpoint shutdown

    *)
  67. | ESPIPE
    (*

    invalid seek

    *)
  68. | ESRCH
    (*

    no such process

    *)
  69. | ETIMEDOUT
    (*

    connection timed out

    *)
  70. | ETXTBSY
    (*

    text file is busy

    *)
  71. | EXDEV
    (*

    cross-device link not permitted

    *)
  72. | UNKNOWN
    (*

    unknown error

    *)
  73. | EOF
    (*

    end of file

    *)
  74. | ENXIO
    (*

    no such device or address

    *)
  75. | EHOSTDOWN
    (*

    host is down

    *)
  76. | EREMOTEIO
    (*

    remote I/O error

    *)
  77. | ENOTTY
    (*

    inappropriate ioctl for device

    *)
  78. | EFTYPE
    (*

    inappropriate file type or format

    *)
  79. | UWT_EFATAL
    (*

    something happened that the author of uwt didn't expect. Probably a bug or the api of libuv has changed in the meanwhile

    *)
val strerror : error -> string

error message for the given error code

val err_name : error -> string

error name for the given error code

val to_unix_error : error -> Unix.error

map error to Unix.error , Unix.EUNKNOWNERR is used, if the mapping is not possible

val of_unix_error : Unix.error -> error

get back the original Uwt.error from an exception raised by a Uwt function

type 'a uv_result = ('a, error) Pervasives.result
module Int_result : sig ... end

Int_result.t is used instead of 'a result, if a function returns either an error or a non-negative integer (including unit/bool).

type file

Abstract type for a file descriptor. Unlike Unix.file_descr it is not intended to wrap a SOCKET.

type sockaddr = Unix.sockaddr
val stdin : file

File descriptor for standard input.

val stdout : file

File descriptor for standard output.

val stderr : file

File descriptor for standard error.

module Iovec_write : sig ... end

pass multiple buffers at once to a libuv write function.

module Fs_types : sig ... end
module type Fs_functions = sig ... end
module Conv : sig ... end
module Misc : sig ... end

This section contains miscellaneous functions that don't really belong in any other section.

module Sys_info : sig ... end

Information about your operating system.