musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年02月06日 18:23:11 -0500
committerRich Felker <dalias@aerifal.cx>2012年02月06日 18:23:11 -0500
commit4cf667c9c90cdcf63233467cbed42a2dab5c35a9 (patch)
tree7326518b41e4eb4d9d9056e7406d387114eee419
parentce4d97e3dc0aaec915f500bc1ef955208a5ef4c2 (diff)
downloadmusl-4cf667c9c90cdcf63233467cbed42a2dab5c35a9.tar.gz
x86_64 vfork implementation
untested; should work.
Diffstat
-rw-r--r--src/process/x86_64/vfork.s 12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/process/x86_64/vfork.s b/src/process/x86_64/vfork.s
new file mode 100644
index 00000000..27af46f5
--- /dev/null
+++ b/src/process/x86_64/vfork.s
@@ -0,0 +1,12 @@
+.global __vfork
+.weak vfork
+.type __vfork,@function
+.type vfork,@function
+__vfork:
+vfork:
+ pop %rdx
+ mov 58,ドル%eax
+ syscall
+ push %rdx
+ mov %rax,%rdi
+ jmp __syscall_ret
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月17日 03:38:47 +0000

AltStyle によって変換されたページ (->オリジナル) /