Skip to content

Commit c894124

Browse files
committed
Auto merge of #2148 - lucab:ups/linux-syncfs, r=JohnTitor
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
2 parents 6570c66 + 20543f3 commit c894124

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/linux.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3007,6 +3007,7 @@ swapoff
30073007
swapon
30083008
sync
30093009
sync_file_range
3010+
syncfs
30103011
syscall
30113012
sysinfo
30123013
tee

src/unix/linux_like/linux/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3257,6 +3257,7 @@ extern "C" {
32573257
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
32583258
pub fn vhangup() -> ::c_int;
32593259
pub fn sync();
3260+
pub fn syncfs(fd: ::c_int) -> ::c_int;
32603261
pub fn syscall(num: ::c_long, ...) -> ::c_long;
32613262
pub fn sched_getaffinity(pid: ::pid_t, cpusetsize: ::size_t, cpuset: *mut cpu_set_t)
32623263
-> ::c_int;

0 commit comments

Comments
 (0)