aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2020-04-22 23:00:12 +0700
committerSerge Pavlov <sepavloff@gmail.com>2020-07-28 16:44:23 +0700
commit536736995bf5d073853c7e884968c9847b4ae64d (patch)
treeacf7e4d8fbcb587973a9023a016bde193e5c08a1 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parenteb10b065f2a870b425dcc2040b9955e0eee464b4 (diff)
downloadllvm-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