summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'libstd')
-rw-r--r--libstd/bld.sub1
-rw-r--r--libstd/errno+plan9.myr6
-rw-r--r--libstd/ifreq+plan9.myr2
-rw-r--r--libstd/wait+plan9.myr2
4 files changed, 11 insertions, 0 deletions
diff --git a/libstd/bld.sub b/libstd/bld.sub
index 28b9409..3f01740 100644
--- a/libstd/bld.sub
+++ b/libstd/bld.sub
@@ -13,6 +13,7 @@ lib sys =
ifreq+freebsd.myr
ifreq+linux.myr
ifreq+osx.myr
+ ifreq+plan9.myr
ifreq.myr # dummy file: plan9 doesn't have ifreq
util+plan9-x64.s
util+posixy-x64.s
diff --git a/libstd/errno+plan9.myr b/libstd/errno+plan9.myr
new file mode 100644
index 0000000..c911349
--- /dev/null
+++ b/libstd/errno+plan9.myr
@@ -0,0 +1,6 @@
+pkg std =
+ type errno = int
+ const Erange : errno = 1
+ const Emisc : errno = 2
+ const Eexist : errno = 3
+;;
diff --git a/libstd/ifreq+plan9.myr b/libstd/ifreq+plan9.myr
index e69de29..ef73843 100644
--- a/libstd/ifreq+plan9.myr
+++ b/libstd/ifreq+plan9.myr
@@ -0,0 +1,2 @@
+pkg std =
+;;
diff --git a/libstd/wait+plan9.myr b/libstd/wait+plan9.myr
index aa42b39..efe1a1c 100644
--- a/libstd/wait+plan9.myr
+++ b/libstd/wait+plan9.myr
@@ -57,6 +57,8 @@ const wait = {pid
htput(statusmap, pid, status)
;;
;;
+ /* impossible */
+ -> `Waiterror
}
const parsestatus = {status -> (waitstatus, pid)