Subj : Opening a file in exclusive mode To : comp.os.linux From : vanjina_murthy Date : Wed Jul 28 2004 08:15 am I am developing an application using C I am facing a problem , when a file is opened by one process either in read/write mode using open function , at the same time the other process can delete the same file using unlink function. What i want is that if a file is opened by one process either for reading/writing it should not be deleted or even can be opened by other process(i.e open should fail). Anyone knows, how it can achieved. The purpose is that i want to open a file in exclusive mode. Thanks in adavance Murthy .