This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Steve Kargl wrote:
Looks like inquire has a bug.
As you know, the unix philosophy is that everything is a file. symlinks (and directories and devices and ...) may by special files, but nonetheless they are files.
Well, we can agree to disagree then.
To me a symlink is an alias (another name) for a file.
The file either exists or it doesn't. The fact that the existence of the symlink leads to a failure in OPEN(..., STATUS='NEW',...) is just a consequence of us using open(..., O_CREAT | O_EXCL, ...).
The documentation of open is quite explicit: links are not followed when deciding on O_EXCL.
I think we're better off following the crowd here (although I've only tested xlf (IBM) and ifort (Intel)).
-- Janne Blomqvist
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |