1#ifndef _SCHED_H
2#include <posix/sched.h>
3
4#ifndef _ISOMAC
5/* Now define the internal interfaces. */
6extern int __sched_setparam (__pid_t __pid,
7 const struct sched_param *__param);
8libc_hidden_proto (__sched_setparam)
9extern int __sched_getparam (__pid_t __pid, struct sched_param *__param);
10extern int __sched_setscheduler (__pid_t __pid, int __policy,
11 const struct sched_param *__param);
12libc_hidden_proto (__sched_setscheduler)
13extern int __sched_getscheduler (__pid_t __pid);
14extern int __sched_yield (void);
15libc_hidden_proto (__sched_yield)
16extern int __sched_get_priority_max (int __algorithm);
17libc_hidden_proto (__sched_get_priority_max)
18extern int __sched_get_priority_min (int __algorithm);
19libc_hidden_proto (__sched_get_priority_min)
20extern int __sched_rr_get_interval (__pid_t __pid, struct timespec *__t);
21
22/* These are Linux specific. */
23extern int __clone (int (*__fn) (void *__arg), void *__child_stack,
24 int __flags, void *__arg, ...);
25libc_hidden_proto (__clone)
26extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base,
27 size_t __child_stack_size, int __flags, void *__arg, ...);
28libc_hidden_proto (__clone2)
29/* NB: Can't use "__typeof__ (getcpu)" since getcpu is Linux specific
30 and Hurd doesn't have it. */
31extern int __getcpu (unsigned int *, unsigned int *);
32libc_hidden_proto (__getcpu)
33#endif
34#endif
35