Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions libcxx/include/fstream
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ typedef basic_fstream<wchar_t> wfstream;
#else
# include <__config>

// Downstream issue: #375 (Enable fstream independently of filesystem)
# if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION || defined(_NEWLIB_VERSION)
# if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION

# include <__algorithm/max.h>
# include <__assert>
Expand Down
3 changes: 1 addition & 2 deletions libcxx/src/ios.instantiations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_stringstream<char>
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ostringstream<char>;
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_istringstream<char>;

// Downstream issue: #375 (Enable fstream independently of filesystem)
#if _LIBCPP_HAS_FILESYSTEM || defined(_NEWLIB_VERSION)
#if _LIBCPP_HAS_FILESYSTEM
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ifstream<char>;
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ofstream<char>;
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_filebuf<char>;
Expand Down
3 changes: 1 addition & 2 deletions libcxx/src/ostream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

#include <__config>

// Downstream issue: #375 (Enable fstream independently of filesystem)
#if _LIBCPP_HAS_FILESYSTEM || defined(_NEWLIB_VERSION)
#if _LIBCPP_HAS_FILESYSTEM
# include <fstream>
#endif
#include <ostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// class basic_filebuf;

// native_handle_type native_handle() const noexcept;
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include <cassert>
#include <fstream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// XFAIL: (!c++03 && !c++11 && !c++14 && !c++17 && !c++20) && using-built-library-before-llvm-18

// XFAIL: LIBCXX-AIX-FIXME
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include <fstream>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

// XFAIL: LIBCXX-AIX-FIXME

// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include <fstream>
#include <cassert>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// class basic_fstream;

// native_handle_type native_handle() const noexcept;
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include "test_macros.h"
#include "../native_handle_test_helpers.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
// XFAIL: (!c++03 && !c++11 && !c++14 && !c++17 && !c++20) && using-built-library-before-llvm-18

// XFAIL: LIBCXX-AIX-FIXME
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include <fstream>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// class basic_ifstream;

// native_handle_type native_handle() const noexcept;
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include "test_macros.h"
#include "../native_handle_test_helpers.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
// meaning it can represent file sizes up to 2GB (2^31 bytes) only.
//
// UNSUPPORTED: target=armv7-unknown-linux-gnueabihf
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal


#include <fstream>
#include <iostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

// XFAIL: LIBCXX-AIX-FIXME

// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include <fstream>
#include <cassert>
#include <ios>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// class basic_ofstream;

// native_handle_type native_handle() const noexcept;
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include "test_macros.h"
#include "../native_handle_test_helpers.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
// XFAIL: (!c++03 && !c++11 && !c++14 && !c++17 && !c++20) && using-built-library-before-llvm-18

// XFAIL: LIBCXX-AIX-FIXME
// Downstream issue: #375 (Enable fstream independently of filesystem)
// UNSUPPORTED: baremetal

#include <fstream>
#include <cassert>
Expand Down
4 changes: 0 additions & 4 deletions libcxx/test/std/input.output/file.streams/lit.local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
if "no-localization" in config.available_features:
config.unsupported = True

# Downstream issue: #375 (Enable fstream independently of filesystem)
#if "no-filesystem" in config.available_features:
# config.unsupported = True

# Downstream issue: #375 (Enable fstream independently of filesystem)
if 'none' in config.target_triple:
config.available_features.add('baremetal')
13 changes: 0 additions & 13 deletions libcxx/test/support/platform_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
# include <io.h> // _mktemp_s
# include <fcntl.h> // _O_EXCL, ...
# include <sys/stat.h> // _S_IREAD, ...
// Downstream issue: #375 (Enable fstream independently of filesystem)
#elif defined(_NEWLIB_VERSION)
// No need to include extra headers for the get_temp_file_name() implementation
// below: tmpnam() is defined in <stdio.h>
#elif __has_include(<unistd.h>)
# include <unistd.h> // close
#endif
Expand Down Expand Up @@ -74,15 +70,6 @@ inline std::string get_temp_file_name() {
continue;
abort();
}
// Downstream issue: #375 (Enable fstream independently of filesystem)
#elif defined(_NEWLIB_VERSION)
char tmp_name[L_tmpnam];
char *ret = tmpnam(tmp_name);
if (ret == NULL) {
perror("tmpnam");
abort();
}
return std::string(ret);
#elif !__has_include(<unistd.h>)
// Without `unistd.h` we cannot guarantee that the file is unused, however we
// can simply generate a good guess in the temporary folder and create it.
Expand Down
Loading