1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/Support/Unix
Ed Maste cc859b4c73 getMainExecutable: Fix hand-rolled AT_EXECPATH for older FreeBSD
Once we hit AT_NULL, we need to bail out of the loop; not just the
enclosing switch.  This fixes basic usage (e.g. `cc --version`) when
AT_EXECPATH isn't present on older branches (e.g. under
emu-user-static, at the moment), where we would previously run off
the end of ::environ.

Patch By: kevans

Reviewed By: arichardson

Differential Revision:	https://reviews.llvm.org/D79239
2020-05-07 17:05:17 -04:00
..
COM.inc
DynamicLibrary.inc
Host.inc Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Memory.inc Fix header includes after 0697bcb66f1d82f2fd447e9d13b74d141c3ce085 2020-01-24 18:32:54 -08:00
Path.inc getMainExecutable: Fix hand-rolled AT_EXECPATH for older FreeBSD 2020-05-07 17:05:17 -04:00
Process.inc Introduce llvm::sys::Process::getProcessId() and adopt it 2020-04-16 15:05:37 +03:00
Program.inc Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
README.txt
Signals.inc [Support] Optionally call signal handlers when a function wrapped by the the CrashRecoveryContext fails 2020-01-11 15:27:07 -05:00
Threading.inc [CMake] Delete HAVE_SCHED_GETAFFINITY and HAVE_CPU_COUNT 2020-04-19 08:50:23 -07:00
ThreadLocal.inc
Unix.h Stop including sys/param.h from Unix.h 2020-02-25 15:35:04 +01: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.