summaryrefslogtreecommitdiff
path: root/src/unix/solarish
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2023-03-28 04:23:56 -0700
committerDan Gohman <dev@sunfishcode.online>2023-04-18 02:33:20 -0700
commit0ba1fc4d6658317ca1ad79e5b62677ba4c772f0c (patch)
tree7718e877887b82265419d7ef2b94de71d2d00db3 /src/unix/solarish
parent88740efbf6e093bb021f2b67e518e247a47a61fd (diff)
downloadrust-libc-0ba1fc4d6658317ca1ad79e5b62677ba4c772f0c.tar.gz
Upstream a few more constants from rustix.
- And a definition for `RLIM64_INFINITY` on linux_like platforms. - Declare the `sync` function on Android and solarish. - Solaris: https://docs.oracle.com/cd/E26502_01/html/E29032/sync-2.html - Illumos: https://illumos.org/man/2/sync - Enable `FICLONE` and `FICLONERANGE` on more architectures.
Diffstat (limited to 'src/unix/solarish')
-rw-r--r--src/unix/solarish/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs
index 88f9cab9d6..12c88f31a1 100644
--- a/src/unix/solarish/mod.rs
+++ b/src/unix/solarish/mod.rs
@@ -3196,6 +3196,8 @@ extern "C" {
longopts: *const option,
longindex: *mut ::c_int,
) -> ::c_int;
+
+ pub fn sync();
}
#[link(name = "sendfile")]