Benjamin A. Beasley
924d84acf0
Cast to uintmax_t *before* multiplying in space calculations
...
This ensures that all cases where the result actually does fit in a
uintmax_t are correctly handled. Before, the multiplication could be
performed in a smaller type, leading to an incorrect result or, worse,
undefined behavior due to signed integer overflow.
This fixes a test failure that was actually observed on an i686 Linux
system.
2021-07-30 17:14:23 -04:00
Steffen Schuemann
d87ac130cf
Squashed commit of the following:
...
commit 2bef80eec1fe16a23e34143b9a5a32b04d612ed2
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 20:11:36 2021 +0200
wip
commit e8c063d7ea66d2bdcbd1535b12dac1ca24afc7b9
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 20:05:04 2021 +0200
wip
commit aafdebf274cafacfd6e1472621b015e48d547412
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 19:50:39 2021 +0200
wip
commit b36f13655a09c3bac62afc6079ba010eb934493d
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 18:05:35 2021 +0200
wip
commit eee191875c0d6816022342d341eaa43f5f83c4ff
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 17:32:35 2021 +0200
more wip
commit 0ff949ab5f21055298aee8d7fcdda3a10f61a69c
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 17:12:18 2021 +0200
wip
commit ca68861cb4c4e14079bb3ab2e0c9725b0a3aece8
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 16:31:32 2021 +0200
wip
commit e188a3d2cca4f4bb84c3fa8f49e5de34ec731713
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 16:21:51 2021 +0200
wip
commit b8383ac22cdb5bab3a4f527a1c46dafd009b2f11
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 16:15:42 2021 +0200
Workflow wip...
commit 162416fe2cf2922382c7c7fd34c648b4782d48be
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 15:57:31 2021 +0200
Workflow wip...
commit 891be4cdd72b23ec86bdc0935d9201841c2c07bc
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 15:52:24 2021 +0200
Workflow wip...
commit 5c2ee653f41a38858cfaf602df639276ae1c7fbb
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 15:44:59 2021 +0200
Workflow wip...
commit bca8df081885aed67ce0952f20aa2e4a96072a04
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 15:40:23 2021 +0200
Workflow wip...
commit d94d8de098d954bffae65aec789d72c5c0b1301b
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sun Jul 4 15:34:16 2021 +0200
Workflow wip...
commit 19f301992b733e699054050fdf552c982fea300c
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sat Jul 3 21:54:11 2021 +0200
Workflow wip...
commit 495457726fc844d014e49b56acd6367160f4322b
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sat Jul 3 18:38:04 2021 +0200
workflow wip
commit fde42cd4a5f865807703ff6814d9d0e8dfbde030
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sat Jul 3 18:34:47 2021 +0200
Testing more generic workflow.
commit ead40cc153814e23ef3ddcb654ed8c57c10f54a6
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Sat Jul 3 16:51:25 2021 +0200
Work on using GitHub workflows.
2021-07-04 20:24:13 +02:00
Steffen Schuemann
1d3d5f5d7d
Version bump and updated readme.
2021-06-14 22:16:54 +02:00
Steffen Schümann
b3d9a50bb5
Removed unwanted generation of temp strings.
2021-06-14 21:34:37 +02:00
Steffen Schümann
cd68567543
Bump wip version
2021-06-14 21:31:44 +02:00
Steffen Schümann
15e814e820
refs #125 , fix broken windows long path test and broken create_directories with prefixed long paths
2021-06-10 01:21:07 +02:00
Steffen Schuemann
4e21ab3057
Version bump and updated readme.
2021-05-24 10:09:27 +02:00
Steffen Schuemann
19d0c63c29
refs #116 , systems without d_type can now use GHC_NO_DIRENT_D_TYPE to compile, experimental QNX support
2021-05-24 09:30:42 +02:00
Steffen Schuemann
231b64fec0
Merge branch 'feature-122-recursive-iterator-follows-dead-symlinks'
...
# Conflicts:
# README.md
2021-05-23 16:21:08 +02:00
Steffen Schümann
70cf2f03ba
Merge branch 'feature-124-mapped-volumes-wrongly-handled-as-symlinks'
2021-05-23 16:06:13 +02:00
Steffen Schümann
9c6ff202e7
refs #121 , fix for mingw compile issue
2021-05-23 11:29:04 +02:00
Steffen Schümann
a697b05dd7
refs #121 , allow fs::remove on read-only entries in windows too
2021-05-23 10:53:58 +02:00
Steffen Schümann
cf4e05d42f
refs #124 , fix for mingw compile issue
2021-05-23 10:05:47 +02:00
Steffen Schümann
e51e6ee46b
refs #124 , mapped folder/volumes where wrongly handled as symlinks, failing fs::canonical
2021-05-23 08:46:50 +02:00
Steffen Schuemann
873a55addf
refs #122 , fix for dead symlink iteration error
2021-05-22 07:14:47 +02:00
Steffen Schuemann
37442cc5ea
refs #119 , add additional tests and missing character literal types support
2021-05-02 01:46:08 +02:00
Владислав Щапов
6ab0cb2844
- Detect libstdc++ from gcc-5 and never.
2021-04-18 20:41:50 +05:00
Steffen Schuemann
6dc4ece24b
refs #114 , use Availability.h in supporting headers
2021-04-03 12:24:48 +02:00
Steffen Schuemann
76c3966df4
refs #113 , switched to tag based comments and test names instead of C++17 paragraph numbers to become more standard version agnostic
2021-03-27 09:22:04 +01:00
Steffen Schuemann
2a8b380f8d
Release v1.5.4
2021-03-21 19:13:43 +01:00
Steffen Schuemann
1037c02950
Removing indirect refresh calls on directory_entry on posix
...
removing redundant path instance from windows directory_iterator implementation
2021-03-20 20:41:01 +01:00
Steffen Schümann
b82066f27e
refs #110 , first cygwin support
2021-03-20 18:01:02 +01:00
gulrak
d768b60d49
Merge pull request #109 from albert-github/feature/bug_filesystem_spell
...
Correcting spelling errors
2021-03-19 19:55:55 +01:00
albert-github
828062889a
Correcting spelling errors
...
Correcting spelling errors
2021-03-19 12:20:32 +01:00
Philipp Bucher
67e708cc4f
using static_cast instead of old style cast
...
This is a warning in GCC when using -Wold-style-cast
2021-03-18 14:57:10 +01:00
Steffen Schuemann
8d45dc4d41
refs #107 , fix handling of inaccessible symlink target errors
2021-03-14 10:45:10 +01:00
Steffen Schuemann
b15977a05a
refs #105 , wip version bump and updated readme.
2021-03-06 08:26:41 +01:00
Steffen Schuemann
f86be09be3
Release v1.5.2
2021-02-27 20:49:48 +01:00
Steffen Schuemann
f37cdd5af5
Merge branch 'feature-104-posix-iterator-performance'
2021-02-27 17:51:53 +01:00
Steffen Schuemann
264445eaee
refs #104 , fixing last half-commit
2021-02-22 23:40:39 +01:00
Steffen Schuemann
5c02ca36b4
refs #104 , fixed noexcept inconsistency
2021-02-22 23:31:56 +01:00
Steffen Schuemann
8a19af1f63
refs #104 , performance related refactoring
2021-02-22 23:13:44 +01:00
Владислав Щапов
f98478c33b
Enabled wchar_t path Source on UNIX
2021-02-21 21:57:27 +05:00
Владислав Щапов
b78b0239a3
Improved string_view support
2021-02-17 18:41:26 +05:00
Владислав Щапов
011e039c4b
Removed duplicate encoding conversion
2021-02-15 22:15:26 +05:00
gulrak
77a8df068d
Merge pull request #96 from phprus/custom-api-spec
...
Allow customization of export attributes
2021-02-11 08:19:16 +01:00
Steffen Schuemann
88f9c3613a
wip version bump
2021-02-11 08:15:17 +01:00
Владислав Щапов
2dbb71acae
Allow customization export attributes.
2021-02-10 20:14:18 +05:00
Steffen Schuemann
3d3c02ce35
Version bump and updated readme.
2021-02-07 14:07:06 +01:00
Steffen Schuemann
9970d3354f
Fixed unused parameter isse.
2021-02-07 13:20:28 +01:00
Steffen Schuemann
967c563d07
Merge remote-tracking branch 'origin/feature-90-native-format-backend'
2021-02-07 11:57:55 +01:00
Steffen Schümann
fdf5bb0179
refs #90 , made wchar_t/wstring default on Windows
2021-02-07 10:02:12 +01:00
Steffen Schümann
9e3d42fd72
refs #90 , avoid unneeded conversions when using wchar_t backend
2021-02-06 14:32:14 +01:00
Steffen Schuemann
75c647f327
refs #90 , small optimizations
2021-02-06 12:49:16 +01:00
Steffen Schümann
ff271edfee
refs #90 , fix some mingw compile issues
2021-02-06 09:10:55 +01:00
Steffen Schümann
6699f6a3da
refs #90 , initial support of wstring as backend storage of path
2021-02-01 00:34:09 +01:00
Steffen Schuemann
3eddea2ea8
refs #90 , switch from internal_separator to preferred_separator use after refactoring
2021-01-31 13:36:50 +01:00
Steffen Schuemann
4944a87e18
refs #90 , additional compile issue fixes
2021-01-31 13:04:14 +01:00
Steffen Schuemann
a7abc2ad4a
refs #90 , fixing stuff broken on POSIX side during backend rework.
2021-01-31 12:03:17 +01:00
Steffen Schümann
c96b0059c3
refs #90 , native path backend - stage two, prefix handling repaired and configurable, all tests working on Windows (wchar_t backend will be stage 3)
2021-01-31 11:39:48 +01:00
Steffen Schümann
8fac7e5254
refs #90 , first stage of backend rework done, tests besides namespaced/prefixed long filenames working with char value_type again
2021-01-24 12:57:58 +01:00
Steffen Schümann
b869b9fc4b
refs #90 , work on switching from generic_format backend to (normalized) native_format backend
2021-01-23 11:19:30 +01:00
Steffen Schuemann
973abff4b9
refs #89 , added operator==() to fs::file_status
2021-01-21 19:01:42 +01:00
Steffen Schuemann
de57485877
refs #88 , updated readme and bumped to wip version
2021-01-21 09:14:57 +01:00
Steffen Schuemann
6bf13c0ce1
refs #88 , fix signed/unsigned issue
2021-01-21 00:23:15 +01:00
Steffen Schuemann
9206877fc8
refs #88 , work on path::parent_path() optimization
2021-01-21 00:06:35 +01:00
Steffen Schuemann
8166dd1546
Release v1.4.0
2020-12-31 10:37:49 +01:00
Steffen Schuemann
3225d122ac
refs #71 , added three-way comparison to directory_entry
2020-12-28 23:20:32 +01:00
Steffen Schuemann
3629ba96e5
refs #71 , C++20 support, some overdue cleanup-work, to enhance readability.
2020-12-28 00:08:16 +01:00
Steffen Schuemann
5b5b529398
Merge branch 'master' into feature-cpp20-support
2020-12-27 18:44:22 +01:00
Steffen Schuemann
3ad9525acc
Release v1.3.10
2020-12-27 13:29:15 +01:00
Steffen Schuemann
b3451220ca
refs #71 , work on c++20 api changes
2020-12-27 02:20:55 +01:00
Steffen Schuemann
d2100b431f
refs #71 , restarted wip on C++20 support
2020-12-27 00:03:57 +01:00
Steffen Schuemann
eef2c2ba55
refs #81 , work on incomplete string_view support when using c++17
2020-12-26 15:14:32 +01:00
Steffen Schuemann
440e556f21
Merge branch 'feature-79-constexpr-bitmask-ops'
2020-12-26 14:00:42 +01:00
Steffen Schuemann
b51fe02f1a
WIP version bump
2020-12-26 13:56:21 +01:00
Steffen Schuemann
10e0da40bc
refs #79 , constexpr on non-assigning bitmask operations
2020-11-17 07:57:25 +01:00
Steffen Schuemann
1edf4a3339
ghc::filesysem release v1.3.8
2020-11-15 22:54:06 +01:00
Steffen Schuemann
427108c8e2
updating readme and dynamic selection examples
2020-11-15 21:12:41 +01:00
Steffen Schümann
809d680df9
refs #75 , avoid messing with long namespaced path on windows
2020-11-10 08:34:21 +01:00
Steffen Schümann
3fd3482559
refs #75 , fix for windows path filtering on namespaces
2020-11-08 11:12:07 +01:00
Steffen Schuemann
cf7890719f
refs #76 , additional support for _MSVC_LANG
2020-10-25 09:02:27 +01:00
Steffen Schuemann
416c60a1d4
refs #78 , added test of __MAC_OS_X_VERSION_MIN_REQUIRED
2020-10-24 12:16:50 +02:00
Steffen Schuemann
1c7204285d
wip version bump
2020-10-24 12:05:11 +02:00
Steffen Schuemann
f824d0d46b
refs #77 , fix skip_permission_denied inconsistency
2020-10-24 12:03:58 +02:00
Steffen Schuemann
7e37433f31
Release v1.3.6
2020-10-10 09:11:06 +02:00
Florian Brenot
c82e11af33
Check symlink relative flag and use correct offsets on Windows ( #74 )
...
* Check symlink relative flag and use correct offsets
* Using the correct length this time
2020-10-10 08:58:06 +02:00
Steffen Schümann
6649653be9
Extended path prefix handling on Windows.
2020-10-09 23:57:54 +02:00
Steffen Schümann
2fe72421c5
Merge branch 'feature-70-path-comparison' of https://github.com/gulrak/filesystem into feature-70-path-comparison
...
# Conflicts:
# include/ghc/filesystem.hpp
2020-10-06 21:23:13 +02:00
Steffen Schümann
3cd5bc6873
refs #70 , fix for non LWG2936 mode and updated readme
2020-10-06 21:17:15 +02:00
Steffen Schuemann
a22c0a94d0
refs #70 , mingw compile fix
2020-10-05 22:41:46 +02:00
Steffen Schuemann
f15dea9695
refs #70 , fix for missed issue and mingw errors
2020-10-05 21:59:29 +02:00
Steffen Schümann
56b5e7a174
refs #70 , compare windows root names case insensitive, work on LWG 2936 option
2020-10-05 21:24:05 +02:00
Steffen Schümann
c8cfcf823f
refs #73 , performance optimizations
2020-09-30 08:33:29 +02:00
Steffen Schuemann
d8abf146a4
Release ghc::filesystem v1.3.4
2020-08-30 09:59:53 +02:00
Steffen Schuemann
80543b681b
refs #66 , removed shared_ptr guards in copy_file
2020-08-30 09:47:27 +02:00
Steffen Schuemann
3131e9735d
Merge branch 'master' into feature-68-experimental-emscripten-support
2020-08-21 08:22:48 +02:00
zero9178
0e40179aeb
Changed preprocessors checks for wchar_t constructs of iostreams from __GNUC__ to __GLIBCXX__ as libc++ provides these on Windows as well
2020-08-21 03:01:50 +02:00
Steffen Schuemann
1d41167941
refs #68 , experimental support for emscripten
2020-08-20 22:26:56 +02:00
Steffen Schuemann
2ea00170e1
refs #68 , better permission error handling for directory_iteratior with skip_permissions_denied
2020-08-20 21:58:34 +02:00
Steffen Schuemann
3f1c185ab4
fixes #63 , Squashed commit of the following:
...
commit fdcb3ce89ba676d3e06b30c18c04e926a775366c
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Thu Apr 9 12:59:13 2020 +0200
refs #63 , fix typo
commit a5cadd2e5060da75315f79971dae56a0e91a8023
Author: Steffen Schuemann <s.schuemann@pobox.com>
Date: Thu Apr 9 11:45:36 2020 +0200
refs #63 , work on issues with wchar and clang in windows.
2020-04-10 11:26:04 +02:00
Steffen Schuemann
9a047b9f8d
Updated readme, added error handling for conflicting options.
2020-04-08 10:44:54 +02:00
gulrak
6b30995e41
Merge pull request #62 from okhowang/android
...
Fix android compatibility
2020-04-07 19:49:25 +02:00
gulrak
2ad75e1ff0
Merge pull request #61 from okhowang/no-exception
...
fixes #60 , refs #43 , support for usage in projects with exceptions disabled
2020-04-07 19:48:30 +02:00
Steffen Schuemann
4bf0160a15
Bump to wip version.
2020-04-07 18:27:49 +02:00
okhowang(王沛文)
a0f28a93bc
Fix android compatibility
2020-04-07 22:55:13 +08:00
okhowang(王沛文)
ee9b432e3f
Fixed MinGW no-exception logic
2020-04-07 19:09:54 +08:00
okhowang(王沛文)
498dd371fa
merge all ifdef
2020-04-07 15:40:27 +08:00
okhowang(王沛文)
4fe99da720
Fix VS2015 compatibility
2020-04-07 14:07:47 +08:00
okhowang(王沛文)
a0ef036074
use marcro protect all code with exception
2020-04-07 11:40:42 +08:00