2 #include <posix/sched.h>
5 /* Now define the internal interfaces. */
6 extern int __sched_setparam (__pid_t __pid
,
7 const struct sched_param
*__param
);
8 extern int __sched_getparam (__pid_t __pid
, struct sched_param
*__param
);
9 extern int __sched_setscheduler (__pid_t __pid
, int __policy
,
10 const struct sched_param
*__param
);
11 libc_hidden_proto (__sched_setscheduler
)
12 extern int __sched_getscheduler (__pid_t __pid
);
13 extern int __sched_yield (void);
14 libc_hidden_proto (__sched_yield
)
15 extern int __sched_get_priority_max (int __algorithm
);
16 libc_hidden_proto (__sched_get_priority_max
)
17 extern int __sched_get_priority_min (int __algorithm
);
18 libc_hidden_proto (__sched_get_priority_min
)
19 extern int __sched_rr_get_interval (__pid_t __pid
, struct timespec
*__t
);
21 /* These are Linux specific. */
22 extern int __clone (int (*__fn
) (void *__arg
), void *__child_stack
,
23 int __flags
, void *__arg
, ...);
24 libc_hidden_proto (__clone
)
25 extern int __clone2 (int (*__fn
) (void *__arg
), void *__child_stack_base
,
26 size_t __child_stack_size
, int __flags
, void *__arg
, ...);
27 libc_hidden_proto (__clone2
)