1 /* vi: set sw=4 ts=4: */
4 * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
9 #include <bits/arm_asm.h>
12 #include <bits/errno.h>
13 #include <sys/syscall.h>
28 .type __vfork,%function
31 #if defined(__thumb__) && !defined(__thumb2__)
44 /* Check if vfork even exists. */
49 /* If we don't have vfork, use fork. */
54 /* Syscall worked. Return to child/parent */
76 #if defined(__USE_BX__)
82 /* Check if vfork even exists. */
88 /* If we don't have vfork, use fork. */
92 /* Syscall worked. Return to child/parent */
94 #if defined(__USE_BX__)
104 .size __vfork,.-__vfork
106 weak_alias(__vfork,vfork)
107 libc_hidden_weak(vfork)