@@ -1673,10 +1673,14 @@ extern "C" {
1673
1673
pub fn setgroups ( ngroups : :: size_t , ptr : * const :: gid_t ) -> :: c_int ;
1674
1674
pub fn pipe2 ( fds : * mut :: c_int , flags : :: c_int ) -> :: c_int ;
1675
1675
pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
1676
+ #[ cfg( not( target_env = "musl" ) ) ]
1676
1677
pub fn statfs64 ( path : * const :: c_char , buf : * mut statfs64 ) -> :: c_int ;
1677
1678
pub fn fstatfs ( fd : :: c_int , buf : * mut statfs ) -> :: c_int ;
1679
+ #[ cfg( not( target_env = "musl" ) ) ]
1678
1680
pub fn fstatfs64 ( fd : :: c_int , buf : * mut statfs64 ) -> :: c_int ;
1681
+ #[ cfg( not( target_env = "musl" ) ) ]
1679
1682
pub fn statvfs64 ( path : * const :: c_char , buf : * mut statvfs64 ) -> :: c_int ;
1683
+ #[ cfg( not( target_env = "musl" ) ) ]
1680
1684
pub fn fstatvfs64 ( fd : :: c_int , buf : * mut statvfs64 ) -> :: c_int ;
1681
1685
pub fn memrchr ( cx : * const :: c_void , c : :: c_int , n : :: size_t ) -> * mut :: c_void ;
1682
1686
@@ -1698,16 +1702,22 @@ extern "C" {
1698
1702
pub fn freelocale ( loc : :: locale_t ) ;
1699
1703
pub fn newlocale ( mask : :: c_int , locale : * const :: c_char , base : :: locale_t ) -> :: locale_t ;
1700
1704
pub fn uselocale ( loc : :: locale_t ) -> :: locale_t ;
1705
+ #[ cfg( not( target_env = "musl" ) ) ]
1701
1706
pub fn creat64 ( path : * const c_char , mode : mode_t ) -> :: c_int ;
1707
+ #[ cfg( not( target_env = "musl" ) ) ]
1702
1708
pub fn fstat64 ( fildes : :: c_int , buf : * mut stat64 ) -> :: c_int ;
1709
+ #[ cfg( not( target_env = "musl" ) ) ]
1703
1710
pub fn fstatat64 (
1704
1711
dirfd : :: c_int ,
1705
1712
pathname : * const c_char ,
1706
1713
buf : * mut stat64 ,
1707
1714
flags : :: c_int ,
1708
1715
) -> :: c_int ;
1716
+ #[ cfg( not( target_env = "musl" ) ) ]
1709
1717
pub fn ftruncate64 ( fd : :: c_int , length : off64_t ) -> :: c_int ;
1718
+ #[ cfg( not( target_env = "musl" ) ) ]
1710
1719
pub fn lseek64 ( fd : :: c_int , offset : off64_t , whence : :: c_int ) -> off64_t ;
1720
+ #[ cfg( not( target_env = "musl" ) ) ]
1711
1721
pub fn lstat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
1712
1722
pub fn mmap64 (
1713
1723
addr : * mut :: c_void ,
@@ -1717,22 +1727,30 @@ extern "C" {
1717
1727
fd : :: c_int ,
1718
1728
offset : off64_t ,
1719
1729
) -> * mut :: c_void ;
1730
+ #[ cfg( not( target_env = "musl" ) ) ]
1720
1731
pub fn open64 ( path : * const c_char , oflag : :: c_int , ...) -> :: c_int ;
1732
+ #[ cfg( not( target_env = "musl" ) ) ]
1721
1733
pub fn openat64 ( fd : :: c_int , path : * const c_char , oflag : :: c_int , ...) -> :: c_int ;
1734
+ #[ cfg( not( target_env = "musl" ) ) ]
1722
1735
pub fn pread64 ( fd : :: c_int , buf : * mut :: c_void , count : :: size_t , offset : off64_t ) -> :: ssize_t ;
1736
+ #[ cfg( not( target_env = "musl" ) ) ]
1723
1737
pub fn pwrite64 (
1724
1738
fd : :: c_int ,
1725
1739
buf : * const :: c_void ,
1726
1740
count : :: size_t ,
1727
1741
offset : off64_t ,
1728
1742
) -> :: ssize_t ;
1743
+ #[ cfg( not( target_env = "musl" ) ) ]
1729
1744
pub fn readdir64 ( dirp : * mut :: DIR ) -> * mut :: dirent64 ;
1745
+ #[ cfg( not( target_env = "musl" ) ) ]
1730
1746
pub fn readdir64_r (
1731
1747
dirp : * mut :: DIR ,
1732
1748
entry : * mut :: dirent64 ,
1733
1749
result : * mut * mut :: dirent64 ,
1734
1750
) -> :: c_int ;
1751
+ #[ cfg( not( target_env = "musl" ) ) ]
1735
1752
pub fn stat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
1753
+ #[ cfg( not( target_env = "musl" ) ) ]
1736
1754
pub fn truncate64 ( path : * const c_char , length : off64_t ) -> :: c_int ;
1737
1755
1738
1756
pub fn mknodat (
0 commit comments