Commit 9194f47b authored by Tom Niget's avatar Tom Niget

Add fsync io call

parent 46500aab
...@@ -95,6 +95,13 @@ namespace typon::io ...@@ -95,6 +95,13 @@ namespace typon::io
return awaitable; return awaitable;
} }
auto fsync(int fd, unsigned fsync_flags = 0) noexcept
{
SyscallAwaitable awaitable;
io_uring_prep_fsync(awaitable._sqe, fd, fsync_flags);
return awaitable;
}
auto statx(int dfd, auto statx(int dfd,
const char * path, const char * path,
int flags, int flags,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment