1 /* Copyright 2002, 2015 Yoshinori Sato <ysato@users.sourceforge.jp> */
3 #include <sys/syscall.h>
6 #define __NR_vfork __NR_fork /* uClinux-2.0 only has fork which is vfork */
18 .type __vfork,@function
29 jmp @er1 /* don't return, just jmp directly */
35 mov.l @(errno@GOTOFF,er5),er2
40 jmp @er1 /* don't return, just jmp directly */
42 mov.l @sp+,er2 /* er2 = return address */
54 mov.l @(errno@GOTOFF,er5),er2
63 .long CLONE_VFORK | CLONE_VM | SIGCHLD
70 weak_alias(__vfork,vfork)
71 libc_hidden_def(vfork)