File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1036,9 +1036,18 @@ f! {
1036
1036
( _CMSG_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) +
1037
1037
_CMSG_ALIGN( length as usize ) ) as :: c_uint
1038
1038
}
1039
+
1040
+ #[ cfg( libc_thread_local) ]
1041
+ pub fn __error( ) -> * mut :: c_int {
1042
+ & mut errno
1043
+ }
1039
1044
}
1040
1045
1041
1046
extern {
1047
+ #[ cfg( libc_thread_local) ]
1048
+ #[ thread_local]
1049
+ static mut errno: :: c_int ;
1050
+
1042
1051
pub fn setgrent ( ) ;
1043
1052
pub fn mprotect ( addr : * mut :: c_void , len : :: size_t , prot : :: c_int )
1044
1053
-> :: c_int ;
Original file line number Diff line number Diff line change @@ -1132,6 +1132,8 @@ f! {
1132
1132
}
1133
1133
1134
1134
extern {
1135
+ pub fn __error ( ) -> * mut :: c_int ;
1136
+
1135
1137
pub fn clock_getres ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
1136
1138
pub fn clock_gettime ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
1137
1139
pub fn clock_settime ( clk_id : :: clockid_t , tp : * const :: timespec ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -1098,8 +1098,6 @@ f! {
1098
1098
}
1099
1099
1100
1100
extern {
1101
- pub fn __error ( ) -> * mut :: c_int ;
1102
-
1103
1101
pub fn sem_destroy ( sem : * mut sem_t ) -> :: c_int ;
1104
1102
pub fn sem_init ( sem : * mut sem_t ,
1105
1103
pshared : :: c_int ,
You can’t perform that action at this time.
0 commit comments