@@ -18,6 +18,7 @@ pub type dev_t = u64;
1818pub type socklen_t = u32 ;
1919pub type mode_t = u32 ;
2020pub type ino64_t = u64 ;
21+ // FIXME(1.0,deprecate): lfs binding to be removed
2122pub type off64_t = i64 ;
2223pub type blkcnt64_t = i64 ;
2324pub type rlim64_t = u64 ;
@@ -3479,7 +3480,10 @@ extern "C" {
34793480 pub fn fallocate ( fd : c_int , mode : c_int , offset : off_t , len : off_t ) -> c_int ;
34803481 #[ cfg_attr( gnu_file_offset_bits64, link_name = "posix_fallocate64" ) ]
34813482 pub fn posix_fallocate ( fd : c_int , offset : off_t , len : off_t ) -> c_int ;
3483+ #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
34823484 pub fn readahead ( fd : c_int , offset : off64_t , count : size_t ) -> ssize_t ;
3485+ #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ]
3486+ pub fn readahead ( fd : c_int , offset : off_t , count : size_t ) -> ssize_t ;
34833487 pub fn getxattr (
34843488 path : * const c_char ,
34853489 name : * const c_char ,
@@ -3567,7 +3571,10 @@ extern "C" {
35673571
35683572 // Not available now on Android
35693573 pub fn mkfifoat ( dirfd : c_int , pathname : * const c_char , mode : mode_t ) -> c_int ;
3574+ #[ cfg( not( any( target_env = "musl" , target_env = "ohos" ) ) ) ]
35703575 pub fn sync_file_range ( fd : c_int , offset : off64_t , nbytes : off64_t , flags : c_uint ) -> c_int ;
3576+ #[ cfg( any( target_env = "musl" , target_env = "ohos" ) ) ]
3577+ pub fn sync_file_range ( fd : c_int , offset : off_t , nbytes : off_t , flags : c_uint ) -> c_int ;
35713578
35723579 pub fn posix_madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
35733580
0 commit comments