Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Binary I/O on stdin/stdout? Message-ID: <7565@brl-smoke.ARPA> Date: 27 Mar 88 15:59:51 GMT References: <302@goofy.megatest.UUCP> <225800017@uxe.cso.uiuc.edu> <7550@brl-smoke.ARPA> <4250@hoptoad.uucp> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <4250@hoptoad.uucp> gnu@hoptoad.uucp (John Gilmore) writes: >There seems to be *no way* to "reopen" these streams as binary. That's right; on POSIX-conforming systems it makes no difference but on oddball OSes it could. However, on such OSes it seems unlikely that processes would be nicely piped together anyway, or that it would make sense for the application to tell the system what type of file it was dealing with when the system had actually set it up for the process. There was a proposal for freopen((char*)0,mode,stream) to effect a change of mode on an open stream, but several implementors thought that switching modes in midstream could be difficult to support on some systems.