interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / new / emscripten / sched.rs

38 lines · 1365 bytes Raw Blame History
1use crate::prelude::*;
2
3cfg_if! {
4 if #[cfg(musl_v1_2_3)] {
5 s! {
6 struct __c_anon_sched_param__reserved2 {
7 __reserved1: crate::time_t,
8 __reserved2: c_long,
9 }
10
11 pub struct sched_param {
12 pub sched_priority: c_int,
13
14 __reserved1: Padding<c_int>,
15 #[cfg(musl32_time64)]
16 __reserved2: Padding<[c_long; 4]>,
17 #[cfg(not(musl32_time64))]
18 __reserved2: Padding<[__c_anon_sched_param__reserved2; 2]>,
19 __reserved3: Padding<c_int>,
20 }
21 }
22 } else {
23 s! {
24 pub struct sched_param {
25 pub sched_priority: c_int,
26
27 #[deprecated(since = "0.2.173", note = "This field has been removed upstream")]
28 pub sched_ss_low_priority: c_int,
29 #[deprecated(since = "0.2.173", note = "This field has been removed upstream")]
30 pub sched_ss_repl_period: crate::timespec,
31 #[deprecated(since = "0.2.173", note = "This field has been removed upstream")]
32 pub sched_ss_init_budget: crate::timespec,
33 #[deprecated(since = "0.2.173", note = "This field has been removed upstream")]
34 pub sched_ss_max_repl: c_int,
35 }
36 }
37 }
38}