[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


================
@@ -779,6 +780,15 @@ const wchar_t* basic_filebuf<_CharT, _Traits>::__make_mdwstring(ios_base::openmo
 }
 #    endif
 
+template <class _CharT, class _Traits>
+FILE* basic_filebuf<_CharT, _Traits>::__fopen(const char* __name, const char* __mode) {
+#    if defined(_AIX) && !defined(__64BIT__)
+  return fopen64(__name, __mode);
----------------
philnik777 wrote:

Why is this required? `std::fopen` doesn't have anything directly to do with the file size, does it?

https://github.com/llvm/llvm-project/pull/215892


More information about the libcxx-commits mailing list