diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-07-07 14:36:06 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-07-12 21:04:13 +0100 |
commit | 61fe96d4853eb743eebbf98bff24f96fe007a6e1 (patch) | |
tree | 715dc54db2eb295aea5d02a5f27d9a739c689baa /libstdc++-v3/testsuite/experimental/filesystem | |
parent | 2f6bbc9a7d9a62423c576e13dc46323fe16ba5aa (diff) | |
download | gcc-61fe96d4853eb743eebbf98bff24f96fe007a6e1.zip gcc-61fe96d4853eb743eebbf98bff24f96fe007a6e1.tar.gz gcc-61fe96d4853eb743eebbf98bff24f96fe007a6e1.tar.bz2 |
libstdc++: Compile basic_file_stdio.cc for LFS
Instead of using fopen64, lseek64, and fstat64 we can just include
<bits/largefile-config.h> which defines _FILE_OFFSET_BITS=64 (and
similar target-specific macros). Then we can just use fopen, lseek and
fstat as normal, and they'll be the LFS versions if supported by the
target.
libstdc++-v3/ChangeLog:
* config/io/basic_file_stdio.cc: Define LFS macros.
(__basic_file<char>::open): Use fopen unconditionally.
(get_file_offset): Use lseek unconditionally.
(__basic_file<char>::seekoff): Likewise.
(__basic_file<char>::showmanyc): Use fstat unconditionally.
Diffstat (limited to 'libstdc++-v3/testsuite/experimental/filesystem')
0 files changed, 0 insertions, 0 deletions