@@ -13,6 +13,46 @@ missing! {
13
13
pub enum timezone { }
14
14
}
15
15
16
+ // FIXME(musl): these changes are not strictly part of time64 but the fact musl_v1_2_3 is enabled
17
+ // on ohos makes it awkward.
18
+ cfg_if ! {
19
+ if #[ cfg( not( any( target_env = "musl" , target_os = "emscripten" , target_env = "ohos" ) ) ) ] {
20
+ s! {
21
+ pub struct sched_param {
22
+ pub sched_priority: c_int,
23
+ }
24
+ }
25
+ } else if #[ cfg( musl_time64) ] {
26
+ s! {
27
+ pub struct sched_param {
28
+ pub sched_priority: c_int,
29
+
30
+ __reserved1: c_int,
31
+ //#[cfg(musl_time64)]
32
+ __reserved2: [ c_long; 4 ] ,
33
+ //#[cfg(not(musl_time64))]
34
+ //__reserved2: [crate::timespec; 2],
35
+ __reserved3: c_int,
36
+ }
37
+ }
38
+ } else {
39
+ s! {
40
+ pub struct sched_param {
41
+ pub sched_priority: c_int,
42
+
43
+ #[ deprecated( since = "0.2.173" , note = "This field has been removed upstream and we'll follow that change in a future release." ) ]
44
+ pub sched_ss_low_priority: c_int,
45
+ #[ deprecated( since = "0.2.173" , note = "This field has been removed upstream and we'll follow that change in a future release." ) ]
46
+ pub sched_ss_repl_period: crate :: timespec,
47
+ #[ deprecated( since = "0.2.173" , note = "This field has been removed upstream and we'll follow that change in a future release." ) ]
48
+ pub sched_ss_init_budget: crate :: timespec,
49
+ #[ deprecated( since = "0.2.173" , note = "This field has been removed upstream and we'll follow that change in a future release." ) ]
50
+ pub sched_ss_max_repl: c_int,
51
+ }
52
+ }
53
+ }
54
+ }
55
+
16
56
s ! {
17
57
pub struct __c_anonymous_sigev_thread {
18
58
pub _function: Option <extern "C" fn ( crate :: sigval) -> * mut c_void>,
@@ -108,18 +148,6 @@ s! {
108
148
pub tm_zone: * const c_char,
109
149
}
110
150
111
- pub struct sched_param {
112
- pub sched_priority: c_int,
113
- #[ cfg( any( target_env = "musl" , target_os = "emscripten" , target_env = "ohos" ) ) ]
114
- pub sched_ss_low_priority: c_int,
115
- #[ cfg( any( target_env = "musl" , target_os = "emscripten" , target_env = "ohos" ) ) ]
116
- pub sched_ss_repl_period: crate :: timespec,
117
- #[ cfg( any( target_env = "musl" , target_os = "emscripten" , target_env = "ohos" ) ) ]
118
- pub sched_ss_init_budget: crate :: timespec,
119
- #[ cfg( any( target_env = "musl" , target_os = "emscripten" , target_env = "ohos" ) ) ]
120
- pub sched_ss_max_repl: c_int,
121
- }
122
-
123
151
pub struct Dl_info {
124
152
pub dli_fname: * const c_char,
125
153
pub dli_fbase: * mut c_void,
0 commit comments