diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-05-08 18:41:45 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:44 +0200 |
commit | fc4fb38b294f7de6619cd899e61737331684592c (patch) | |
tree | 87a24153c3c24ec1359e0c50495a2370d4bf76cc | |
parent | c0a3eaf88aa51f49927fe07ddca025f3bc31f5ac (diff) |
sched.h: update header, needs size_t
While there, guard __clone[2] with _LIBC
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | include/sched.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sched.h b/include/sched.h index e265b84ab..c5752d380 100644 --- a/include/sched.h +++ b/include/sched.h @@ -113,6 +113,14 @@ extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, /* Get the CPU affinity for a task */ extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, cpu_set_t *__cpuset) __THROW; + +# ifdef _LIBC +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 + #endif __END_DECLS |