www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/04/29/03:46:52

Date: Wed, 29 Apr 1998 10:43:13 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andris Pavenis <pavenis AT lanet DOT lv>
cc: djgpp-workers AT delorie DOT com
Subject: Re: mkstemp.c
In-Reply-To: <B0000028861@stargate.astr.lu.lv>
Message-ID: <Pine.SUN.3.91.980429104206.1429D-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019