summaryrefslogtreecommitdiff
path: root/lib/std/syswrap+plan9.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-08-27 00:53:49 -0700
committerOri Bernstein <ori@eigenstate.org>2016-08-27 00:57:00 -0700
commit6121d28dc28103cb85b22fe404daaa8c441790b4 (patch)
tree21e07f303bd9a48558dfcca1e34e9a99c00fcffd /lib/std/syswrap+plan9.myr
parent4aafe28c24ab5d1439631278a122251c6afc77d4 (diff)
downloadmc-6121d28dc28103cb85b22fe404daaa8c441790b4.tar.gz
nanosleep should use std.time.
Make it so.
Diffstat (limited to 'lib/std/syswrap+plan9.myr')
-rw-r--r--lib/std/syswrap+plan9.myr8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/std/syswrap+plan9.myr b/lib/std/syswrap+plan9.myr
index cb7841c..bbabf22 100644
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -66,7 +66,6 @@ pkg std =
const fork : (-> pid)
const execv : (cmd : byte[:], args : byte[:][:] -> errno)
const execve : (cmd : byte[:], args : byte[:][:], env : byte[:][:] -> errno)
- const nanosleep : (nsecs : uint64 -> errno)
pkglocal const Canunmap : bool = true
pkglocal const getmem : (sz : size -> byte#)
@@ -206,13 +205,6 @@ const execve = {cmd, args, env;
-> lasterr()
}
-const nanosleep = {nsecs
- if sys.sleep((nsecs/1_000_000 : uint32)) < 0
- -> lasterr()
- ;;
- -> 0
-}
-
/* memory stuff */
const getmem = {sz
var endp, oldp