From d18863d82446b925b2d4e74a85d346c6181682bf Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 18 Oct 2024 23:38:26 +0100 Subject: [PATCH] illumos adding syncfs. https://raw.githubusercontent.com/illumos/illumos-gate/05ce3950cb6a645887911ba82ec91e3c06c5ad7c/usr/src/man/man3c/syncfs.3c --- libc-test/semver/illumos.txt | 1 + src/unix/solarish/illumos.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libc-test/semver/illumos.txt b/libc-test/semver/illumos.txt index 64c25d4b4f969..df91859b46655 100644 --- a/libc-test/semver/illumos.txt +++ b/libc-test/semver/illumos.txt @@ -12,3 +12,4 @@ pthread_attr_get_np pthread_attr_getstackaddr pthread_attr_setstack ptsname_r +syncfs diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs index 614fd12eb07eb..9b0a692055e6a 100644 --- a/src/unix/solarish/illumos.rs +++ b/src/unix/solarish/illumos.rs @@ -112,4 +112,6 @@ extern "C" { pub fn getpagesizes2(pagesize: *mut ::size_t, nelem: ::c_int) -> ::c_int; pub fn ptsname_r(fildes: ::c_int, name: *mut ::c_char, namelen: ::size_t) -> ::c_int; + + pub fn syncfs(fd: ::c_int) -> ::c_int; }