File tree 4 files changed +16
-18
lines changed
4 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ pub type c_long = i64;
51
51
52
52
pub type c_ulong = u64 ;
53
53
54
- #[ repr( align( 16 ) ) ]
55
- pub struct _CLongDouble ( pub u128 ) ;
56
-
57
54
// long double in C means A float point value, which has 128bit length.
58
55
// but some bit maybe not used, so the real length of long double could be 80(x86) or 128(power pc/IEEE)
59
56
// this is different from f128(not stable and not included default) in Rust, so we use u128 for FFI(Rust to C).
@@ -88,6 +85,9 @@ pub type wctype_t = c_ulong;
88
85
89
86
pub type cmpfunc = extern "C" fn ( x : * const c_void , y : * const c_void ) -> c_int ;
90
87
88
+ #[ repr( align( 16 ) ) ]
89
+ pub struct _CLongDouble ( pub u128 ) ;
90
+
91
91
#[ repr( align( 8 ) ) ]
92
92
#[ repr( C ) ]
93
93
pub struct pthread_cond_t {
Original file line number Diff line number Diff line change @@ -2162,18 +2162,6 @@ cfg_if! {
2162
2162
}
2163
2163
}
2164
2164
2165
- cfg_if ! {
2166
- if #[ cfg( all(
2167
- any( target_env = "gnu" , target_env = "musl" , target_env = "ohos" ) ,
2168
- any( target_arch = "x86_64" , target_arch = "x86" )
2169
- ) ) ] {
2170
- extern "C" {
2171
- pub fn iopl( level: c_int) -> c_int;
2172
- pub fn ioperm( from: c_ulong, num: c_ulong, turn_on: c_int) -> c_int;
2173
- }
2174
- }
2175
- }
2176
-
2177
2165
cfg_if ! {
2178
2166
if #[ cfg( any(
2179
2167
target_env = "gnu" ,
@@ -6007,6 +5995,18 @@ safe_f! {
6007
5995
}
6008
5996
}
6009
5997
5998
+ cfg_if ! {
5999
+ if #[ cfg( all(
6000
+ any( target_env = "gnu" , target_env = "musl" , target_env = "ohos" ) ,
6001
+ any( target_arch = "x86_64" , target_arch = "x86" )
6002
+ ) ) ] {
6003
+ extern "C" {
6004
+ pub fn iopl( level: c_int) -> c_int;
6005
+ pub fn ioperm( from: c_ulong, num: c_ulong, turn_on: c_int) -> c_int;
6006
+ }
6007
+ }
6008
+ }
6009
+
6010
6010
cfg_if ! {
6011
6011
if #[ cfg( all( not( target_env = "uclibc" ) , not( target_env = "ohos" ) ) ) ] {
6012
6012
extern "C" {
Original file line number Diff line number Diff line change 28
28
}
29
29
}
30
30
31
- #[ cfg( target_os = "l4re" ) ]
32
31
#[ allow( missing_debug_implementations) ]
33
32
pub struct pthread_attr_t {
34
33
pub __detachstate : c_int ,
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ pub type nfds_t = c_ulong;
44
44
pub type wchar_t = i32 ;
45
45
pub type nl_item = c_int ;
46
46
pub type __wasi_rights_t = u64 ;
47
+ pub type locale_t = * mut __locale_struct ;
47
48
48
49
s_no_extra_traits ! {
49
50
#[ repr( align( 16 ) ) ]
@@ -63,8 +64,6 @@ pub enum DIR {}
63
64
#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
64
65
pub enum __locale_struct { }
65
66
66
- pub type locale_t = * mut __locale_struct ;
67
-
68
67
s_paren ! {
69
68
// in wasi-libc clockid_t is const struct __clockid* (where __clockid is an opaque struct),
70
69
// but that's an implementation detail that we don't want to have to deal with
You can’t perform that action at this time.
0 commit comments