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
7 lines
150 B
C++
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); }
|