c++ - How can I ensure I can read the file and its not locked by another process -
my environment mac os x , program in c++ if process accessing file in such way other processes denied read access file. process b tries open file using c/c++ function fopen "rb" mode.
should expect fopen fail , return null ? or fopen possibly succeed read call fail ?
thanks
read thread, seems mandatory locks (what looking for) platform-specific, , os x has no support them.
Comments
Post a Comment