about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-10-14 23:56:31 -0400
committerRich Felker <dalias@aerifal.cx>2011-10-14 23:56:31 -0400
commit2bb75db611f1ce534073be20e5834cc75a7c531c (patch)
tree15349b9cfdd96cfa58c3d294d3cc0bb7564f9aac /src
parent768f39a535e5f5a50c2c17dc072e92ba01665ef0 (diff)
downloadmusl-2bb75db611f1ce534073be20e5834cc75a7c531c.tar.gz
musl-2bb75db611f1ce534073be20e5834cc75a7c531c.tar.xz
musl-2bb75db611f1ce534073be20e5834cc75a7c531c.zip
support vfork on i386
Diffstat (limited to 'src')
-rw-r--r--src/process/i386/vfork.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/process/i386/vfork.s b/src/process/i386/vfork.s
new file mode 100644
index 00000000..fadca207
--- /dev/null
+++ b/src/process/i386/vfork.s
@@ -0,0 +1,14 @@
+.global __vfork
+.weak vfork
+.type __vfork,@function
+.type vfork,@function
+__vfork:
+vfork:
+	pop %edx
+	mov $190,%eax
+	int $128
+	push %edx
+	push %eax
+	call __syscall_ret
+	pop %edx
+	ret