shithub: mc

ref: 0f7fbc2dcbb934a3aa62aa4a69db432b4d20b7c1
dir: /lib/fileutil/loopcheck+plan9.myr/

View raw version
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
}