summaryrefslogtreecommitdiff
path: root/lib/std/syswrap-ss+linux.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/syswrap-ss+linux.myr')
-rw-r--r--lib/std/syswrap-ss+linux.myr7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/syswrap-ss+linux.myr b/lib/std/syswrap-ss+linux.myr
index f6ac9a3..b80f768 100644
--- a/lib/std/syswrap-ss+linux.myr
+++ b/lib/std/syswrap-ss+linux.myr
@@ -1,8 +1,9 @@
use sys
+use "types"
use "errno"
pkg std =
- const nanosleep : (nsecs : uint64 -> errno)
+ const nanosleep : (nsecs : time -> errno)
$noret const exit : (status:int -> void)
pkglocal const bgetcwd : (buf : byte[:] -> errno)
@@ -12,8 +13,8 @@ const nanosleep = {nsecs
var req, rem
var s, ns
- s = nsecs / 1_000_000_000
- ns = nsecs % 1_000_000_000
+ s = (nsecs : uint64) / 1_000_000_000
+ ns = (nsecs : uint64) % 1_000_000_000
req = [.sec = s, .nsec = ns]
-> (sys.nanosleep(&req, &rem) : errno)