[Mingw-users] What is the right substitute for _fseeki64 / _ftelli64 for xp targets?

Back to archive index

Keith Marshall keith****@users*****
Sat Apr 21 23:49:23 JST 2018


On 20/04/18 13:39, Keith Marshall wrote:
> To make it work, we have to use:–
> 
>   int _fseeki64 (FILE *file, __int64 offset, int whence)
>   {
>     fpos_t p;
>     return ((fgetpos (file, &p) == 0) && (fsetpos (file, &p) == 0))
>       ? ((_lseeki64 (_fileno (file), offset, whence) == -1LL) ? -1 : 0)
>       : -1;
>   }

I opened a feature request ticket:
  https://osdn.net/projects/mingw/ticket/38225

incorporating this, a complementary retrofit for _ftelli64(), and
corresponding replacements for fseeko64() and ftello64().  If anyone
would care to comment, or vote, on the ticket, I'd appreciate it.

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
Url : https://lists.osdn.me/mailman/archives/mingw-users/attachments/20180421/f06c7f14/attachment.pgp 



More information about the MinGW-Users mailing list
Back to archive index