12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #include "sysdep.h"
- #define _SIGNAL_H
- #include <bits/signum.h>
- #define CLONE_VM 0x00000100
- #define CLONE_VFORK 0x00004000
- HIDDEN_ENTRY(__vfork)
- alloc r2=ar.pfs,0,0,2,0
- mov out0=CLONE_VM+CLONE_VFORK+SIGCHLD
- mov out1=0
- ;;
- DO_CALL_VIA_BREAK (SYS_ify (clone))
- cmp.eq p6,p0=-1,r10
- (p6) br.cond.spnt.few __syscall_error
- ret
- PSEUDO_END(__vfork)
- weak_alias(__vfork,vfork)
- libc_hidden_def(vfork)
|