Skip to content

Commit 78ac7f0

Browse files
committed
DragonFly supports posix_fallocate, stubs posix_fadvise
1 parent 720652a commit 78ac7f0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,8 @@ openpty
13521352
pause
13531353
pipe2
13541354
popen
1355+
posix_fadvise
1356+
posix_fallocate
13551357
posix_madvise
13561358
ppoll
13571359
preadv

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3840,8 +3840,6 @@ extern "C" {
38403840
sevp: *mut sigevent,
38413841
) -> ::c_int;
38423842

3843-
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int;
3844-
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int;
38453843
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
38463844
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
38473845

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,8 @@ extern "C" {
15121512
pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t;
15131513
pub fn nl_langinfo_l(item: ::nl_item, locale: ::locale_t) -> *mut ::c_char;
15141514
pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int;
1515+
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int;
1516+
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advise: ::c_int) -> ::c_int;
15151517
pub fn ppoll(
15161518
fds: *mut ::pollfd,
15171519
nfds: ::nfds_t,

0 commit comments

Comments
 (0)