| commit | 3816c53f040cc6aa06425978dd504b0bd5b7899c | [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 | 1de5a1b9eb85436d409e2c3aac6d2d3f45a5641e | |
| parent | 2f984cab4fa7b8cf07e87965fb334e9d16e7e296 [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. llvm-svn: 276017