Kamil Rytarowski 26370ddcd7 Add new interceptors: access(2), faccessat(2)
Summary:
access, faccessat - check access permissions of a file or pathname

Sponsored by <The NetBSD Foundation>

Reviewers: joerg, vitalybuka

Reviewed By: vitalybuka

Subscribers: llvm-commits, kubamracek, #sanitizers

Tags: #sanitizers

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

llvm-svn: 322831
2018-01-18 11:04:25 +00:00

7 lines
150 B
C++

// RUN: %clangxx -O0 -g %s -o %t && %run %t
#include <fcntl.h>
#include <unistd.h>
int main(void) { return faccessat(AT_FDCWD, "/root", F_OK, 0); }