This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: upload: diffstat-1.40-1, tar-1.15.1-1
On Wed, Aug 17, 2005 at 05:40:45PM +0000, Eric Blake wrote:
>setmode(fd, O_BINARY or O_TEXT) - returns 0 on success, -1 on failure
>(different from the cygwin web page doc of returning the previous mode),
>and forces mode change. Not a good idea to call it on a tty. Non-POSIX
>extension.
No. setmode is supposed to return the previous mode if a mode was
previously set, 0 if no previous mode was set, and -1 on failure (user
specified an unknown mode).
cgf