Date: Mon, 20 Aug 2001 21:33:01 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: sandmann AT clio DOT rice DOT edu Message-Id: <2593-Mon20Aug2001213300+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: acottrel AT ihug DOT com DOT au, djgpp-workers AT delorie DOT com In-reply-to: <10108201715.AA14974@clio.rice.edu> (sandmann@clio.rice.edu) Subject: Re: Fseek on STDIN problem on Win 2K References: <10108201715 DOT AA14974 AT clio DOT rice DOT edu> 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 Precedence: bulk > From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > Date: Mon, 20 Aug 2001 12:15:43 -0500 (CDT) > > > I'm not sure: if you comment out _is_executable, you don't read the > > file, but you still lseek (because fstat does that elsewhere in its > > code, when it calls __filelength). So the read-before-lseek > > hypothesis should explain why seeking in __filelength works, while > > seeking in _is_executable doesn't. > > Something must have also changed between 2.03 and cvs, since 2.03 > works with lfn=y also. A _lot_ has changed since 2.03: _open now works differently, fstat uses system calls it didn't before, there's symlink support whcih wasn't there in v2.03... (probably forgetting some more) But I'm actually more bothered by your saying that _get_dev_info returns zero for redirected stdin. I thought you tested that several days ago and found preconnected handles to be in good shape as far as IOCTL calls were concerned, no? If that's not true, we might have problems with isatty which is used _very_ heavily in many applications.