shithub: mc

Download patch

ref: 4a59ae120acc8cbb8ee2bccbd0bcbd171f8db7b5
parent: c72e1e94349fb533aaa9a35e126b77cb3c0d5610
author: Ori Bernstein <[email protected]>
date: Sat Sep 13 23:08:53 EDT 2014

Add missing lstat syscall.

    Missing implementations are now compile errors.

--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -672,6 +672,7 @@
 const write	= {fd, buf;		-> syscall(Syswrite, a(fd), buf castto(byte#), a(buf.len)) castto(size)}
 const lseek	= {fd, off, whence;	-> syscall(Syslseek, a(fd), a(off), a(whence))}
 const stat	= {path, sb;		-> syscall(Sysstat, cstring(path), a(sb))}
+const lstat	= {path, sb;		-> syscall(Syslstat, cstring(path), a(sb))}
 const fstat	= {fd, sb;		-> syscall(Sysfstat, a(fd), a(sb))}
 const mkdir	= {path, mode;		-> syscall(Sysmkdir, cstring(path), a(mode)) castto(int64)}
 const ioctl	= {fd, req, args