Report question

Question: How can I lock a directory in C on a linux machine