delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/18/13:57:32

From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: how to force pipes into binary mode?
18 Apr 1998 13:57:32 -0700 :
Message-ID: <01BD6B12.7A145C60.cygnus.gnu-win32@sos>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'Frank Baumgart'"
<godot AT uni-paderborn DOT de>

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019