1/* 2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> 3 * 4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. 5 */ 6 7#include <sys/syscall.h> 8 9#ifndef __NR_vfork 10/* No vfork so use fork instead */ 11# define __NR_vfork __NR_fork 12#endif 13 14.text 15.global __vfork 16.hidden __vfork 17.type __vfork,@function 18.type __syscall_error,@function 19 20__vfork: 21 li 0, __NR_vfork 22 sc 23 bnslr+ 24 b __syscall_error 25 26.size __vfork,.-__vfork 27 28weak_alias(__vfork,vfork) 29libc_hidden_def(vfork) 30