Home
last modified time | relevance | path

Searched refs:R_OK (Results 1 – 13 of 13) sorted by relevance

/bionic/libc/bionic/
Dfaccessat.cpp39 if ((mode != F_OK) && ((mode & ~(R_OK | W_OK | X_OK)) != 0) && in faccessat()
40 ((mode & (R_OK | W_OK | X_OK)) == 0)) { in faccessat()
Dbionic_arc4random.cpp42 static bool have_urandom = access("/dev/urandom", R_OK) == 0; in __libc_safe_arc4random_buf()
Dftw.cpp66 if (postorder || access(cur->fts_path, R_OK) == -1) continue; in do_nftw()
/bionic/tests/
Dsys_stat_test.cpp278 ASSERT_EQ(-1, faccessat(AT_FDCWD, "/dev/null", ~(R_OK | W_OK | X_OK), 0)); in TEST()
281 ASSERT_EQ(0, faccessat(AT_FDCWD, "/dev/null", ~(R_OK | W_OK | X_OK), AT_SYMLINK_NOFOLLOW)); in TEST()
282 ASSERT_EQ(-1, faccessat(AT_FDCWD, "/dev/null", ~(R_OK | W_OK | X_OK), 0)); in TEST()
299 ASSERT_EQ(0, faccessat(AT_FDCWD, "/dev/null", R_OK, 0)); in TEST()
301 ASSERT_EQ(0, faccessat(AT_FDCWD, "/dev/null", R_OK|W_OK, 0)); in TEST()
Dftw_test.cpp66 if (access(fpath, R_OK) == 0) { in sanity_check_ftw()
/bionic/libc/system_properties/
Dcontexts_split.cpp270 if (access("/system/etc/selinux/plat_property_contexts", R_OK) != -1) { in InitializeProperties()
277 if (access("/vendor/etc/selinux/vendor_property_contexts", R_OK) != -1) { in InitializeProperties()
287 if (access("/vendor_property_contexts", R_OK) != -1) { in InitializeProperties()
Dcontext_node.cpp93 return access(filename, R_OK) == 0; in CheckAccess()
Dsystem_properties.cpp76 if (access("/dev/__properties__/property_info", R_OK) == 0) { in Init()
/bionic/libc/tzcode/
Dprivate.h154 #ifndef R_OK
155 #define R_OK 4 macro
Dlocaltime.c420 if (doaccess && access(name, R_OK) != 0) in tzloadbody()
/bionic/libc/include/
Dunistd.h53 #define R_OK 4 macro
/bionic/tests/headers/posix/
Dunistd_h.c105 MACRO(R_OK); in unistd_h()
/bionic/linker/
Dlinker_config.cpp242 if (access(value.c_str(), R_OK) != 0) { in parse_config_file()