Skip to content

Commit 827aa8f

Browse files
committed
remove sporadic server members from struct sched_param
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.
1 parent 29e8737 commit 827aa8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/sched.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ extern "C" {
1818

1919
struct sched_param {
2020
int sched_priority;
21-
int sched_ss_low_priority;
22-
struct timespec sched_ss_repl_period;
23-
struct timespec sched_ss_init_budget;
24-
int sched_ss_max_repl;
21+
int __reserved1;
22+
struct {
23+
time_t __reserved1;
24+
long __reserved2;
25+
} __reserved2[2];
26+
int __reserved3;
2527
};
2628

2729
int sched_get_priority_max(int);

0 commit comments

Comments
 (0)