flock

flock -- Portable advisory file locking

Description

bool flock ( int fp, int operation [, int wouldblock])

flock( ) operates on fp which must be an open file pointer . operation is one of the following values :



flock( ) returns TRUE on success and FALSE on error (e.g . when a lock could not be acquired ) .

הערה :

אזהרה