summaryrefslogtreecommitdiff
path: root/lib/sys
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-06-22 21:10:13 -0700
committerOri Bernstein <ori@eigenstate.org>2018-06-22 21:10:13 -0700
commite3843e8fa26afff64728ffe93ef77f0b10a1f109 (patch)
tree5d04efa767190d1897f97b4f00781258c002437b /lib/sys
parent7b5b914cf702375f8f532c2fe43c04d6eacd1fd6 (diff)
downloadmc-e3843e8fa26afff64728ffe93ef77f0b10a1f109.tar.gz
Fix compilation and clean up code.
Use "atomic" was needed in the non-OSX platforms, to fix the build. The repated 'extern' declarations were also deleted, turning the declarations in atomic.myr into extern declarations. Semaphores were also cleaned up on Plan 9.
Diffstat (limited to 'lib/sys')
-rw-r--r--lib/sys/sys+plan9-x64.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sys/sys+plan9-x64.myr b/lib/sys/sys+plan9-x64.myr
index 33541fe..9681bfe 100644
--- a/lib/sys/sys+plan9-x64.myr
+++ b/lib/sys/sys+plan9-x64.myr
@@ -159,9 +159,9 @@ pkg sys =
const exec : (bin : byte[:], args : byte[:][:] -> int64)
const brk_ : (endp : byte# -> int64)
const nsec : (-> uint64)
- const semacquire : (addr : uint32#, block : int -> int)
- const tsemacquire : (addr : uint32#, ms : uint32 -> int)
- const semrelease : (addr : uint32#, count : int32 -> int32)
+ const semacquire : (addr : int32#, block : int -> int)
+ const tsemacquire : (addr : int32#, ms : int32 -> int)
+ const semrelease : (addr : int32#, count : int32 -> int32)
const rendezvous : (tag : void#, val : void# -> void#)