Skip to content

Commit

Permalink
Auto merge of #2148 - lucab:ups/linux-syncfs, r=JohnTitor
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Apr 23, 2021
2 parents 6570c66 + 20543f3 commit c894124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Expand Up @@ -3007,6 +3007,7 @@ swapoff
swapon
sync
sync_file_range
syncfs
syscall
sysinfo
tee
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/mod.rs
Expand Up @@ -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;
Expand Down

0 comments on commit c894124

Please sign in to comment.