commit | 75cca7a0983c857852d7660d5b3d4a02f0859722 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Tue Jul 19 20:19:56 2016 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Tue Jul 19 20:19:56 2016 +0000 |
tree | d7845af09e4aed4b324e91b0066ba547b8c406e1 | |
parent | ea47fc5fc93b0fe6315745712dd1a9590404f913 [diff] |
Use posix_fallocate instead of ftruncate. This makes sure that space is actually available. With this change running lld on a full file system causes it to exit with failed to open foo: No space left on device instead of crashing with a sigbus. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276017 91177308-0d34-0410-b5e6-96231b3b80d8