chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git]
/
klibc
/
klibc
/
arch
/
mips
/
vfork.S
1
#include <asm/asm.h>
2
#include <asm/regdef.h>
3
#include <asm/unistd.h>
4
5
#define CLONE_VM 0x00000100
6
#define CLONE_VFORK 0x00004000
7
#define SIGCHLD 18
8
9
LEAF(vfork)
10
li a0, CLONE_VFORK | CLONE_VM | SIGCHLD
11
li a1, 0
12
li v0, __NR_clone
13
syscall
14
bnez a3, 1f
15
b 2f
16
1: sw v0, errno
17
li v0, -1
18
2: jr ra
19
END(vfork)