@@ -1645,10 +1645,14 @@ extern "C" {
1645
1645
pub fn setgroups ( ngroups : :: size_t , ptr : * const :: gid_t ) -> :: c_int ;
1646
1646
pub fn pipe2 ( fds : * mut :: c_int , flags : :: c_int ) -> :: c_int ;
1647
1647
pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
1648
+ #[ cfg( not( target_env = "musl" ) ) ]
1648
1649
pub fn statfs64 ( path : * const :: c_char , buf : * mut statfs64 ) -> :: c_int ;
1649
1650
pub fn fstatfs ( fd : :: c_int , buf : * mut statfs ) -> :: c_int ;
1651
+ #[ cfg( not( target_env = "musl" ) ) ]
1650
1652
pub fn fstatfs64 ( fd : :: c_int , buf : * mut statfs64 ) -> :: c_int ;
1653
+ #[ cfg( not( target_env = "musl" ) ) ]
1651
1654
pub fn statvfs64 ( path : * const :: c_char , buf : * mut statvfs64 ) -> :: c_int ;
1655
+ #[ cfg( not( target_env = "musl" ) ) ]
1652
1656
pub fn fstatvfs64 ( fd : :: c_int , buf : * mut statvfs64 ) -> :: c_int ;
1653
1657
pub fn memrchr ( cx : * const :: c_void , c : :: c_int , n : :: size_t ) -> * mut :: c_void ;
1654
1658
@@ -1670,16 +1674,22 @@ extern "C" {
1670
1674
pub fn freelocale ( loc : :: locale_t ) ;
1671
1675
pub fn newlocale ( mask : :: c_int , locale : * const :: c_char , base : :: locale_t ) -> :: locale_t ;
1672
1676
pub fn uselocale ( loc : :: locale_t ) -> :: locale_t ;
1677
+ #[ cfg( not( target_env = "musl" ) ) ]
1673
1678
pub fn creat64 ( path : * const c_char , mode : mode_t ) -> :: c_int ;
1679
+ #[ cfg( not( target_env = "musl" ) ) ]
1674
1680
pub fn fstat64 ( fildes : :: c_int , buf : * mut stat64 ) -> :: c_int ;
1681
+ #[ cfg( not( target_env = "musl" ) ) ]
1675
1682
pub fn fstatat64 (
1676
1683
dirfd : :: c_int ,
1677
1684
pathname : * const c_char ,
1678
1685
buf : * mut stat64 ,
1679
1686
flags : :: c_int ,
1680
1687
) -> :: c_int ;
1688
+ #[ cfg( not( target_env = "musl" ) ) ]
1681
1689
pub fn ftruncate64 ( fd : :: c_int , length : off64_t ) -> :: c_int ;
1690
+ #[ cfg( not( target_env = "musl" ) ) ]
1682
1691
pub fn lseek64 ( fd : :: c_int , offset : off64_t , whence : :: c_int ) -> off64_t ;
1692
+ #[ cfg( not( target_env = "musl" ) ) ]
1683
1693
pub fn lstat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
1684
1694
pub fn mmap64 (
1685
1695
addr : * mut :: c_void ,
@@ -1689,22 +1699,30 @@ extern "C" {
1689
1699
fd : :: c_int ,
1690
1700
offset : off64_t ,
1691
1701
) -> * mut :: c_void ;
1702
+ #[ cfg( not( target_env = "musl" ) ) ]
1692
1703
pub fn open64 ( path : * const c_char , oflag : :: c_int , ...) -> :: c_int ;
1704
+ #[ cfg( not( target_env = "musl" ) ) ]
1693
1705
pub fn openat64 ( fd : :: c_int , path : * const c_char , oflag : :: c_int , ...) -> :: c_int ;
1706
+ #[ cfg( not( target_env = "musl" ) ) ]
1694
1707
pub fn pread64 ( fd : :: c_int , buf : * mut :: c_void , count : :: size_t , offset : off64_t ) -> :: ssize_t ;
1708
+ #[ cfg( not( target_env = "musl" ) ) ]
1695
1709
pub fn pwrite64 (
1696
1710
fd : :: c_int ,
1697
1711
buf : * const :: c_void ,
1698
1712
count : :: size_t ,
1699
1713
offset : off64_t ,
1700
1714
) -> :: ssize_t ;
1715
+ #[ cfg( not( target_env = "musl" ) ) ]
1701
1716
pub fn readdir64 ( dirp : * mut :: DIR ) -> * mut :: dirent64 ;
1717
+ #[ cfg( not( target_env = "musl" ) ) ]
1702
1718
pub fn readdir64_r (
1703
1719
dirp : * mut :: DIR ,
1704
1720
entry : * mut :: dirent64 ,
1705
1721
result : * mut * mut :: dirent64 ,
1706
1722
) -> :: c_int ;
1723
+ #[ cfg( not( target_env = "musl" ) ) ]
1707
1724
pub fn stat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
1725
+ #[ cfg( not( target_env = "musl" ) ) ]
1708
1726
pub fn truncate64 ( path : * const c_char , length : off64_t ) -> :: c_int ;
1709
1727
1710
1728
pub fn mknodat (
0 commit comments