Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <004301be69a1$bac44a70$6400a8c0@orion.olvi.org> From: "Michael V. Nikolaev" To: , "cygwin users" Subject: Re: [bug] Crazy I/O. Date: Mon, 8 Mar 1999 22:23:51 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id PAA08014 I don't sure that it shouldn't be needed. IMHO, it depends on implementation. BTW, it works well on my installation: NT SP4, cygwin-20.1, coolview dll, no binary mounts, CYGWIN=binmode ... . Here is the respective chunk of source: ... dup2(fh1, 0); fseek( stdin, 0L, SEEK_SET ); gets( fh1_IN ); ... This really works. Wishes, Michael -----Original Message----- From: Earnie Boyd To: Michael V. Nikolaev ; cygwin users Date: 8 березня 1999 р. 21:45 Subject: Re: [bug] Crazy I/O. >---"Michael V. Nikolaev" wrote: >> >> >> -----Original Message----- >> From: Earnie Boyd >> To: cygwin users >> Date: 8 березня 1999 р. 18:46 >> Subject: [bug] Crazy I/O. >> >> >> Hi! >> >> You use stdin as a _stream_ when calling gets(). So, try to call >fseek(stdin, 0L, SEEK_SET) after the second dup2(). It should work. >> > >Didn't help. Besides, it shouldn't be needed. >== >- \\||// >-------------------o0O0--Earnie--0O0o------------------- >-- earnie_boyd AT yahoo DOT com -- >-- http://www.freeyellow.com/members5/gw32/index.html -- >----------------------ooo0O--O0ooo---------------------- > >PS: Newbie's, you should visit my page. >_________________________________________________________ >DO YOU YAHOO!? >Get your free @yahoo.com address at http://mail.yahoo.com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com