[PATCH] D71700: [compiler-rt] [netbsd] Add support for versioned statvfs interceptors
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 05:46:57 PST 2019
krytarowski created this revision.
krytarowski added reviewers: mgorny, kcc, vitalybuka, joerg.
krytarowski added a project: Sanitizers.
Herald added subscribers: llvm-commits, dberris.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71700
Files:
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_netbsd_compat.inc
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71700.234706.patch
Type: text/x-patch
Size: 7711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191219/e6fec376/attachment.bin>
More information about the llvm-commits
mailing list