This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: how to force pipes into binary mode?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]