Unixext.DirectPerform I/O in O_DIRECT mode using 4KiB page-aligned buffers
val openfile : string -> Unix.open_flag list -> Unix.file_perm -> topenfile name flags perm behaves the same as Unix.openfile but includes the O_DIRECT flag
val close : t -> unitclose t closes t, a file open in O_DIRECT mode
val with_openfile :
string ->
Unix.open_flag list ->
Unix.file_perm ->
(t -> 'a) ->
'awith_openfile name flags perm f opens name, applies the result to f and closes
val write : t -> bytes -> int -> int -> intwrite t buf ofs len writes len bytes at offset ofs from buffer buf to t using page-aligned buffers.
val copy_from_fd : ?limit:int64 -> Unix.file_descr -> t -> int64copy_from_fd ?limit fd t copies from fd to t up to limit
val fsync : t -> unitfsync t commits all outstanding writes, throwing an error if necessary.
val lseek : t -> int64 -> Unix.seek_command -> int64lseek t offset command: see Unix.LargeFile.lseek