package extunix

  1. Overview
  2. Docs

File operations on large files. This sub-module provides 64-bit variants of the functions ExtUnix.fadvise (for predeclaring an access pattern for file data), ExtUnix.fallocate (for allocating disk space for a file), ExtUnix.all_pread, ExtUnix.single_pread, ExtUnix.pread, ExtUnix.intr_pread, ExtUnix.all_pwrite, ExtUnix.single_pwrite, ExtUnix.pwrite and ExtUnix.intr_pwrite (for reading from or writing to a file descriptor at a given offset). These alternate functions represent positions and sizes by 64-bit integers (type int64) instead of regular integers (type int), thus allowing operating on files whose sizes are greater than max_int.

val fadvise : Unix.file_descr -> int64 -> int64 -> advice -> unit
val fallocate : Unix.file_descr -> int64 -> int64 -> unit
val unsafe_all_pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val all_pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val unsafe_single_pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val single_pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val unsafe_pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val unsafe_intr_pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val intr_pread : Unix.file_descr -> int64 -> string -> int -> int -> int
val unsafe_all_pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
val all_pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
val unsafe_single_pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
val single_pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
val unsafe_pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
val pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
val unsafe_intr_pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
val intr_pwrite : Unix.file_descr -> int64 -> string -> int -> int -> int
module BA : sig ... end
OCaml

Innovation. Community. Security.