testfilelock(1) testfilelock(1) NNAAMMEE testfilelock - check whether a file is locked SSYYNNOOPPSSIISS tteessttffiilleelloocckk _f_n DDEESSCCRRIIPPTTIIOONN tteessttffiilleelloocckk attempts to obtain a lock on _f_n. _f_n must exist and be writable for tteessttffiilleelloocckk. If tteessttffiilleelloocckk can obtain the lock, it immediately exits 100. Other- wise it immediately exits 0. On temporary errors it exits 111. SSEEEE AALLSSOO flock(2), lockf(3) testfilelock(1)