[libcxx-commits] [libcxx] [libc++][AIX] Support file offsets larger than 2GB in basic_filebuf on 32-bit (PR #215892)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 13 06:22:04 PDT 2026
================
@@ -1067,6 +1077,8 @@ int basic_filebuf<_CharT, _Traits>::__fseek(FILE* __file, pos_type __offset, int
return _fseeki64(__file, __offset, __whence);
# elif _LIBCPP_LIBC_NEWLIB
return fseek(__file, __offset, __whence);
+# elif defined(_AIX) && !defined(__64BIT__)
+ return fseeko64(__file, __offset, __whence);
----------------
philnik777 wrote:
```suggestion
return ::fseeko64(__file, __offset, __whence);
```
https://github.com/llvm/llvm-project/pull/215892
More information about the libcxx-commits
mailing list