how to force pipes into binary mode?

Sergey Okhapkin sos@buggy.prospect.com.ru
Sat Apr 18 10:38:00 GMT 1998


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".



More information about the Cygwin mailing list