Skip to content

Commit 351c435

Browse files
committed
Add a declaration for posix_fadvise64 on Linux.
As with the other *64 functions in Linux, `posix_fadvise64` is like `posix_fadvise` but uses `off64_t` instead of `off_t`.
1 parent f3bc836 commit 351c435

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/linux_like/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,12 @@ extern "C" {
13161316
len: ::off_t,
13171317
advise: ::c_int,
13181318
) -> ::c_int;
1319+
pub fn posix_fadvise64(
1320+
fd: ::c_int,
1321+
offset: ::off64_t,
1322+
len: ::off64_t,
1323+
advise: ::c_int,
1324+
) -> ::c_int;
13191325
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
13201326
pub fn utimensat(
13211327
dirfd: ::c_int,

0 commit comments

Comments
 (0)