shithub: mc

Download patch

ref: ab947447ae997b056ad53200d0dc87acad13cc5b
parent: 6e35fce1673ee59c3bc1c302263ecb2e92fa5fe3
author: Ori Bernstein <ori@eigenstate.org>
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