From: Daniel Garcia Coego <flamealchemist86@gm...> - 2010-02-15 10:04:22
Is there some way to tell the difference between a release when a file
is opened for reading and a release after writes are done on it?
I want to send a file to a server on release from writing and I'm having
trouble with this because I have a sequence of operations like this:
open (to write)
open (to read)
release (of reads)
release (of writes)
I'm thinking of a solution storing the modification time of each open
file and checking it on release to know if I can send the file or not
(if modification time hasn't changed then release is of reads) but it
would be very helpful if there is another mean to know this.
I thought another way using the flags but it seems that not always
writes are done with 0x8002 and reads with 0x8000, sometimes 0x8001
appears to ruin everything...
Get latest updates about Open Source Projects, Conferences and News.