summaryrefslogtreecommitdiff
path: root/manifest.c
Commit message (Collapse)AuthorAgeFilesLines
* c99: Declare variables closer to their first useJoel Rosdahl2016-07-231-113/+66
|
* c99: Use //-style-commentsJoel Rosdahl2016-07-221-123/+106
|
* Use correct hash table in file_stat_matches modeJoel Rosdahl2016-02-061-1/+1
| | | | Bug found by Riley Avron.
* Fix cppcheck warnings/suggestionsJoel Rosdahl2016-01-021-11/+6
|
* Use correct key for "file info indexes" in --dump-manifest outputJoel Rosdahl2015-08-151-1/+1
|
* Update source code style according to uncrustifyJoel Rosdahl2015-08-051-14/+12
|
* Introduce logging wrappers for stat/lstat/fstat functionsJoel Rosdahl2015-03-191-3/+2
|
* Improve temporary file creation functions and usageJoel Rosdahl2014-11-151-12/+2
|
* Merge maint into master (using imerge)Joel Rosdahl2014-11-131-1/+7
|\
| * Do not rely on pids being uniqueJoel Rosdahl2014-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | Based on a patch by Mike Frysinger <vapier@gentoo.org>: "Linux supports creating pid namespaces cheaply and running processes inside of them. When you try to share a single cache among multiple such runs, the fact that the code relies on pid numbers as globally unique values quickly fails. Instead, switch to standard mkstemp to generate temp files for us."
* | Merge branch 'maint'Joel Rosdahl2014-05-151-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * maint: Fix clang build warning "shift count >= width of type" Clean up stale files in internal tempdir once an hour Add signal handler to clean up temporary files at unexpected program exit Don't needlessly allocate empty counter_updates data in stats_flush() Conflicts: ccache.c manifest.c stats.c
| * Fix clang build warning "shift count >= width of type"Joel Rosdahl2014-05-141-3/+13
| |
* | Merge branch 'maint'Joel Rosdahl2014-04-151-3/+13
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * maint: manifest file_info fix Clean up dead code flagged by cppcheck and clang-analyzer Mark fatal() with __attribute__((noreturn)) to please clang-analyzer Fix bug in common_dir_prefix_length Conflicts: ccache.h test/test_util.c util.c
| * manifest file_info fixYiding Jia2014-04-151-3/+13
| |
* | Include manifest version in the direct mode hashJoel Rosdahl2013-03-021-3/+2
| | | | | | | | | | | | This makes manifest file names unique per manifest version, thus avoiding ccache versions with different manifest versions overwriting each other's manifests.
* | Code style fixJoel Rosdahl2013-03-021-11/+10
| |
* | Allow mtime- and ctime-only matches.Justin Lebar2013-03-021-10/+94
| | | | | | | | | | | | | | If CCACHE_SLOPPINESS includes "file_stat_matches", ccache will consider two files which match in name, size, mtime, and ctime to have the same contents. This allows ccache to avoid reading the file, thus speeding up cache hits.
* | Merge branch 'maint'Joel Rosdahl2012-08-091-2/+3
|\ \ | |/ | | | | | | | | | | | | * maint: Rename static_assert macro to avoid clash with any preexisting static_assert Conflicts: manifest.c
| * Rename static_assert macro to avoid clash with any preexisting static_assertJoel Rosdahl2012-08-091-2/+3
| |
* | fix build problems with incorrect pointer assignmentsChris AtLee2012-04-051-1/+1
| |
* | Make ccache compilable with clangJoel Rosdahl2012-03-021-2/+12
| |
* | Use booleans for truth valuesJoel Rosdahl2012-01-081-7/+7
| |
* | Merge branch 'master' into configJoel Rosdahl2012-01-081-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: while (1) -> while (true) Fixup after merge: Make directory creation failure fatal Update NEWS Also recognize -specs=file in addition to --specs=file Revert GCC bug compatibility for -MTarg and -MQarg Fix minor memory leaks Correct log message when unify mode is enabled Hash environment variables that affect the preprocessor output Hash mtime or content of GCC plugins specified with -fplugin= Use hash_compiler for explicit --specs= options as well Refactor code into a hash_compiler function Improve description on how to fix bad object files in the cache Make failure to create files in cache fatal Make failure to create cache directories fatal Remove unused print_executed_command function Handle non-writable CCACHE_DIR gracefully Conflicts: manifest.c test/framework.c
| * \ Merge branch 'maint'Joel Rosdahl2012-01-081-1/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: Update NEWS Also recognize -specs=file in addition to --specs=file Revert GCC bug compatibility for -MTarg and -MQarg Fix minor memory leaks Correct log message when unify mode is enabled Hash environment variables that affect the preprocessor output Hash mtime or content of GCC plugins specified with -fplugin= Use hash_compiler for explicit --specs= options as well Refactor code into a hash_compiler function Improve description on how to fix bad object files in the cache Make failure to create files in cache fatal Make failure to create cache directories fatal Remove unused print_executed_command function Handle non-writable CCACHE_DIR gracefully Conflicts: ccache.c test.sh test/test_argument_processing.c
| | * Fix minor memory leaksJoel Rosdahl2012-01-071-1/+2
| | |
* | | config: Use sloppiness from conf structJoel Rosdahl2011-07-201-5/+5
|/ /
* | Merge branch 'maint'Joel Rosdahl2010-12-141-12/+6
|\ \ | |/ | | | | | | | | | | | | | | | | * maint: Remove corrupt manifest files so that they won't block direct mode hits Avoid creating empty file before creating new manifest file Compensate for bug in gzputc in zlib 1.2.5 Conflicts: manifest.c
| * Remove corrupt manifest files so that they won't block direct mode hitsJoel Rosdahl2010-12-141-11/+5
| |
| * Avoid creating empty file before creating new manifest fileJoel Rosdahl2010-12-131-11/+1
| |
| * Compensate for bug in gzputc in zlib 1.2.5Joel Rosdahl2010-12-121-1/+1
| | | | | | | | gzputc(f, -1) returns -1 (== EOF) in zlib 1.2.5 but should return 255.
* | Implement manifest_dumpJoel Rosdahl2010-11-021-0/+75
| |
* | Add version and reserved field to struct manifestJoel Rosdahl2010-11-021-6/+10
| |
* | Merge branch 'maint'Joel Rosdahl2010-11-021-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | * maint: Fall back to preprocessor mode when seeing a non-regular include file Properly close fd in manifest_get if gzdopen fails Check for CRC errors after decompression doc: Sort environment variables correctly Minor doc string fixes Fix NFS object corruption
| * Properly close fd in manifest_get if gzdopen failsJoel Rosdahl2010-11-011-0/+1
| |
* | Only create parent directories when needed to save stat() callsJoel Rosdahl2010-10-071-12/+2
|/
* Use bool, true and false for boolean valuesJoel Rosdahl2010-08-291-2/+2
|
* Remove includes that are redundant after system.h introductionJoel Rosdahl2010-08-291-9/+0
|
* read_manifest(): Use x_calloc() instead of x_malloc()+memset()Joel Rosdahl2010-08-251-15/+6
|
* Log when a manifest lookup fails due to a missing fileJoel Rosdahl2010-08-211-0/+1
|
* Format code to use a more consistent coding styleJoel Rosdahl2010-08-011-131/+129
|
* Don't use locks for reading/writing the manifest from/to diskJoel Rosdahl2010-08-011-9/+6
| | | | | | Since the rename-into-place idiom is already used, a race between two processes will only result in one lost entry, which is not a big deal, and it's also very unlikely.
* Introduce x_rename(), which unlink()s destination if necessary before rename()Joel Rosdahl2010-07-211-2/+1
|
* Use format() instead of x_asprintf()Joel Rosdahl2010-07-171-1/+1
|
* Close manifest files after reading/writing themRamiro Polla2010-07-161-3/+9
|
* Unlink destination file before renamesRamiro Polla2010-07-161-0/+1
| | | | Windows' rename() will not overwrite existing files.
* Open files in binary modeRamiro Polla2010-06-251-1/+1
|
* Handle __{DATE,FILE,TIME}__ macros in a better wayJoel Rosdahl2010-04-281-3/+8
|
* Disable direct mode if __{DATE,FILE,TIME}__ is usedJoel Rosdahl2010-04-251-1/+3
|
* Refactoring: move hash_*_ignoring_comments to hash_include_file_* in testutilJoel Rosdahl2010-04-251-3/+1
|
* Switch license to GPLv3+Joel Rosdahl2010-04-221-4/+4
|