@@ -2105,6 +2105,14 @@ pub const PRIO_PROCESS: ::c_int = 0;
2105
2105
pub const PRIO_PGRP : :: c_int = 1 ;
2106
2106
pub const PRIO_USER : :: c_int = 2 ;
2107
2107
2108
+ pub const SCHED_OTHER : :: c_int = 0 ;
2109
+ pub const SCHED_FIFO : :: c_int = 1 ;
2110
+ pub const SCHED_RR : :: c_int = 2 ;
2111
+ pub const SCHED_SYS : :: c_int = 3 ;
2112
+ pub const SCHED_IA : :: c_int = 4 ;
2113
+ pub const SCHED_FSS : :: c_int = 5 ;
2114
+ pub const SCHED_FX : :: c_int = 6 ;
2115
+
2108
2116
// As per sys/socket.h, header alignment must be 8 bytes on SPARC
2109
2117
// and 4 bytes everywhere else:
2110
2118
#[ cfg( target_arch = "sparc64" ) ]
@@ -2512,6 +2520,14 @@ extern "C" {
2512
2520
pub fn pthread_kill ( thread : :: pthread_t , sig : :: c_int ) -> :: c_int ;
2513
2521
pub fn sched_get_priority_min ( policy : :: c_int ) -> :: c_int ;
2514
2522
pub fn sched_get_priority_max ( policy : :: c_int ) -> :: c_int ;
2523
+ pub fn sched_getparam ( pid : :: pid_t , param : * mut sched_param ) -> :: c_int ;
2524
+ pub fn sched_setparam ( pid : :: pid_t , param : * const sched_param ) -> :: c_int ;
2525
+ pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
2526
+ pub fn sched_setscheduler (
2527
+ pid : :: pid_t ,
2528
+ policy : :: c_int ,
2529
+ param : * const :: sched_param ,
2530
+ ) -> :: c_int ;
2515
2531
pub fn sem_unlink ( name : * const :: c_char ) -> :: c_int ;
2516
2532
pub fn daemon ( nochdir : :: c_int , noclose : :: c_int ) -> :: c_int ;
2517
2533
#[ cfg_attr(
0 commit comments