Skip to content

Commit f3e174c

Browse files
committed
haiku posix_fadvise/fallocate addition.
1 parent 94bf82a commit f3e174c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,8 @@ extern "C" {
14411441
pub fn globfree(pglob: *mut ::glob_t);
14421442
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int;
14431443
pub fn posix_madvise(addr: *mut ::c_void, len: ::size_t, advice: ::c_int) -> ::c_int;
1444+
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advice: ::c_int) -> ::c_int;
1445+
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int;
14441446

14451447
pub fn shm_open(name: *const ::c_char, oflag: ::c_int, mode: ::mode_t) -> ::c_int;
14461448
pub fn shm_unlink(name: *const ::c_char) -> ::c_int;

0 commit comments

Comments
 (0)