summaryrefslogtreecommitdiff
path: root/lib/fileutil/loopcheck+plan9.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fileutil/loopcheck+plan9.myr')
-rw-r--r--lib/fileutil/loopcheck+plan9.myr21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/fileutil/loopcheck+plan9.myr b/lib/fileutil/loopcheck+plan9.myr
new file mode 100644
index 0000000..64bc79f
--- /dev/null
+++ b/lib/fileutil/loopcheck+plan9.myr
@@ -0,0 +1,21 @@
+use std
+
+/* plan 9 can't have directory loops, by construction, so this is nops */
+pkg fileutil =
+ type loopcheck = void
+
+ const mkloopcheck : (cwd : byte[:] -> loopcheck)
+ const freeloopcheck : (l : loopcheck -> void)
+ const looped : (l : loopcheck, p : byte[:] -> bool)
+;;
+
+const mkloopcheck = {cwd
+ -> (void : loopcheck)
+}
+
+const freeloopcheck = {l, l
+}
+
+const looped = {p
+ -> false
+}