blob: 9b5584bc4318d88470d2563581ba23879df250e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}
|