From 7825930078208462655e107677656c45014e91b4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 20 Jul 2016 23:41:10 +0200 Subject: microblaze: use assembly version of clone, fix vfork Signed-off-by: Waldemar Brodkorb --- libc/sysdeps/linux/microblaze/clone.c | 47 ----------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 libc/sysdeps/linux/microblaze/clone.c (limited to 'libc/sysdeps/linux/microblaze/clone.c') diff --git a/libc/sysdeps/linux/microblaze/clone.c b/libc/sysdeps/linux/microblaze/clone.c deleted file mode 100644 index d92100865..000000000 --- a/libc/sysdeps/linux/microblaze/clone.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2004 Atmel Corporation - * - * This file is subject to the terms and conditions of the GNU Lesser General - * Public License. See the file "COPYING.LIB" in the main directory of this - * archive for more details. - */ -#include -#include -#include -#include - -int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg, ...) -{ - int rval = -EINVAL; - if (fn && child_stack) - rval = INTERNAL_SYSCALL(clone, 0, 2, flags, child_stack); - - if (rval == 0) - { - int exitCode = fn(arg); - rval = INTERNAL_SYSCALL(exit, 0, 1, exitCode); - } - - return rval; -} - -#ifdef __NR_clone2 -int -__clone2(int (*fn)(void *arg), void *child_stack, size_t stack_size, - int flags, void *arg, ...) -{ - int rval = -EINVAL; - if (fn && child_stack) - { - rval = INTERNAL_SYSCALL(clone2, 0, 3, flags, child_stack, stack_size); - } - - if (rval == 0) - { - int exitCode = fn(arg); - rval = INTERNAL_SYSCALL(exit, 0, 1, exitCode); - } - - return rval; -} -#endif -- cgit v1.2.3