From 78ac7f06442bdb193d0c55b32a770b9b741426ce Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Sat, 11 Dec 2021 04:02:41 -0600 Subject: DragonFly supports posix_fallocate, stubs posix_fadvise --- libc-test/semver/dragonfly.txt | 2 ++ src/unix/bsd/freebsdlike/freebsd/mod.rs | 2 -- src/unix/bsd/freebsdlike/mod.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index 9a68a6c116..201e357633 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -1352,6 +1352,8 @@ openpty pause pipe2 popen +posix_fadvise +posix_fallocate posix_madvise ppoll preadv diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 864d5b4933..f87a5cf0d9 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3840,8 +3840,6 @@ extern "C" { sevp: *mut sigevent, ) -> ::c_int; - pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; - pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int; pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int; pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int; diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index a1e78e4157..f0c4fc21f4 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -1512,6 +1512,8 @@ extern "C" { pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t; pub fn nl_langinfo_l(item: ::nl_item, locale: ::locale_t) -> *mut ::c_char; pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int; + pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; + pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int; pub fn ppoll( fds: *mut ::pollfd, nfds: ::nfds_t, -- cgit v1.2.1