Date: Wed, 29 Apr 1998 10:43:13 +0300 (IDT) From: Eli Zaretskii To: Andris Pavenis cc: djgpp-workers AT delorie DOT com Subject: Re: mkstemp.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 28 Apr 1998, Andris Pavenis wrote: > I think following is more safe. I think we should exclude other error codes > except EEXIST ( I tested that I'm getting this code even if there is > directory or R/O file with conflicting name, so all worked Ok). This is one of the most painful problems. Some network redirectors return weird error codes. Let's do it your way and then wait and see. > Perhaps > I'll combine necessary procedures from 202 in one file (together with some > modifications especially for gcc) and use it as additional module > for building gcc (no more such ugly hacks as I talked before) I suggest to patch the library you are using to link gcc on your machine with the new versions of mkstemp and with _creatnew. Then put the sources of these functions inside the GCC source distribution and tell people in the README to compile them and put them into their libc.a before building GCC, unless they already have v2.02. This is IMHO a better way.