This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH] Libiberty for VMS - mkstemps.c don't mix case


Douglas B Rupp wrote:
DJ Delorie wrote:
Well... just because windows users haven't complained doesn't mean the problem doesn't theoretically exist. I would argue VMS machines are genrally larger with more simultaneous developers than windows and so the problem is more likely to occur.

I would argue that we already check for file conflicts, and don't need to worry about it.

      fd = open (pattern, O_BINARY|O_RDWR|O_CREAT|O_EXCL, 0600);
      if (fd >= 0)
    /* The file does not exist.  */
    return fd;
      if (errno != EEXIST

If VMS is truly case insensitive, wouldn't it detect such conflicts
via the above O_EXCL code?


VMS has file versioning, I think it would detect it only if the version was specified or the directory as created with single versioning.



There's an obvious flaw in that argument. I'll withdraw the patch for now pending more testing.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]