shithub: mc

Download patch

ref: fa746541e9aaf06de5b4c6c87f38703c128f165b
parent: ab7b0d214f1416e8743a9389d52343077fe7ce0c
author: Ori Bernstein <[email protected]>
date: Mon Sep 22 17:20:14 EDT 2014

Implement clone.

--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -545,6 +545,7 @@
 	const getpid	: ( -> pid)
 	const kill	: (pid:pid, sig:int64 -> int64)
 	const fork	: (-> pid)
+	const clone	: (flags : uint64, stk : void#, ptid : void#, ctid : void#, ptreg : void# -> pid)
 	const wait4	: (pid:pid, loc:int32#, opt : int64, usage:rusage#	-> int64)
 	const waitpid	: (pid:pid, loc:int32#, opt : int64	-> int64)
 	const execv	: (cmd : byte[:], args : byte[:][:] -> int64)