8 #include <klibc/extern.h>
10 /* linux/sched.h is unusable; put the declarations we need here... */
12 #define SCHED_NORMAL 0
20 __extern int sched_setscheduler(pid_t, int, const struct sched_param *);
21 __extern int sched_yield(void);
23 /* Raw interfaces to clone(2); only actually usable for non-VM-cloning */
25 __extern pid_t __clone2(int, void *, void *);
26 static __inline__ pid_t __clone(int _f, void *_sp)
28 /* If this is used with _sp != 0 it will have the effect of the sp
29 and rsp growing away from a single point in opposite directions. */
30 return __clone2(_f, _sp, _sp);
33 __extern pid_t __clone(int, void *);