From 97cf7f3394780d524038fc083e2c134031b54728 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Fri, 22 Jan 2010 18:59:05 -0800 Subject: 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). --- libc/include/sys/linux-unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/include/sys') diff --git a/libc/include/sys/linux-unistd.h b/libc/include/sys/linux-unistd.h index 12f7704..9a151d2 100644 --- a/libc/include/sys/linux-unistd.h +++ b/libc/include/sys/linux-unistd.h @@ -10,7 +10,7 @@ void _exit_thread (int); pid_t __fork (void); pid_t _waitpid (pid_t, int*, int, struct rusage*); int waitid (int, pid_t, struct siginfo_t*, int,void*); -pid_t __clone (int (*fn)(void*), void *child_stack, int flags, void *arg); +pid_t __sys_clone (int, void*, int*, void*, int*); int execve (const char*, char* const*, char* const*); int setuid (uid_t); uid_t getuid (void); -- cgit v1.1