flock (1) - manage locks from shell scripts flock (2) - apply or remove an advisory lock on an open file flockfile (3) - lock FILE for stdio flockfile (3p) - stdio locking functions