On Linux, how can I make sure that my program is the only one accessing a file?
+5
A:
I am not sure, but I believe you are referring to file locking. See this and this and don't forget this. Your display name is gcc but if you are doing this on windows, see LockFileEx.
nc3b
2010-05-21 18:32:17
Why is this voted down ?
nc3b
2010-05-21 18:34:27
@nc3b dunno, but it seems perfectly reasonable to me.
WhirlWind
2010-05-21 18:39:35