head 1.3; access; symbols pkgsrc-2022Q2:1.2.0.22 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.20 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.18 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.16 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.14 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.12 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.10 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.8 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.6 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.2 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.4 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.1.0.8 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.6 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.4 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @// @; 1.3 date 2022.08.13.09.38.09; author tnn; state dead; branches; next 1.2; commitid JoQH5dtVZc4AuHPD; 1.2 date 2019.10.19.13.59.07; author adam; state Exp; branches; next 1.1; commitid X4F9DRN1N29S0uHB; 1.1 date 2018.12.17.16.07.09; author jperkin; state Exp; branches; next ; commitid tdI7TbS8np9Hya4B; desc @@ 1.3 log @libcxx: misc cleanup - try to restore SunOS patches which were left obviously broken (untested) - reduce compiler requirement - delint @ text @$NetBSD: patch-src_filesystem_directory__iterator.cpp,v 1.2 2019/10/19 13:59:07 adam Exp $ Support POSIX file modes. --- src/filesystem/directory_iterator.cpp.orig 2019-02-01 23:52:17.000000000 +0000 +++ src/filesystem/directory_iterator.cpp @@@@ -28,7 +28,21 @@@@ namespace { #if defined(DT_BLK) template static file_type get_file_type(DirEntT* ent, int) { +#ifdef __sun +#define DT_BLK S_IFBLK +#define DT_CHR S_IFCHR +#define DT_DIR S_IFDIR +#define DT_FIFO S_IFIFO +#define DT_LNK S_IFLNK +#define DT_REG S_IFREG +#define DT_SOCK S_IFSOCK +#define DT_UNKNOWN 0 + struct stat s; + stat(ent->d_name, &s); + switch (s.st_mode & 0xF000) { +#else switch (ent->d_type) { +#endif case DT_BLK: return file_type::block; case DT_CHR: @ 1.2 log @libcxx: updated to 9.0.0 Libc++ 9.0.0 Fixes Minor fixes to std::chrono operators. libc++ now correctly handles Objective-C++ ARC qualifiers in std::is_pointer. std::span general updates and fixes. Updates to the std::abs implementation. std::to_chars now adds leading zeros. Ensure std::tuple is trivially constructible. std::aligned_union now works in C++03. Output of nullptr to std::basic_ostream is formatted properly. Features Implemented P0608: sane variant converting constructor. Added ssize function. Added front and back methods in std::span. std::is_unbounded_array and std::is_bounded_array added to type traits. std::atomic now includes many new features and specialization including improved Freestanding support. Added std::midpoint and std::lerp math functions. Added the function std::is_constant_evaluated. Erase-like algorithms now return size type. Added contains method to container types. std::swap is now a constant expression. Updates libc++ dropped support for GCC 4.9; we now support GCC 5.1 and above. libc++ added explicit support for WebAssembly System Interface (WASI). Progress towards full support of rvalues and variadics in C++03 mode. std::move and std::forward now both work in C++03 mode. @ text @d1 1 a1 1 $NetBSD: patch-src_filesystem_directory__iterator.cpp,v 1.1 2018/12/17 16:07:09 jperkin Exp $ @ 1.1 log @libcxx: Fix build on SunOS. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- src/filesystem/directory_iterator.cpp.orig 2018-07-27 03:07:09.000000000 +0000 d7 2 a8 2 @@@@ -27,7 +27,21 @@@@ namespace { #if !defined(_LIBCPP_WIN32API) @