diff options
author | bors <bors@rust-lang.org> | 2021-12-11 17:28:08 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-12-11 17:28:08 +0000 |
commit | 9b054d8779d2f71f1803e20f0e3b3327a4ae2764 (patch) | |
tree | 5990ba9ae4f0a6a5a0fe746cccfe5b05afd518ee | |
parent | 720652a95b9b5b9ee0f12563c55badf50bd0bdab (diff) | |
parent | 78ac7f06442bdb193d0c55b32a770b9b741426ce (diff) | |
download | rust-libc-9b054d8779d2f71f1803e20f0e3b3327a4ae2764.tar.gz |
Auto merge of #2587 - rtzoeller:dfly_fallocate_fadvise, r=Amanieu
DragonFly supports posix_fallocate, stubs posix_fadvise
- https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/lib/libc/sys/posix_fallocate.2
- https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/lib/libc/stdlib/posix_fadvise.3
-rw-r--r-- | libc-test/semver/dragonfly.txt | 2 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 2 | ||||
-rw-r--r-- | 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, |