Skip to content

Commit cfeead7

Browse files
committed
Added missing structs needed for spawning sub processes
1 parent 475dce2 commit cfeead7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/wasi.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,31 @@ s! {
788788
pub st_ctim: timespec,
789789
__reserved: [c_longlong; 3],
790790
}
791+
792+
pub struct sched_param {
793+
pub sched_priority: ::c_int,
794+
pub sched_ss_low_priority: ::c_int,
795+
pub sched_ss_repl_period: ::timespec,
796+
pub sched_ss_init_budget: ::timespec,
797+
pub sched_ss_max_repl: ::c_int,
798+
}
799+
800+
pub struct posix_spawn_file_actions_t {
801+
__allocated: ::c_int,
802+
__used: ::c_int,
803+
__actions: *mut ::c_int,
804+
__pad: [::c_int; 16],
805+
}
806+
807+
pub struct posix_spawnattr_t {
808+
__flags: ::c_short,
809+
__pgrp: ::pid_t,
810+
__sd: ::sigset_t,
811+
__ss: ::sigset_t,
812+
__prio: ::c_int,
813+
__policy: ::c_int,
814+
__pad: [::c_int; 16],
815+
}
791816
}
792817

793818
// Declare dirent outside of s! so that it doesn't implement Copy, Eq, Hash,

0 commit comments

Comments
 (0)