stat file -- cygwin vs. Windows size?
Fri Jun 24 18:31:00 GMT 2005
Herb Martin wrote:
> Is there a standard Cygwin 'idiom' or function for
> dealing with this mismatch, or should I just re-invent
> the wheel.
Sure. Don't use text mode. Open the file in binary mode (O_BINARY with
open(), "b" with fopen()), or call setmode(fd, O_BINARY) once open, or
link against binmode.o. Or just don't use text mode mounts.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin