Skip to content

Commit

Permalink
remove sporadic server members from struct sched_param
Browse files Browse the repository at this point in the history
these members are associated with an unsupported option group. with
time_t changing size on 32-bit archs, all interfaces taking struct
sched_param arguments would need redirection and compat shims in order
to be able to continue offering these members, for no benefit. just
convert them to reserved space instead.
  • Loading branch information
richfelker committed Aug 15, 2019
1 parent 29e8737 commit 827aa8f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ extern "C" {

struct sched_param {
int sched_priority;
int sched_ss_low_priority;
struct timespec sched_ss_repl_period;
struct timespec sched_ss_init_budget;
int sched_ss_max_repl;
int __reserved1;
struct {
time_t __reserved1;
long __reserved2;
} __reserved2[2];
int __reserved3;
};

int sched_get_priority_max(int);
Expand Down

0 comments on commit 827aa8f

Please sign in to comment.