int flock (int fd, int operation);
LOCK_EX - exclusive advisory lock
LOCK_SH - shared advisory lock
LOCK_UN - advisory unlock