]> git.ipfire.org Git - thirdparty/ccache.git/commit
Improve functions related to (l)stat-ing
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 19 Oct 2019 10:43:39 +0000 (12:43 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 19 Oct 2019 10:50:46 +0000 (12:50 +0200)
commit8bf69a1dd9dec1d3f8bcd161b50c86924b9bc464
tree28854fff9e441b7f2300ae2e44c229508af5fde1
parentb5b234ea33849358ad0605ba5d9127e6e8adba84
Improve functions related to (l)stat-ing

Introduced a Stat class that represents a “struct stat”. The class
replaces the utility functions x_lstat, x_stat, file_size_on_disk and
is_symlink, and it provides an easier to use interface than the macros
associated with stat structs.
27 files changed:
Makefile.in
dev.mk.in
src/CacheEntryReader.cpp
src/CacheEntryReader.hpp
src/CacheFile.cpp
src/CacheFile.hpp
src/Decompressor.hpp
src/Stat.cpp [new file with mode: 0644]
src/Stat.hpp [new file with mode: 0644]
src/Util.cpp
src/Util.hpp
src/ZstdCompressor.hpp
src/ZstdDecompressor.hpp
src/ccache.cpp
src/ccache.hpp
src/cleanup.cpp
src/compress.cpp
src/execute.cpp
src/legacy_util.cpp
src/manifest.cpp
src/result.cpp
src/stats.cpp
src/system.hpp
unittest/test_Stat.cpp [new file with mode: 0644]
unittest/test_Util.cpp
unittest/test_lockfile.cpp
unittest/util.cpp