On January 8, 2003 02:08 pm, Francois Gouget wrote:
I can see how get_osfhandle() can be useful for interoperability in Cygwin. setmode() seems of a more dubious value though (especially since it means they must have implemented the awful CR/LF conversion across their C library API (unless setmode() is nothing but a stub)).
get_osfhandle() seems useful in Wine as well, no? As for semode(), it can work both ways. A simple
#define setmode() do {} while(0)
seems to be a good first order approximation... Do we do the awful CR/LF conversion in msvcrt?