1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef _SCHED_H
- #define _SCHED_H 1
- #include <features.h>
- #include <bits/types.h>
- #define __need_timespec
- #include <time.h>
- #include <bits/sched.h>
- #define sched_priority __sched_priority
- __BEGIN_DECLS
- extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
- __THROW;
- extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
- extern int sched_setscheduler (__pid_t __pid, int __policy,
- __const struct sched_param *__param) __THROW;
- extern int sched_getscheduler (__pid_t __pid) __THROW;
- extern int sched_yield (void) __THROW;
- extern int sched_get_priority_max (int __algorithm) __THROW;
- extern int sched_get_priority_min (int __algorithm) __THROW;
- extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
- #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
- #define CPU_SETSIZE __CPU_SETSIZE
- #define CPU_SET(cpu, cpusetp) __CPU_SET (cpu, cpusetp)
- #define CPU_CLR(cpu, cpusetp) __CPU_CLR (cpu, cpusetp)
- #define CPU_ISSET(cpu, cpusetp) __CPU_ISSET (cpu, cpusetp)
- #define CPU_ZERO(cpusetp) __CPU_ZERO (cpusetp)
- extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
- __const cpu_set_t *__cpuset) __THROW;
- extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
- cpu_set_t *__cpuset) __THROW;
- extern int __clone (int (*__fn) (void *__arg), void *__child_stack,
- int __flags, void *__arg, ...);
- extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base,
- size_t __child_stack_size, int __flags, void *__arg, ...);
- #endif
- __END_DECLS
- #endif
|