Skip to content

Commit bb9269b

Browse files
author
Daniel Verkamp
committed
Add fallocate64 and posix_fallocate64 bindings
These are necessary for large file support on 32-bit platforms, following the same pattern as 7482522 ("Add bindings for -D_FILE_OFFSET_BITS=64"). Signed-off-by: Daniel Verkamp <[email protected]>
1 parent d13f346 commit bb9269b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/notbsd/linux/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1816,8 +1816,12 @@ extern {
18161816
pub fn ftello64(stream: *mut ::FILE) -> ::off64_t;
18171817
pub fn fallocate(fd: ::c_int, mode: ::c_int,
18181818
offset: ::off_t, len: ::off_t) -> ::c_int;
1819+
pub fn fallocate64(fd: ::c_int, mode: ::c_int,
1820+
offset: ::off64_t, len: ::off64_t) -> ::c_int;
18191821
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t,
18201822
len: ::off_t) -> ::c_int;
1823+
pub fn posix_fallocate64(fd: ::c_int, offset: ::off64_t,
1824+
len: ::off64_t) -> ::c_int;
18211825
pub fn readahead(fd: ::c_int, offset: ::off64_t,
18221826
count: ::size_t) -> ::ssize_t;
18231827
pub fn getxattr(path: *const c_char, name: *const c_char,

0 commit comments

Comments
 (0)