From: cgf AT cygnus DOT com (Christopher G. Faylor) Subject: Re: A pipe, a binary pipe... 7 Jan 1999 16:10:36 GMT Message-ID: <772m9s$lis$1@cronkite.cygnus.com> References: <001801be39b8$1caf5190$016464c0 DOT cygnus DOT gnu-win32 AT susato DOT demon DOT co DOT uk> X-Newsreader: trn 4.0-test63 (15 March 1998) In article <001801be39b8$1caf5190$016464c0 DOT cygnus DOT gnu-win32 AT susato DOT demon DOT co DOT uk>, Max Hadley wrote: >Can I tell what the mode of an already-open stream is, or one tell to >switch modes from text to binary? BTW, my $CYGWIN is "noglob noreset_com >noenvcache". Come to that, a nice way of testing whether an open stream >is a pipe would be usefull! Use fstat, just like UNIX. -chris -- cgf AT cygnus DOT com http://www.cygnus.com/