[Support] On AIX, Check ENOTSUP on posix_fallocate instead of EOPNOTSUPP
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Apr 2019 00:40:34 +0000 (00:40 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Apr 2019 00:40:34 +0000 (00:40 +0000)
commit7f8b3bf2475624c4bd1140a4b48c83b738ddd0ec
tree826df99822531fa2a53e2840cf6fb7549e81bfd6
parent844a02e509a4cc03f76ef5dd1c358c57ee164b71
[Support] On AIX, Check ENOTSUP on posix_fallocate instead of EOPNOTSUPP

Summary:
`posix_fallocate` can fail if the underlying filesystem does not support
it; and, on AIX, such a failure is reported by a return value of
`ENOTSUP`. The existing code checks only for `EOPNOTSUPP`, which may
share the same value as `ENOTSUP`, but is not required to.

Reviewers: xingxue, sfertile, jasonliu

Reviewed By: xingxue

Subscribers: kristina, jsji, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60175

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