new function suggestion fsetmode

Robert Collins
Wed Jan 3 07:10:00 GMT 2001

    I'd like to suggest a function for working on FILE* handles

int fsetmode(FILE* fhandle, int mode)
    if (fhandle)
        return setmode(fhandle->_file, mode);
        return EOF;

I wasn't sure where in cygwin to place it... so I'll leave that up to the core group. I ran across a whole bunch of fopen calls
recently that needed to be forced into text mode.. this is how I've done it.

Maybe bad things happen doing this? I assume not. But as the function needs to look into the FILE * struct's privates, I figure it
should be part of cygwin itself.


Want to unsubscribe from this list?
Check out:

More information about the Cygwin mailing list