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


> 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?


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