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
6 lines
115 B
C++
6 lines
115 B
C++
// RUN: %clangxx -O0 -g %s -o %t && %run %t
|
|
|
|
#include <unistd.h>
|
|
|
|
int main(void) { return access("/root", F_OK); }
|