Index: include/__config =================================================================== --- include/__config +++ include/__config @@ -719,4 +719,12 @@ _LIBCPP_HAS_NO_THREADS is defined. #endif +// Systems that use capability-based security (FreeBSD with Capsicum, +// Nuxi CloudABI) may only provide local filesystem access (using *at()). +// Functions like open(), rename(), unlink() and stat() should not be +// used, as they attempt to access the global filesystem namespace. +#ifdef __CloudABI__ +#define _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE +#endif + #endif // _LIBCPP_CONFIG Index: include/cstdio =================================================================== --- include/cstdio +++ include/cstdio @@ -144,14 +144,18 @@ using ::fpos_t; using ::size_t; +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE using ::remove; using ::rename; using ::tmpfile; using ::tmpnam; +#endif using ::fclose; using ::fflush; +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE using ::fopen; using ::freopen; +#endif using ::setbuf; using ::setvbuf; using ::fprintf; Index: include/fstream =================================================================== --- include/fstream +++ include/fstream @@ -206,8 +206,10 @@ // 27.9.1.4 Members: bool is_open() const; +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE basic_filebuf* open(const char* __s, ios_base::openmode __mode); basic_filebuf* open(const string& __s, ios_base::openmode __mode); +#endif basic_filebuf* close(); protected: @@ -463,6 +465,7 @@ return __file_ != 0; } +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE template basic_filebuf<_CharT, _Traits>* basic_filebuf<_CharT, _Traits>::open(const char* __s, ios_base::openmode __mode) @@ -550,6 +553,7 @@ { return open(__s.c_str(), __mode); } +#endif template basic_filebuf<_CharT, _Traits>* @@ -1005,8 +1009,10 @@ typedef typename traits_type::off_type off_type; basic_ifstream(); +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE explicit basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in); explicit basic_ifstream(const string& __s, ios_base::openmode __mode = ios_base::in); +#endif #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES basic_ifstream(basic_ifstream&& __rhs); #endif @@ -1018,8 +1024,10 @@ basic_filebuf* rdbuf() const; bool is_open() const; +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE void open(const char* __s, ios_base::openmode __mode = ios_base::in); void open(const string& __s, ios_base::openmode __mode = ios_base::in); +#endif void close(); private: @@ -1033,6 +1041,7 @@ { } +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE template inline _LIBCPP_INLINE_VISIBILITY basic_ifstream<_CharT, _Traits>::basic_ifstream(const char* __s, ios_base::openmode __mode) @@ -1050,6 +1059,7 @@ if (__sb_.open(__s, __mode | ios_base::in) == 0) this->setstate(ios_base::failbit); } +#endif #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES @@ -1107,6 +1117,7 @@ return __sb_.is_open(); } +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE template void basic_ifstream<_CharT, _Traits>::open(const char* __s, ios_base::openmode __mode) @@ -1126,6 +1137,7 @@ else this->setstate(ios_base::failbit); } +#endif template inline _LIBCPP_INLINE_VISIBILITY @@ -1163,8 +1175,10 @@ basic_filebuf* rdbuf() const; bool is_open() const; +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE void open(const char* __s, ios_base::openmode __mode = ios_base::out); void open(const string& __s, ios_base::openmode __mode = ios_base::out); +#endif void close(); private: @@ -1178,6 +1192,7 @@ { } +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE template inline _LIBCPP_INLINE_VISIBILITY basic_ofstream<_CharT, _Traits>::basic_ofstream(const char* __s, ios_base::openmode __mode) @@ -1195,6 +1210,7 @@ if (__sb_.open(__s, __mode | ios_base::out) == 0) this->setstate(ios_base::failbit); } +#endif #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES @@ -1252,6 +1268,7 @@ return __sb_.is_open(); } +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE template void basic_ofstream<_CharT, _Traits>::open(const char* __s, ios_base::openmode __mode) @@ -1271,6 +1288,7 @@ else this->setstate(ios_base::failbit); } +#endif template inline _LIBCPP_INLINE_VISIBILITY @@ -1295,8 +1313,10 @@ typedef typename traits_type::off_type off_type; basic_fstream(); +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE explicit basic_fstream(const char* __s, ios_base::openmode __mode = ios_base::in | ios_base::out); explicit basic_fstream(const string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out); +#endif #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES basic_fstream(basic_fstream&& __rhs); #endif @@ -1308,8 +1328,10 @@ basic_filebuf* rdbuf() const; bool is_open() const; +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE void open(const char* __s, ios_base::openmode __mode = ios_base::in | ios_base::out); void open(const string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out); +#endif void close(); private: @@ -1323,6 +1345,7 @@ { } +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE template inline _LIBCPP_INLINE_VISIBILITY basic_fstream<_CharT, _Traits>::basic_fstream(const char* __s, ios_base::openmode __mode) @@ -1340,6 +1363,7 @@ if (__sb_.open(__s, __mode) == 0) this->setstate(ios_base::failbit); } +#endif #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES @@ -1397,6 +1421,7 @@ return __sb_.is_open(); } +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE template void basic_fstream<_CharT, _Traits>::open(const char* __s, ios_base::openmode __mode) @@ -1416,6 +1441,7 @@ else this->setstate(ios_base::failbit); } +#endif template inline _LIBCPP_INLINE_VISIBILITY Index: test/std/input.output/file.streams/c.files/cstdio.pass.cpp =================================================================== --- test/std/input.output/file.streams/c.files/cstdio.pass.cpp +++ test/std/input.output/file.streams/c.files/cstdio.pass.cpp @@ -88,14 +88,18 @@ std::size_t s = 0; char* cp = 0; std::va_list va; +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); +#endif static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); +#endif static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); Index: test/std/input.output/file.streams/fstreams/filebuf.assign/member_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.assign/member_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.assign/member_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/filebuf.assign/move_assign.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.assign/move_assign.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.assign/move_assign.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/filebuf.assign/nonmember_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.assign/nonmember_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.assign/nonmember_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/filebuf.cons/move.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.cons/move.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.cons/move.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/filebuf.members/open_pointer.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.members/open_pointer.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.members/open_pointer.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // basic_filebuf* open(const char* s, ios_base::openmode mode); Index: test/std/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // int_type overflow(int_type c = traits::eof()); Index: test/std/input.output/file.streams/fstreams/filebuf.virtuals/pbackfail.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.virtuals/pbackfail.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.virtuals/pbackfail.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // int_type pbackfail(int_type c = traits::eof()); Index: test/std/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // pos_type seekoff(off_type off, ios_base::seekdir way, Index: test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp +++ test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // int_type underflow(); Index: test/std/input.output/file.streams/fstreams/fstream.assign/member_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.assign/member_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.assign/member_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.assign/move_assign.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.assign/move_assign.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.assign/move_assign.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.assign/nonmember_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.assign/nonmember_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.assign/nonmember_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.cons/string.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.cons/string.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.cons/string.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.members/close.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.members/close.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.members/close.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.members/open_pointer.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.members/open_pointer.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.members/open_pointer.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/fstream.members/open_string.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/fstream.members/open_string.pass.cpp +++ test/std/input.output/file.streams/fstreams/fstream.members/open_string.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.assign/member_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.assign/member_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.assign/member_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.assign/move_assign.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.assign/move_assign.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.assign/move_assign.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.assign/nonmember_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.assign/nonmember_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.assign/nonmember_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.cons/pointer.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.cons/pointer.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.cons/pointer.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.members/close.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.members/close.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.members/close.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.members/open_pointer.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.members/open_pointer.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.members/open_pointer.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.members/open_string.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.members/open_string.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.members/open_string.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ifstream.members/rdbuf.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ifstream.members/rdbuf.pass.cpp +++ test/std/input.output/file.streams/fstreams/ifstream.members/rdbuf.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.assign/member_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.assign/member_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.assign/member_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.assign/move_assign.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.assign/move_assign.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.assign/move_assign.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.assign/nonmember_swap.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.assign/nonmember_swap.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.assign/nonmember_swap.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.cons/move.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.cons/move.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.cons/move.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.cons/pointer.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.cons/pointer.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.cons/pointer.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.cons/string.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.cons/string.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.cons/string.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.members/close.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.members/close.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.members/close.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.members/open_pointer.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.members/open_pointer.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.members/open_pointer.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.members/open_string.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.members/open_string.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.members/open_string.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/input.output/file.streams/fstreams/ofstream.members/rdbuf.pass.cpp =================================================================== --- test/std/input.output/file.streams/fstreams/ofstream.members/rdbuf.pass.cpp +++ test/std/input.output/file.streams/fstreams/ofstream.members/rdbuf.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // template > Index: test/std/localization/locales/locale.convenience/conversions/conversions.buffer/overflow.pass.cpp =================================================================== --- test/std/localization/locales/locale.convenience/conversions/conversions.buffer/overflow.pass.cpp +++ test/std/localization/locales/locale.convenience/conversions/conversions.buffer/overflow.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // wbuffer_convert Index: test/std/localization/locales/locale.convenience/conversions/conversions.buffer/pbackfail.pass.cpp =================================================================== --- test/std/localization/locales/locale.convenience/conversions/conversions.buffer/pbackfail.pass.cpp +++ test/std/localization/locales/locale.convenience/conversions/conversions.buffer/pbackfail.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // wbuffer_convert Index: test/std/localization/locales/locale.convenience/conversions/conversions.buffer/seekoff.pass.cpp =================================================================== --- test/std/localization/locales/locale.convenience/conversions/conversions.buffer/seekoff.pass.cpp +++ test/std/localization/locales/locale.convenience/conversions/conversions.buffer/seekoff.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // wbuffer_convert Index: test/std/localization/locales/locale.convenience/conversions/conversions.buffer/test.pass.cpp =================================================================== --- test/std/localization/locales/locale.convenience/conversions/conversions.buffer/test.pass.cpp +++ test/std/localization/locales/locale.convenience/conversions/conversions.buffer/test.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // wbuffer_convert Index: test/std/localization/locales/locale.convenience/conversions/conversions.buffer/underflow.pass.cpp =================================================================== --- test/std/localization/locales/locale.convenience/conversions/conversions.buffer/underflow.pass.cpp +++ test/std/localization/locales/locale.convenience/conversions/conversions.buffer/underflow.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-global-filesystem-namespace + // // wbuffer_convert Index: test/support/platform_support.h =================================================================== --- test/support/platform_support.h +++ test/support/platform_support.h @@ -65,6 +65,7 @@ } #endif +#ifndef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE inline std::string get_temp_file_name() @@ -90,5 +91,6 @@ return Name; #endif } +#endif // _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE #endif // PLATFORM_SUPPORT_H