This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: how to force pipes into binary mode?
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'Frank Baumgart'" <godot at uni-paderborn dot de>
- Subject: RE: how to force pipes into binary mode?
- From: Sergey Okhapkin <sos at buggy dot prospect dot com dot ru>
- Date: Sat, 18 Apr 1998 21:39:32 +0400
Frank Baumgart wrote:
> So, how do I force my pipes which have been created with pipe() to work
> in binary mode?
>
int pdes[2];
if (pipe(pdes) == 0) {
setmode(pdes[0], O_BINARY);
setmode(pdes[1], O_BINARY);
}
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".