[cs631apue] How to prevent "creat" open already opened file

Jan Schaumann jschauma at stevens.edu
Wed Sep 16 21:48:17 EDT 2015

Shenghan Gao <sgao9 at stevens.edu> wrote:
> I know I could compare names of two paths. But simply compare the name
> couldn't prevent this if there is a symbolic link.

Correct.  You would need to find another way of testing whether or not
two given filenames reference the exact same file.  Take a look at


More information about the cs631apue mailing list