ref: db794e2073cc57f0a6f7606c0086b73fe9f02fda
parent: dab3c8332f7e10f9cb5f22f85025e8e5ee7e9004
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Dec 28 20:39:26 EST 2014
fix forgotten cstring() call in chdir().
--- a/libstd/sys+linux-x64.myr
+++ b/libstd/sys+linux-x64.myr
@@ -684,7 +684,7 @@
const mkdir = {path, mode; -> syscall(Sysmkdir, cstring(path), a(mode)) castto(int64)} generic ioctl = {fd, req, arg; -> syscall(Sysioctl, a(fd), a(req), a(arg)) castto(int64)} const getdents64 = {fd, buf; -> syscall(Sysgetdents64, a(fd), buf castto(byte#), a(buf.len))}-const chdir = {dir; -> syscall(Syschdir, dir)}+const chdir = {dir; -> syscall(Syschdir, cstring(dir))}/* file stuff */
const pipe = {fds; -> syscall(Syspipe, a(fds))}--- a/libstd/sys+osx-x64.myr
+++ b/libstd/sys+osx-x64.myr
@@ -710,7 +710,7 @@
const mkdir = {path, mode; -> syscall(Sysmkdir, cstring(path), a(mode)) castto(int64)} generic ioctl = {fd, req, arg; -> syscall(Sysioctl, a(fd), a(req), a(arg)) castto(int64)} const getdirentries64 = {fd, buf, basep; -> syscall(Sysgetdirentries64, a(fd), buf castto(byte#), a(buf.len), a(basep))}-const chdir = {dir; -> syscall(Syschdir, dir)}+const chdir = {dir; -> syscall(Syschdir, cstring(dir))}/* fd stuff */
const pipe = {fd; -> __osx_pipe(fd)}--
⑨