chiark / gitweb /
[PATCH] restore OWNER/GROUP assignment in rule coming from RESULT
[elogind.git] / klibc / include / sched.h
1 /*
2  * sched.h
3  */
4
5 #ifndef _SCHED_H
6 #define _SCHED_H
7
8 #include <klibc/extern.h>
9
10 /* linux/sched.h is unusable; put the declarations we need here... */
11
12 #define SCHED_NORMAL            0
13 #define SCHED_FIFO              1
14 #define SCHED_RR                2
15
16 struct sched_param {
17   int sched_priority;
18 };
19
20 __extern int sched_setscheduler(pid_t, int, const struct sched_param *);
21 __extern int sched_yield(void);
22
23 /* Raw interfaces to clone(2); only actually usable for non-VM-cloning */
24 #ifdef __ia64__
25 __extern pid_t __clone2(int, void *, void *);
26 static __inline__ pid_t __clone(int _f, void *_sp)
27 {
28   return __clone2(_f, _sp, 0);
29 }  
30 #else
31 __extern pid_t __clone(int, void *);
32 #endif
33
34 #endif /* _SCHED_H */