www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/15/17:09:33

Message-Id: <m10XsfE-000S8RC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Alain Magloire <alainm AT rcsm DOT ece DOT mcgill DOT ca>, djgpp-workers AT delorie DOT com
Date: Thu, 15 Apr 1999 17:28:01 +0000
MIME-Version: 1.0
Subject: Re: Stack in djgpp
In-reply-to: <199904142017.QAA10920@mccoy2.ECE.McGill.CA>
References: <m10XV4a-000S7QC AT inti DOT gov DOT ar> from "Salvador Eduardo Tropea" at Apr 14, 99 04:16:13 pm
X-mailer: Pegasus Mail for Windows (v2.54)
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Alain Magloire <alainm AT rcsm DOT ece DOT mcgill DOT ca> asked:

> > The author told me he didn't want to do it.
> 
> ?? meaning that it was autogenerated via bison, flex or whatever
> This is common pratice not only for temp files but for security reasons,
> cleanup, .... If it is only for temp files then a portable way
> could be FILE * tempfile(void);

Meaning the author did it without any special purpose, just acustomed. 
Perhaps even a cut & paste of code.
 
> > > You mean some sort of reference count.  This will not work if you
> > > don't have support from the OS.
> > 
> > It will work, but not 100% equal, at least the file will be removed. In Win95 
> > the unlink of an opened file fails so doing what I say the file will be 
> > deleted and the program will work. In DOS there is no solution.
> > 
> 
> I meant, if someone start a comand.com shell and erase the files you'll
> have chaos.  It may work within DJGPP env. since the environment/lib
> will maintain a consistent view for you.  That may not be acceptable
> for certain people/application.

In Win95 the user won't be able to delete the file from the comand.com.

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://welcome.to/SetSoft
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(5411) 4759 0013

- Raw text -


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