posix_fallocate(3) bindings

This commit is contained in:
Dan Burkert 2015-11-03 21:02:46 -08:00
parent 0b46775490
commit 44bba4c753
2 changed files with 4 additions and 0 deletions

View File

@ -520,6 +520,8 @@ extern {
-> ::c_int;
pub fn clock_gettime(clk_id: ::c_int, tp: *mut ::timespec) -> ::c_int;
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t,
len: ::off_t) -> ::c_int;
}
cfg_if! {

View File

@ -283,6 +283,8 @@ extern {
pub fn ftello64(stream: *mut ::FILE) -> ::off64_t;
pub fn fallocate(fd: ::c_int, mode: ::c_int,
offset: ::off_t, len: ::off_t) -> ::c_int;
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t,
len: ::off_t) -> ::c_int;
}
cfg_if! {