@@ -1645,10 +1645,14 @@ extern "C" {
16451645 pub fn setgroups ( ngroups : :: size_t , ptr : * const :: gid_t ) -> :: c_int ;
16461646 pub fn pipe2 ( fds : * mut :: c_int , flags : :: c_int ) -> :: c_int ;
16471647 pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
1648+ #[ cfg( not( target_env = "musl" ) ) ]
16481649 pub fn statfs64 ( path : * const :: c_char , buf : * mut statfs64 ) -> :: c_int ;
16491650 pub fn fstatfs ( fd : :: c_int , buf : * mut statfs ) -> :: c_int ;
1651+ #[ cfg( not( target_env = "musl" ) ) ]
16501652 pub fn fstatfs64 ( fd : :: c_int , buf : * mut statfs64 ) -> :: c_int ;
1653+ #[ cfg( not( target_env = "musl" ) ) ]
16511654 pub fn statvfs64 ( path : * const :: c_char , buf : * mut statvfs64 ) -> :: c_int ;
1655+ #[ cfg( not( target_env = "musl" ) ) ]
16521656 pub fn fstatvfs64 ( fd : :: c_int , buf : * mut statvfs64 ) -> :: c_int ;
16531657 pub fn memrchr ( cx : * const :: c_void , c : :: c_int , n : :: size_t ) -> * mut :: c_void ;
16541658
@@ -1670,16 +1674,22 @@ extern "C" {
16701674 pub fn freelocale ( loc : :: locale_t ) ;
16711675 pub fn newlocale ( mask : :: c_int , locale : * const :: c_char , base : :: locale_t ) -> :: locale_t ;
16721676 pub fn uselocale ( loc : :: locale_t ) -> :: locale_t ;
1677+ #[ cfg( not( target_env = "musl" ) ) ]
16731678 pub fn creat64 ( path : * const c_char , mode : mode_t ) -> :: c_int ;
1679+ #[ cfg( not( target_env = "musl" ) ) ]
16741680 pub fn fstat64 ( fildes : :: c_int , buf : * mut stat64 ) -> :: c_int ;
1681+ #[ cfg( not( target_env = "musl" ) ) ]
16751682 pub fn fstatat64 (
16761683 dirfd : :: c_int ,
16771684 pathname : * const c_char ,
16781685 buf : * mut stat64 ,
16791686 flags : :: c_int ,
16801687 ) -> :: c_int ;
1688+ #[ cfg( not( target_env = "musl" ) ) ]
16811689 pub fn ftruncate64 ( fd : :: c_int , length : off64_t ) -> :: c_int ;
1690+ #[ cfg( not( target_env = "musl" ) ) ]
16821691 pub fn lseek64 ( fd : :: c_int , offset : off64_t , whence : :: c_int ) -> off64_t ;
1692+ #[ cfg( not( target_env = "musl" ) ) ]
16831693 pub fn lstat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
16841694 pub fn mmap64 (
16851695 addr : * mut :: c_void ,
@@ -1689,22 +1699,30 @@ extern "C" {
16891699 fd : :: c_int ,
16901700 offset : off64_t ,
16911701 ) -> * mut :: c_void ;
1702+ #[ cfg( not( target_env = "musl" ) ) ]
16921703 pub fn open64 ( path : * const c_char , oflag : :: c_int , ...) -> :: c_int ;
1704+ #[ cfg( not( target_env = "musl" ) ) ]
16931705 pub fn openat64 ( fd : :: c_int , path : * const c_char , oflag : :: c_int , ...) -> :: c_int ;
1706+ #[ cfg( not( target_env = "musl" ) ) ]
16941707 pub fn pread64 ( fd : :: c_int , buf : * mut :: c_void , count : :: size_t , offset : off64_t ) -> :: ssize_t ;
1708+ #[ cfg( not( target_env = "musl" ) ) ]
16951709 pub fn pwrite64 (
16961710 fd : :: c_int ,
16971711 buf : * const :: c_void ,
16981712 count : :: size_t ,
16991713 offset : off64_t ,
17001714 ) -> :: ssize_t ;
1715+ #[ cfg( not( target_env = "musl" ) ) ]
17011716 pub fn readdir64 ( dirp : * mut :: DIR ) -> * mut :: dirent64 ;
1717+ #[ cfg( not( target_env = "musl" ) ) ]
17021718 pub fn readdir64_r (
17031719 dirp : * mut :: DIR ,
17041720 entry : * mut :: dirent64 ,
17051721 result : * mut * mut :: dirent64 ,
17061722 ) -> :: c_int ;
1723+ #[ cfg( not( target_env = "musl" ) ) ]
17071724 pub fn stat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
1725+ #[ cfg( not( target_env = "musl" ) ) ]
17081726 pub fn truncate64 ( path : * const c_char , length : off64_t ) -> :: c_int ;
17091727
17101728 pub fn mknodat (
0 commit comments