shithub: mc

Download patch

ref: c547ac04795526d89463ac698d7a43ef6d51e08d
parent: bf98a2d447a80ce0234b1b1d6db4232e2b4bbe4c
author: Ori Bernstein <[email protected]>
date: Tue Sep 23 09:25:10 EDT 2014

Add missing implementation.

    The function was added to sys.myr, so.. oops.

--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -617,6 +617,7 @@
 const getpid	= {;			-> syscall(Sysgetpid) castto(pid)}
 const kill	= {pid, sig;		-> syscall(Syskill, a(pid), a(sig))}
 const fork	= {;			-> syscall(Sysfork) castto(pid)}
+const clone	= {flags, stk, ptid, ctid, ptreg;	-> syscall(Sysclone, a(flags), a(stk), a(ptid), a(ctid), a(ptreg)) castto(pid)}
 const wait4	= {pid, loc, opt, usage;	-> syscall(Syswait4, a(pid), a(loc), a(opt), a(usage))}
 const waitpid	= {pid, loc, opt;
 	var rusage