[all-commits] [llvm/llvm-project] 1a6d57: [Support] Skip attempts to access /proc/self/fd on...

Mateusz Guzik via All-commits all-commits at lists.llvm.org
Sun Mar 27 11:20:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a6d571174f8a6565d3bb94cbd184a3861bf4a17
      https://github.com/llvm/llvm-project/commit/1a6d571174f8a6565d3bb94cbd184a3861bf4a17
  Author: Mateusz Guzik <mjguzik at gmail.com>
  Date:   2022-03-27 (Sun, 27 Mar 2022)

  Changed paths:
    M llvm/lib/Support/Unix/Path.inc

  Log Message:
  -----------
  [Support] Skip attempts to access /proc/self/fd on FreeBSD

In contrast to Linux it does not provide entries which can be readlinked
-- these are just regular files, not giving the expected outcome. That's
on top of procfs not being mounted by default to begin with.

This is probably the case on other BSDs as well, so I expect there will
be more ifdefs added down the road.

Reviewed By: emaste, dim

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




More information about the All-commits mailing list