You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only one of this list that I'm a little wary of adding to Eio without some thought is map_file. It's almost never the right answer to memory map a large amount of data, since you lose control of when the process blocks in the memory subsystem. I wonder if we can build something with a similar interface using OCaml's custom array indexing operators, but that goes via uring/pread calls instead of mmap.
The FS API is currently missing lots of functions that are in OCaml's
Unix
:stat
andlstat
(you can stat an open file though)fsync
(Add Eio.File.{seek,sync,truncate} #626)lseek
(Add Eio.File.{seek,sync,truncate} #626)ftruncate
(Add Eio.File.{seek,sync,truncate} #626) (andtruncate
?)map_file
link
,symlink
readlink
realpath
chmod
chown
access
Also, would be good to provide helpers for:
The text was updated successfully, but these errors were encountered: