shithub: mc

Download patch

ref: 9d8c86eb077b22081a2abc1a8823907d1972bd88
parent: c860f5307ff18dff3c63d6a80691c4a865101491
parent: 0614f810f7ccf086c7ba86db9d9198b5fb240643
author: Ori Bernstein <[email protected]>
date: Tue May 27 20:04:07 EDT 2014

Merge branch 'master' of git+ssh://mimir.eigenstate.org/git/ori/mc

--- a/libstd/fmt.myr
+++ b/libstd/fmt.myr
@@ -220,7 +220,7 @@
                         | 'c':    (c_val, ap) = vanext(ap)
                                 n += encode(buf[n:], c_val)
                         | _:
-                                die("Unknown format specifier")
+                                die("Unknown format specifier\n")
 			;;
 		else
 			n += encode(buf[n:], c)
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -565,7 +565,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 ioctl	= {fd, req, args	-> syscall(Sysioctl, fd, req, &args) castto(int64)}
+const ioctl	= {fd, req, args;	-> syscall(Sysioctl, fd, req, &args) castto(int64)}
 
 /* networking */
 const socket	= {dom, stype, proto;	-> syscall(Syssocket, dom castto(int64), stype, proto) castto(fd)}
--- a/libstd/sys-osx.myr
+++ b/libstd/sys-osx.myr
@@ -508,6 +508,7 @@
 	const stat	: (path:byte[:], sb:statbuf# -> int64)
 	const fstat	: (fd:fd, sb:statbuf# -> int64)
 	const mkdir	: (path : byte[:], mode : int64	-> int64)
+	const ioctl	: (fd:fd, req : int64, args:... -> int64)
 
 	/* networking */
 	const socket	: (dom : sockfam, stype : socktype, proto : sockproto	-> fd)
@@ -599,6 +600,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 ioctl	= {fd, req, args;	-> syscall(Sysioctl, fd, req, &args) castto(int64)}
 
 /* networking */
 const socket	= {dom, stype, proto;	-> syscall(Syssocket, dom castto(int64), stype, proto) castto(fd) }