From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10108201715.AA14974@clio.rice.edu> Subject: Re: Fseek on STDIN problem on Win 2K To: eliz AT is DOT elta DOT co DOT il Date: Mon, 20 Aug 2001 12:15:43 -0500 (CDT) Cc: acottrel AT ihug DOT com DOT au, djgpp-workers AT delorie DOT com In-Reply-To: <9003-Mon20Aug2001190227+0300-eliz@is.elta.co.il> from "Eli Zaretskii" at Aug 20, 2001 07:02:27 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > I understood that that other LFN usage was also commented out. Something doing LFN was still active or lfn=n would not make a difference. I would hate to think the open of the environment file would change a different handle. > 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.