Re: [hatari-devel] Using ftello/fseeko instead of ftell/fseek for large file support

[ Thread Index | Date Index | More Archives ]

Le 23/08/2017 à 18:17, Thorsten Otto a écrit :
On Mittwoch, 23. August 2017 17:57:18 CEST Christian Zietz wrote:

Well, "braindamaged win32" is a supported platform for Hatari,

Yes, but the braindamage there is that you have to put a lot  of effort into
getting it right there, even on win64, because long is only 32bit.

But that's only true *if* you use fseeko and ftello. fseek and ftell
will always have to use signed long int to be compliant to the C

That's true for the stream based versions only. Other functions like lseek()
already use off_t, and off_t will be changed to a 64bit type in those cases.

lseek requires POSIX.1-2001, which is the same requirement for fseeko/ftello, so there's no chance that lseek would work and fseeko/ftello would have a different / unexpected / non working behaviour (unless the underlying OS library is really broken)


Mail converted by MHonArc 2.6.19+