diff options
Diffstat (limited to 'lib/fileutil/loopcheck+plan9.myr')
-rw-r--r-- | lib/fileutil/loopcheck+plan9.myr | 21 |
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..9b5584b --- /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 +} + +const looped = {l, p + -> false +} |