delorie.com/archives/browse.cgi | search |
> > #ifndef O_BINARY > > #define O_BINARY 0 > > #endif > > > > open( name, O_RDWR | O_NOCTTY | O_NONBLOCK | O_BINARY ) > > Wouldn't this just be OR'ing a 0 into the flags? Not on platforms that support O_BINARY, like cygwin and djgpp. Don't forget to #include <fcntl.h>. The #define in the sample is for unix platforms, like Linux, that don't have text/binary flags. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |