Re: [Mingw-w64-public] [PATCH 07/10] crt: Provide _lseeki64() function for pre-msvcrt40 builds

2025-06-16 Thread Lasse Collin
On 2025-06-15 Pali Rohár wrote: > +/* Define 64-bit _lseeki64() function via 32-bit _lseek() function */ > +__int64 __cdecl _lseeki64(int fd, __int64 offset, int whence) > +{ > + if (offset > LONG_MAX) > + { > +errno = EOVERFLOW; > +return -1; > + } The offset can make sense when whence

Re: [Mingw-w64-public] [PATCH 07/10] crt: Provide _lseeki64() function for pre-msvcrt40 builds

2025-06-16 Thread Pali Rohár
On Monday 16 June 2025 19:32:40 Lasse Collin wrote: > On 2025-06-15 Pali Rohár wrote: > > +/* Define 64-bit _lseeki64() function via 32-bit _lseek() function */ > > +__int64 __cdecl _lseeki64(int fd, __int64 offset, int whence) > > +{ > > + if (offset > LONG_MAX) > > + { > > +errno = EOVERFLO