Back to index

glibc  2.9
sched.h
Go to the documentation of this file.
00001 #ifndef _SCHED_H
00002 #include <posix/sched.h>
00003 
00004 /* Now define the internal interfaces.  */
00005 extern int __sched_setparam (__pid_t __pid,
00006                           __const struct sched_param *__param);
00007 extern int __sched_getparam (__pid_t __pid, struct sched_param *__param);
00008 extern int __sched_setscheduler (__pid_t __pid, int __policy,
00009                              __const struct sched_param *__param);
00010 libc_hidden_proto (__sched_setscheduler)
00011 extern int __sched_getscheduler (__pid_t __pid);
00012 extern int __sched_yield (void);
00013 libc_hidden_proto (__sched_yield)
00014 extern int __sched_get_priority_max (int __algorithm);
00015 extern int __sched_get_priority_min (int __algorithm);
00016 extern int __sched_rr_get_interval (__pid_t __pid, struct timespec *__t);
00017 
00018 /* These are Linux specific.  */
00019 extern int __clone (int (*__fn) (void *__arg), void *__child_stack,
00020                   int __flags, void *__arg, ...);
00021 extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base,
00022                    size_t __child_stack_size, int __flags, void *__arg, ...);
00023 #endif