summaryrefslogtreecommitdiff
path: root/lib/sys
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-23 08:31:57 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-23 08:31:57 -0700
commit61fc99f4d1bb75a6ac88cf5395f37f735589b4ce (patch)
treed184b4dadc534fdeaa053078255af6a7e82c5426 /lib/sys
parent466e33d95d9da9d218952c836d99c75ac2142b05 (diff)
downloadmc-61fc99f4d1bb75a6ac88cf5395f37f735589b4ce.tar.gz
Implement OpenBSD 6.2 futex mutexes.
Diffstat (limited to 'lib/sys')
-rw-r--r--lib/sys/bld.sub1
-rw-r--r--lib/sys/sys+openbsd:6.2-x64.myr4
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/sys/bld.sub b/lib/sys/bld.sub
index 7ffb6c8..abf90f5 100644
--- a/lib/sys/bld.sub
+++ b/lib/sys/bld.sub
@@ -7,6 +7,7 @@ lib sys =
sys+osx-x64.myr
sys+openbsd-x64.myr
sys+openbsd:6.1-x64.myr
+ sys+openbsd:6.2-x64.myr
sys+plan9-x64.myr
syscall+freebsd-x64.s
diff --git a/lib/sys/sys+openbsd:6.2-x64.myr b/lib/sys/sys+openbsd:6.2-x64.myr
index ca0ed6a..4a1f0e5 100644
--- a/lib/sys/sys+openbsd:6.2-x64.myr
+++ b/lib/sys/sys+openbsd:6.2-x64.myr
@@ -597,6 +597,10 @@ pkg sys =
;;
+ const Futexwait : int = 1
+ const Futexwake : int = 2
+ const Futexrequeue : int = 3
+
const Sysexit : scno = 1
const Sysfork : scno = 2
const Sysread : scno = 3