llvm/lib/Support/Unix
Davide Italiano 59aa4918d0 [Support/UNIX] posix_fallocate() can fail with EINVAL.
According to the docs on opegroup.org, the function can return
EINVAL if:

The len argument is less than zero, or the offset argument is less
than zero, or the underlying file system does not support this
operation.

I'd say it's a peculiar choice (when EONOTSUPP is right there), but
let's keep POSIX happy for now. This was independently discovered
by Mark Millard (on FreeBSD/ZFS).

Quickly ack'ed by Rui on IRC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317535 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-07 00:47:04 +00:00
..
COM.inc
DynamicLibrary.inc [DynamicLibrary] Fix build on musl libc 2017-10-26 16:44:13 +00:00
Host.inc [Support] sys::getProcessTriple should return a macOS triple using 2017-07-07 09:53:47 +00:00
Memory.inc Don't try to use a non-existent header on FreeBSD/mips. 2017-10-25 14:53:16 +00:00
Mutex.inc
Path.inc [Support/UNIX] posix_fallocate() can fail with EINVAL. 2017-11-07 00:47:04 +00:00
Process.inc Remove Bitrig: LLVM Changes 2017-07-21 22:48:47 +00:00
Program.inc Convenience/safety fix for llvm::sys::Execute(And|No)Wait 2017-09-13 17:03:37 +00:00
README.txt
RWMutex.inc
Signals.inc Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Threading.inc Temporary workaround for msan false positive. 2017-11-02 12:29:47 +00:00
ThreadLocal.inc Revert "Fix Clang-tidy modernize-deprecated-headers warnings in remaining files; other minor fixes." 2016-04-05 20:45:04 +00:00
Unix.h Remove TimeValue usage from llvm/Support 2016-10-24 10:59:17 +00:00
Watchdog.inc

llvm/lib/Support/Unix README
===========================

This directory provides implementations of the lib/System classes that
are common to two or more variants of UNIX. For example, the directory
structure underneath this directory could look like this:

Unix           - only code that is truly generic to all UNIX platforms
  Posix        - code that is specific to Posix variants of UNIX
  SUS          - code that is specific to the Single Unix Specification
  SysV         - code that is specific to System V variants of UNIX

As a rule, only those directories actually needing to be created should be
created. Also, further subdirectories could be created to reflect versions of
the various standards. For example, under SUS there could be v1, v2, and v3
subdirectories to reflect the three major versions of SUS.