delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/21/12:57:17

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10108211653.AA15145@clio.rice.edu>
Subject: Re: Fseek on STDIN problem on Win 2K
To: acottrel AT ihug DOT com DOT au (Andrew Cottrell)
Date: Tue, 21 Aug 2001 11:53:15 -0500 (CDT)
Cc: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii), djgpp-workers AT delorie DOT com
In-Reply-To: <001101c12a42$7776d850$0a02a8c0@acceleron> from "Andrew Cottrell" at Aug 21, 2001 11:08:31 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Guess what?  _get_dev_info(0) == 0 on *ANY* redirected input on Windows NT 4.0
unless it is from CON.  So these weird handles appear on NT 4.0 also.

This is also true for a real pipe on NT - it does not need to go to a 
temporary file.  You can't seek on pipes - but it appears these strange
handles support some limitied seeking in a strange way.

For example, I can do dir | test and see the same strange behavior, but
no file is created on disk.

- Raw text -


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