aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/sched.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-01-22 18:59:05 -0800
committerDavid 'Digit' Turner <digit@google.com>2010-01-25 11:18:30 -0800
commit97cf7f3394780d524038fc083e2c134031b54728 (patch)
tree40b61956bbe4d28babe839c3be40e9f114810e5f /libc/include/sched.h
parent1a2917ca954f575cc9698c99e54bd93087793c8f (diff)
downloadandroid_bionic-97cf7f3394780d524038fc083e2c134031b54728.tar.gz
android_bionic-97cf7f3394780d524038fc083e2c134031b54728.tar.bz2
android_bionic-97cf7f3394780d524038fc083e2c134031b54728.zip
Implement clone() C library function properly.
Only provide an implementation for ARM at the moment, since it requires specific assembly fragments (the standard syscall stubs cannot be used because the child returns in a different stack).
Diffstat (limited to 'libc/include/sched.h')
-rw-r--r--libc/include/sched.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/include/sched.h b/libc/include/sched.h
index 6600bae64..33b9ad684 100644
--- a/libc/include/sched.h
+++ b/libc/include/sched.h
@@ -69,8 +69,9 @@ extern int sched_rr_get_interval(pid_t pid, struct timespec *tp);
#define CLONE_CHILD_SETTID 0x01000000
#define CLONE_STOPPED 0x02000000
-extern int clone(int (*fn)(void*), void *child_stack, int flags, void *arg);
-extern pid_t __clone(int, void *);
+#ifdef __GNU_SOURCE
+extern int clone(int (*fn)(void *), void *child_stack, int flags, void* arg, ...);
+#endif
__END_DECLS