upload: diffstat-1.40-1, tar-1.15.1-1

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Wed Aug 17 17:47:00 GMT 2005


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



More information about the Cygwin-apps mailing list