shithub: mc

Download patch

ref: 2190e16c308469dec435fe3c9bd3418541dfd8a7
parent: 2f39b00d65470909bee4e94ac58fe2a2be5a7050
author: Ori Bernstein <[email protected]>
date: Mon Jan 27 07:43:44 EST 2014

Damn, I already had a seek function.

--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -563,7 +563,7 @@
 const stat	= {path, sb;		-> syscall(Sysstat, cstring(path), sb)}
 const fstat	= {fd, sb;		-> syscall(Sysfstat, fd, sb)}
 const mkdir	= {path, mode;		-> syscall(Sysmkdir, cstring(path), mode) castto(int64)}
-const seek	= {fd, of, whence	-> syscall(Syslseek, fd, off, whence) castto(off)}
+const seek	= {fd, of, whence;	-> syscall(Syslseek, fd, off, whence) castto(off)}
 
 /* networking */
 const socket	= {dom, stype, proto;	-> syscall(Syssocket, dom castto(int64), stype, proto) castto(fd)}