summaryrefslogtreecommitdiff
path: root/lib/fileutil/loopcheck+plan9.myr
blob: 64bc79f85fd6715e9957d061b7a52a6ffab89d4c (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, l
}

const looped = {p
	-> false
}