[all-commits] [llvm/llvm-project] 84afd9: [compiler-rt] [netbsd] Add support for versioned s...

Kamil Rytarowski via All-commits all-commits at lists.llvm.org
Fri Dec 27 09:50:27 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 84afd9c5368c32e6a5710af8ad2de76efbbdc49a
      https://github.com/llvm/llvm-project/commit/84afd9c5368c32e6a5710af8ad2de76efbbdc49a
  Author: Kamil Rytarowski <n54 at gmx.com>
  Date:   2019-12-27 (Fri, 27 Dec 2019)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
    A compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_netbsd_compat.inc
    M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h

  Log Message:
  -----------
  [compiler-rt] [netbsd] Add support for versioned statvfs interceptors

Summary:
Add support for NetBSD 9.0 and newer versions of interceptors
operating on struct statvfs: fstatvfs, fstatvfs1, getmntinfo,
getvfsstat, statvfs, statvfs1.

The default promoted interceptors are for NetBSD 9.99.26. Older
ones (currently 9.0) are kept in a new NetBSD specific file:
/sanitizer_common_interceptors_netbsd_compat.inc. This file
defines compat interceptors and mangles `INIT_*` macros,
concatenating the current interceptors and the compat ones.
This redefinition is not elegant, but it avoids preprocessor madness.

Define struct_statvfs90_sz for the compat purposes.

Reviewers: mgorny, kcc, vitalybuka, joerg

Reviewed By: mgorny

Subscribers: dberris, llvm-commits, #sanitizers

Tags: #sanitizers, #llvm

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




More information about the All-commits mailing list