[Box Backup] problems with large files?
Chris Wilson
boxbackup@fluffy.co.uk
Tue, 25 Apr 2006 19:28:34 +0000 (GMT)
Hi Paul,
> BTW, in lib/win32/emu.cpp, _off_t != off_t. For BSD systems, yes, but for
> MinGW, off_t is uint64_t, _off_t is uint (if I'm reading system include
> files correctly).
I'm confused. Looking at my development system, which has cygwin's mingw
installed (3.4.4 cygming special), I have two conflicting definitions of
struct stat:
/usr/include/sys/stat.h:
off_t st_size;
/usr/include/mingw/sys/stat.h:
_off_t st_size;
I was obviously assuming that the latter was correct when I wrote this
code. Now I'm not sure at all. However, I'm not convinced that it makes
any difference. Every definition of off_t and _off_t that I can see uses
signed long.
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |