]>
Commit | Line | Data |
---|---|---|
0516e24d | 1 | #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42 |
4fd2cf9f JM |
2 | # if defined POSIX || defined UNIX98 |
3 | # include "time.h-data" | |
4 | # else | |
5 | allow-header time.h | |
6 | # endif | |
7 | ||
7f42d3dd UD |
8 | type {struct sched_param} |
9 | element {struct sched_param} int sched_priority | |
4fd2cf9f | 10 | # if !defined POSIX && !defined UNIX98 |
da238298 UD |
11 | optional-element {struct sched_param} int sched_ss_low_priority |
12 | optional-element {struct sched_param} {struct timespec} sched_ss_repl_period | |
13 | optional-element {struct sched_param} {struct timespec} sched_ss_init_budget | |
14 | optional-element {struct sched_param} int sched_ss_max_repl | |
4fd2cf9f | 15 | # endif |
7f42d3dd | 16 | |
f095bb72 UD |
17 | # if defined XOPEN2K8 || defined POSIX2008 |
18 | type pid_t | |
19 | type time_t | |
20 | type {struct timespec} | |
21 | # endif | |
22 | ||
7f42d3dd UD |
23 | constant SCHED_FIFO |
24 | constant SCHED_RR | |
4fd2cf9f | 25 | # if !defined POSIX && !defined UNIX98 |
da238298 | 26 | optional-constant SCHED_SPORADIC |
4fd2cf9f | 27 | # endif |
7f42d3dd UD |
28 | constant SCHED_OTHER |
29 | ||
30 | function int sched_get_priority_max (int) | |
31 | function int sched_get_priority_min (int) | |
32 | function int sched_getparam (pid_t, struct sched_param*) | |
33 | function int sched_getscheduler (pid_t) | |
34 | function int sched_rr_get_interval (pid_t, struct timespec*) | |
35 | function int sched_setparam (pid_t, const struct sched_param*) | |
36 | function int sched_setscheduler (pid_t, int, const struct sched_param*) | |
37 | function int sched_yield (void) | |
38 | ||
7f42d3dd UD |
39 | allow sched_* |
40 | allow SCHED_* | |
b395c02d | 41 | allow *_t |
7f42d3dd | 42 | #endif |