File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1507,6 +1507,10 @@ XATTR_SHOWCOMPRESSION
1507
1507
XUCRED_VERSION
1508
1508
YESEXPR
1509
1509
YESSTR
1510
+ _CS_PATH
1511
+ _CS_DARWIN_USER_DIR
1512
+ _CS_DARWIN_USER_TEMP_DIR
1513
+ _CS_DARWIN_USER_CACHE_DIR
1510
1514
_IOFBF
1511
1515
_IOLBF
1512
1516
_IONBF
@@ -1681,6 +1685,7 @@ clock_getres
1681
1685
clonefile
1682
1686
clonefileat
1683
1687
cmsghdr
1688
+ confstr
1684
1689
connectx
1685
1690
copyfile
1686
1691
copyfile_flags_t
Original file line number Diff line number Diff line change @@ -3796,6 +3796,11 @@ pub const _SC_TRACE_NAME_MAX: ::c_int = 128;
3796
3796
pub const _SC_TRACE_SYS_MAX: :: c_int = 129 ;
3797
3797
pub const _SC_TRACE_USER_EVENT_MAX: :: c_int = 130 ;
3798
3798
pub const _SC_PASS_MAX: :: c_int = 131 ;
3799
+ // `confstr` keys (only the values guaranteed by `man confstr`).
3800
+ pub const _CS_PATH: :: c_int = 1 ;
3801
+ pub const _CS_DARWIN_USER_DIR: :: c_int = 65536 ;
3802
+ pub const _CS_DARWIN_USER_TEMP_DIR: :: c_int = 65537 ;
3803
+ pub const _CS_DARWIN_USER_CACHE_DIR: :: c_int = 65538 ;
3799
3804
3800
3805
pub const PTHREAD_MUTEX_NORMAL : :: c_int = 0 ;
3801
3806
pub const PTHREAD_MUTEX_ERRORCHECK : :: c_int = 1 ;
@@ -4846,6 +4851,11 @@ extern "C" {
4846
4851
pub fn fchflags ( fd : :: c_int , flags : :: c_uint ) -> :: c_int ;
4847
4852
pub fn clock_getres ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
4848
4853
pub fn clock_gettime ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
4854
+ #[ cfg_attr(
4855
+ all( target_os = "macos" , target_arch = "x86" ) ,
4856
+ link_name = "confstr$UNIX2003"
4857
+ ) ]
4858
+ pub fn confstr ( name : :: c_int , buf : * mut :: c_char , len : :: size_t ) -> :: size_t ;
4849
4859
pub fn lio_listio (
4850
4860
mode : :: c_int ,
4851
4861
aiocb_list : * const * mut aiocb ,
You can’t perform that action at this time.
0 commit comments