Gilles Peskine eca29e4148 Replace the output file atomically
When writing the new .data file, first write the new content, then replace
the target. This way, there isn't a temporary state in which the file is
partially written. This temporary state can be misleading if the build is
interrupted. It's annoying if you're watching changes to the output and the
changes appear as emptying the file following by the new version appearing.
Now interrupted builds don't leave a file that appears to be up to date but
isn't, and when watching the output, there's a single transition to the new
version.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-10-04 15:22:27 +02:00
..
data_files Fix a/an typos in doxygen and other comments 2022-07-28 06:12:08 +01:00
mbedtls_dev Replace the output file atomically 2022-10-04 15:22:27 +02:00
abi_check.py Document how to interpret negative reports 2022-06-30 13:57:27 +02:00
apidoc_full.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
assemble_changelog.py Fix case of Mbed TLS in assemble_changelog.py 2022-07-11 11:40:08 +01:00
bump_version.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ci.requirements.txt Update references to old Github organisation 2022-03-31 14:27:24 +01:00
config.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
config.py Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-04-28 18:22:20 +01:00
ecc-heap.sh Tune coverage of ecc-heap.sh 2022-04-15 09:33:29 +02:00
find-mem-leak.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
footprint.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_errors.pl Show warnings if something looks wrong 2021-08-02 22:57:46 +02:00
generate_features.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_psa_constants.py Update all uses of old AEAD output size macros 2021-04-15 17:32:06 +02:00
generate_query_config.pl Add list_config generation 2021-12-10 20:19:05 +01:00
generate_visualc_files.pl Add test driver sources to VC build 2021-04-16 11:20:03 +02:00
maintainer.requirements.txt Any package used in a script must be listed in ci.requirements.txt 2022-01-22 00:48:00 +01:00
massif_max.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
memory.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
min_requirements.py Ensure files get closed when they go out of scope 2022-03-04 20:18:28 +01:00
output_env.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rename.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rm-calloc-cast.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
tmp_ignore_makefiles.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
windows_msbuild.bat Add a simple build script for Windows with Visual Studio 2020-04-26 20:52:04 +02:00