testfilelock fn
testfilelock attempts to obtain a lock on fn. fn must
exist and be
writable for testfilelock.
If testfilelock can obtain the lock, it immediately exits
100. Other-
wise it immediately exits 0. On temporary errors it exits
111.
flock(2), lockf(3)
test-
filelock(1)