Update.
[platform/upstream/glibc.git] / include / sched.h
1 #ifndef _SCHED_H
2 #include <posix/sched.h>
3
4 /* Now define the internal interfaces.  */
5 extern int __sched_setparam (__pid_t __pid,
6                              __const struct sched_param *__param);
7 extern int __sched_getparam (__pid_t __pid, struct sched_param *__param);
8 extern int __sched_setscheduler (__pid_t __pid, int __policy,
9                                  __const struct sched_param *__param);
10 libc_hidden_proto (__sched_setscheduler)
11 extern int __sched_getscheduler (__pid_t __pid);
12 extern int __sched_yield (void);
13 extern int __sched_get_priority_max (int __algorithm);
14 extern int __sched_get_priority_min (int __algorithm);
15 extern int __sched_rr_get_interval (__pid_t __pid, struct timespec *__t);
16
17 /* These are Linux specific.  */
18 struct user_desc;
19 extern int __clone (int (*__fn) (void *__arg), void *__child_stack,
20                     int __flags, void *__arg, ...);
21 extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base,
22                      size_t __child_stack_size, int __flags, void *__arg,
23                      __pid_t *__child_tid, __pid_t *__parent_tid,
24                      struct user_desc *__tls);
25 #endif