Mail Archives: djgpp-workers/1998/12/01/16:02:47
Hi all:
Last night I tried to add a new feature to the editor.
Currently when you write a portion of text to a device the
editor says "File already exists, overwrite?", that's silly
no? Well I want to change it by: "That isn't a file,
probably a device, go ahead?" or something like that.
So I tried using stat, first from v2.01. It miserably
failed. Then I extracted stat from v2.02 and tried again,
now it passed half of the tests but not all. Example:
/dev/prn -> v2.01 and v2.02: is a device
prn -> v2.02: is a device
/foo/prn -> both says that's a normal file but DOS
understands it as a device.
The questions are:
Is just me? (I mixed stat from v2.02 and the rest of 2.01)
Is that easy to solve? I didn't tried because I know Eli
knows all the guts of stat and I guess he can find the
solution much more quickly and cleanly.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
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: +(541) 759 0013
- Raw text -