$manlookup

flock

The Linux manual documents flock in 2 places. Pick the section you want.