If posix_fallocate returns EOPNOTSUPP, fallback to ftruncate.
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 5 May 2017 17:55:58 +0000 (17:55 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 5 May 2017 17:55:58 +0000 (17:55 +0000)
commitecfb876eac1edf733a8be163c52421e7eeea02b4
tree231bfa0237379d6365baff85e1fbaa899483a0c5
parentf0aeee01c36b9b84afd4ccc5834df61b6b9f6a13
If posix_fallocate returns EOPNOTSUPP, fallback to ftruncate.
This can happen at least on NetBSD.

llvm-svn: 302263
llvm/lib/Support/Unix/Path.inc