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 beej's guide unix ipc

read thread, seems mandatory locks (what looking for) platform-specific, , os x has no support them.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -