Mail Archives: djgpp-workers/1999/04/15/17:09:33
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 -