Revision a2a1a8ca
ID | a2a1a8cad1584722eb5b6be903bd090380b125ea |
Add functions for atomic operations on files
Function 'atomicUpdateFile' extends 'atomicWriteFile' that allows any
action to be run on a temporary file.
Function 'atomicUpdateLockedFile' additionally locks the original file
using flock and checks if its state conforms to the last one.
Signed-off-by: Petr Pudlak <pudlak@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Files
- added
- modified
- copied
- renamed
- deleted