ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
540 stars 66 forks source link

Add Eio.File.{seek,sync,truncate} #626

Closed talex5 closed 11 months ago

talex5 commented 11 months ago

These are currently implemented using Unix on all platforms. fsync could use uring, once https://github.com/ocaml-multicore/ocaml-uring/pull/103 is merged.

Part of #510.

The code is currently duplicated in the backends. It's quite small, and might diverge in future, but perhaps it should be moved to eio_unix and shared?