summaryrefslogtreecommitdiff
path: root/lib/std/syswrap+plan9.myr
diff options
context:
space:
mode:
authorglenda@drat <glenda@drat>2016-05-26 06:37:47 -0700
committerglenda@drat <glenda@drat>2016-05-26 06:37:47 -0700
commitb1cd018c05d289e45529d5e15b928a1cae177223 (patch)
tree75a1dbb7e7e34699a30bc09ce27b083322aff70d /lib/std/syswrap+plan9.myr
parent26ef45c1f3e27bd57fcae049cd55aabf2738f1e8 (diff)
downloadmc-b1cd018c05d289e45529d5e15b928a1cae177223.tar.gz
Some 9front build fixes.
Diffstat (limited to 'lib/std/syswrap+plan9.myr')
-rw-r--r--lib/std/syswrap+plan9.myr8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/syswrap+plan9.myr b/lib/std/syswrap+plan9.myr
index ac57f9d..1a27bf0 100644
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -122,7 +122,7 @@ const fmtime = {path
if sys.stat(path, buf[:]) < Stringsoff
-> `Fail Emisc
;;
- -> `Ok (getle32(buf[Mtimeoff:Mtimeoff + 8] : ime))
+ -> `Ok (getle32(buf[Mtimeoff:Mtimeoff + 8]) : time)
}
const fsize = {path
@@ -131,7 +131,7 @@ const fsize = {path
if sys.stat(path, buf[:]) < Stringsoff
-> `Fail Emisc
;;
- -> `Ok (getle64(buf[Lengthoff:Lengthoff + 8] : off))
+ -> `Ok (getle64(buf[Lengthoff:Lengthoff + 8]) : off)
}
extern const put : (fmt : byte[:], args : ... -> int64)
@@ -173,7 +173,7 @@ const getsysinfo = {si
const close = {fd; -> (sys.close((fd : sys.fd)) : errno)}
const read = {fd, buf; -> check(sys.pread((fd : sys.fd), buf, -1))}
const write = {fd, buf; -> check(sys.pwrite((fd : sys.fd), buf, -1))}
-const seek = {fd, off, whence; -> check(sys.seek((fd : sys.fd), (off : sys.off), (whence : nt64)))}
+const seek = {fd, off, whence; -> check(sys.seek((fd : sys.fd), (off : sys.off), (whence : int64)))}
const pipe = {fds; -> (sys.pipe((fds : sys.fd[2]#)) : errno)}
const dup2 = {ofd, nfd; -> check(sys.dup((ofd : sys.fd), (nfd : sys.fd)))}
@@ -206,7 +206,7 @@ const execve = {cmd, args, env;
}
const nanosleep = {nsecs
- if (sys.sleep((nsecs/1_000_000) : int32)) < 0
+ if sys.sleep((nsecs/1_000_000 : uint32)) < 0
-> lasterr()
;;
-> 0