delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/12/01/16:02:47

Message-Id: <m0zktQM-000S60C@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: djgpp-workers AT delorie DOT com
Date: Tue, 1 Dec 1998 14:24:42 +0000
MIME-Version: 1.0
Subject: bug in stat?
X-mailer: Pegasus Mail for Windows (v2.54)
Reply-To: djgpp-workers AT delorie DOT com

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 -


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