Add interceptors for the fts(3) API family from NetBSD
authorKamil Rytarowski <n54@gmx.com>
Tue, 4 Dec 2018 01:45:52 +0000 (01:45 +0000)
committerKamil Rytarowski <n54@gmx.com>
Tue, 4 Dec 2018 01:45:52 +0000 (01:45 +0000)
commit175d2b8620a8a6ea409f04b2a1188b2c29ae0bd8
tree8ec363e8ae0c49b4b4cd4d9d86b22e3e99c50fcc
parent0a583d2bfaad86a34979abc2b4630505c1f2cb37
Add interceptors for the fts(3) API family from NetBSD

Summary:
fts(3) is API to traverse a file hierarchy.
Cover this interface with interceptors.

Add a test to validate the interface reading
the number of regular files in /etc.

Based on original work by Yang Zheng.

Reviewers: joerg, vitalybuka

Reviewed By: vitalybuka

Subscribers: tomsun.0.7, kubamracek, llvm-commits, mgorny, #sanitizers

Tags: #sanitizers

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

llvm-svn: 348227
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
compiler-rt/test/sanitizer_common/TestCases/NetBSD/fts.cc [new file with mode: 0644]