Add new interceptors: getttyent(3) family
authorKamil Rytarowski <n54@gmx.com>
Tue, 27 Feb 2018 02:30:16 +0000 (02:30 +0000)
committerKamil Rytarowski <n54@gmx.com>
Tue, 27 Feb 2018 02:30:16 +0000 (02:30 +0000)
commit31c34bfe8f4a13175e259531bbc5155b4e642c9d
tree45638cdb0f3613f8c9b28837723bc785f30ae136
parente9d957de8de7bdedacba4b2c8b85fe4f944b5581
Add new interceptors: getttyent(3) family

Summary:
getttyent, getttynam, setttyentpath - get ttys file entry

Reuse them on NetBSD.

Sponsored by <The NetBSD Foundation>

Reviewers: vitalybuka, joerg

Reviewed By: vitalybuka

Subscribers: llvm-commits, kubamracek, #sanitizers

Tags: #sanitizers

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

llvm-svn: 326161
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/ttyent.cc [new file with mode: 0644]