diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2020-04-22 23:00:12 +0700 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2020-07-28 16:44:23 +0700 |
commit | 536736995bf5d073853c7e884968c9847b4ae64d (patch) | |
tree | acf7e4d8fbcb587973a9023a016bde193e5c08a1 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp | |
parent | eb10b065f2a870b425dcc2040b9955e0eee464b4 (diff) | |
download | llvm-536736995bf5d073853c7e884968c9847b4ae64d.zip llvm-536736995bf5d073853c7e884968c9847b4ae64d.tar.gz llvm-536736995bf5d073853c7e884968c9847b4ae64d.tar.bz2 |
[Support] Add file lock/unlock functions
This is recommit of f51bc4fb60fb, reverted in 8577595e03fa, because
the function `flock` is not available on Solaris. In this variant
`flock` was replaced with `fcntl`, which is a POSIX function.
New functions `lockFile`, `tryLockFile` and `unlockFile` implement
simple file locking. They lock or unlock entire file. This must be
enough to support simulataneous writes to log files in parallel builds.
Differential Revision: https://reviews.llvm.org/D78896
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions