[PATCH]: Port of openssh-2.1.0p3 to Cygwin environment
Adam M. Costello
amc at cs.berkeley.edu
Mon Jun 12 06:04:53 EST 2000
> #ifdef __CYGWIN__
> #define FOPEN_READ_TEXT "rt"
> #define FOPEN_READ_BINARY "rb"
> #else
> #define FOPEN_READ_TEXT "r"
> #define FOPEN_READ_BINARY "r"
> #endif
I know nothing about Cygwin, but is it ANSI C comformant? K&R2 does not
mention the option of including "t" in the mode. It says you can either
have a "b" or not have one.
It should be perfectly safe to use "b" for binary files on all
platforms, so I see no need to use the preprocessor.
AMC
More information about the openssh-unix-dev
mailing list