Synchronized access to a file [Linux]
Hi. I have a question concerning synchronized access to a file. I have a programm in Java, and another one which is a deamon written in C/ C++. Both of them can access a file: the Java programm reads it an updates its contents, and the deamon just udates it. This mean that I need to synchronize the access of both these programmes (I can interfere with the source so changing the code is not an issue). The question is, how to do it properly?
Thanks for any answers.

