Skip to content

Commit e202742

Browse files
authored
Merge pull request #1827 from sunfishcode/linux-fadvise64
Add a declaration for `posix_fadvise64` on Linux.
2 parents f3bc836 + 351c435 commit e202742

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)