linux: add syncfs(2)

This adds binding for `syncfs` on Linux, which is implemented by
all supported libraries.

Ref: https://man7.org/linux/man-pages/man2/syncfs.2.html
This commit is contained in:
Luca BRUNO 2021-04-23 09:28:35 +00:00
parent 6570c66a41
commit 20543f3f24
No known key found for this signature in database
GPG Key ID: A9834A2252078E4E
2 changed files with 2 additions and 0 deletions

View File

@ -3007,6 +3007,7 @@ swapoff
swapon
sync
sync_file_range
syncfs
syscall
sysinfo
tee

View File

@ -3257,6 +3257,7 @@ extern "C" {
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
pub fn vhangup() -> ::c_int;
pub fn sync();
pub fn syncfs(fd: ::c_int) -> ::c_int;
pub fn syscall(num: ::c_long, ...) -> ::c_long;
pub fn sched_getaffinity(pid: ::pid_t, cpusetsize: ::size_t, cpuset: *mut cpu_set_t)
-> ::c_int;