Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Alain Magloire , djgpp-workers AT delorie DOT com Date: Thu, 15 Apr 1999 17:28:01 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Stack in djgpp In-reply-to: <199904142017.QAA10920@mccoy2.ECE.McGill.CA> References: 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 Precedence: bulk Alain Magloire 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