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

Add fsync io call

parent 46500aab
......@@ -95,6 +95,13 @@ namespace typon::io
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,
const char * path,
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