delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/06/06:33:35

From: Peter Gerwinski <peter AT gerwinski DOT de>
Message-Id: <199804060930.LAA00226@esmeralda.gerwinski.de>
Subject: Re: I/O problems
In-Reply-To: <Pine.SUN.3.91.980406091020.8171G-100000@is> from Eli Zaretskii at "Apr 6, 98 09:10:49 am"
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Mon, 6 Apr 1998 11:30:38 +0200 (MEST)
Cc: djgpp AT delorie DOT com
MIME-Version: 1.0

According to Eli Zaretskii:
> 
> I think a better solution is to force GPC to call `mktemp' each time
> it needs a file name, as opposed to calling `mktemp' once and then
> appending extensions to what it returns.  GCC can be configured to do
> so, and I'd guess GPC can as well.

Of course, but this wouldn't help either because it would only
make the different temporary files created by *one* instance of
`gpc' unique.  Since `gpc' never creates a file named after the
return value of `mktemp()' (but always appends some suffix),
each new instance of `gpc' will again start with "ccaaaaaa".

    Peter
-- 
    Peter Gerwinski, Essen, Germany, free physicist and programmer
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997
PGP key fingerprint:  AC 6C 94 45 BE 28 A4 96  0E CC E9 12 47 25 82 75
                Fight the SPAM! - http://maps.vix.com/

- Raw text -


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