Home
last modified time | relevance | path

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

12345

/external/ltp/testcases/kernel/syscalls/access/
Daccess01.c40 {FNAME_RWX, R_OK, "R_OK", 0, 3},
42 {FNAME_RWX, R_OK|W_OK, "R_OK|W_OK", 0, 3},
43 {FNAME_RWX, R_OK|X_OK, "R_OK|X_OK", 0, 3},
45 {FNAME_RWX, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", 0, 3},
49 {FNAME_R, R_OK, "R_OK", 0, 3},
53 {FNAME_W, R_OK, "R_OK", EACCES, 1},
55 {FNAME_X, R_OK, "R_OK", EACCES, 1},
59 {FNAME_R, R_OK|X_OK, "R_OK|X_OK", EACCES, 3},
60 {FNAME_R, R_OK|W_OK, "R_OK|W_OK", EACCES, 1},
61 {FNAME_R, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", EACCES, 3},
[all …]
Daccess04.c53 {longpathname, R_OK, ENAMETOOLONG},
54 {FNAME2, R_OK, ENOTDIR},
55 {SNAME1, R_OK, ELOOP},
Daccess02.c48 {FNAME_R, R_OK, "R_OK", FNAME_R},
52 {SNAME_R, R_OK, "R_OK", FNAME_R},
86 case R_OK: in access_test()
/external/selinux/libselinux/src/android/
Dandroid.c89 if (access(seopts_service_plat[i].value, R_OK) != -1) { in selinux_android_service_context_handle()
95 if (access(seopts_service_system_ext[i].value, R_OK) != -1) { in selinux_android_service_context_handle()
101 if (access(seopts_service_product[i].value, R_OK) != -1) { in selinux_android_service_context_handle()
107 if (access(seopts_service_vendor[i].value, R_OK) != -1) { in selinux_android_service_context_handle()
122 if (access(seopts_hwservice_plat[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
128 if (access(seopts_hwservice_system_ext[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
134 if (access(seopts_hwservice_product[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
140 if (access(seopts_hwservice_vendor[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
146 if (access(seopts_hwservice_odm[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
157 if (access(seopts_vndservice.value, R_OK) != -1) { in selinux_android_vendor_service_context_handle()
Dandroid_platform.c92 if (access(seopts_file_plat[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
98 if (access(seopts_file_system_ext[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
104 if (access(seopts_file_product[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
110 if (access(seopts_file_vendor[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
116 if (access(seopts_file_odm[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
355 if (access(seapp_contexts_plat[i], R_OK) != -1) { in selinux_android_seapp_context_reload()
361 if (access(seapp_contexts_system_ext[i], R_OK) != -1) { in selinux_android_seapp_context_reload()
367 if (access(seapp_contexts_product[i], R_OK) != -1) { in selinux_android_seapp_context_reload()
373 if (access(seapp_contexts_vendor[i], R_OK) != -1) { in selinux_android_seapp_context_reload()
379 if (access(seapp_contexts_odm[i], R_OK) != -1) { in selinux_android_seapp_context_reload()
/external/libcups/cups/
Dtls-gnutls.c1399 if (access(crtfile, R_OK) || access(keyfile, R_OK)) in _httpTLSStart()
1410 …if ((access(cacrtfile, R_OK) || access(cakeyfile, R_OK)) && (hostptr = strchr(hostname, '.')) != N… in _httpTLSStart()
1424 if (!access(cacrtfile, R_OK) && !access(cakeyfile, R_OK)) in _httpTLSStart()
1435 have_creds = !access(crtfile, R_OK) && !access(keyfile, R_OK); in _httpTLSStart()
1446 if (access(crtfile, R_OK) || access(keyfile, R_OK)) in _httpTLSStart()
1457 …if ((access(cacrtfile, R_OK) || access(cakeyfile, R_OK)) && (hostptr = strchr(tls_common_name, '.'… in _httpTLSStart()
1471 if (!access(cacrtfile, R_OK) && !access(cakeyfile, R_OK)) in _httpTLSStart()
1482 have_creds = !access(crtfile, R_OK) && !access(keyfile, R_OK); in _httpTLSStart()
/external/curl/lib/
Dcurl_path.h32 # ifndef R_OK
33 # define R_OK 4 macro
/external/strace/xlat/
Daccess_flags.h20 #if defined(R_OK) || (defined(HAVE_DECL_R_OK) && HAVE_DECL_R_OK)
21 XLAT(R_OK),
Daccess_flags.in2 R_OK
/external/igt-gpu-tools/lib/
Dsw_sync.c64 if (access(path, R_OK | W_OK) == 0) in kernel_sw_sync_path()
68 if (access(path, R_OK | W_OK) == 0) in kernel_sw_sync_path()
72 if (access(path, R_OK | W_OK) == 0) in kernel_sw_sync_path()
/external/u-boot/fs/yaffs2/
Dyportenv.h281 #ifndef R_OK
282 #define R_OK 4 macro
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.3/
Dsupplicant.cpp71 int ret = access(src_file_path.c_str(), R_OK); in copyFileIfItExists()
99 int ret = access(config_file_path.c_str(), R_OK | W_OK); in ensureConfigFileExists()
287 int ret = access(kP2pIfaceConfOverlayPath, R_OK); in addInterfaceInternal()
302 int ret = access(kStaIfaceConfOverlayPath, R_OK); in addInterfaceInternal()
/external/ltp/
Dexecltp.in71 if not os.access(exec_log, os.R_OK):
74 elif 1 < verbose and not os.access(output_log, os.R_OK):
372 if not os.access(runtest_file, os.R_OK):
/external/strace/tests-m32/
Daccess.c18 rc = syscall(__NR_access, sample, R_OK|W_OK|X_OK); in main()
/external/strace/tests-mx32/
Daccess.c18 rc = syscall(__NR_access, sample, R_OK|W_OK|X_OK); in main()
/external/strace/tests/
Daccess.c18 rc = syscall(__NR_access, sample, R_OK|W_OK|X_OK); in main()
/external/googletest/googletest/include/gtest/internal/custom/
Dgtest.h44 if (access("/data/local/tmp", R_OK | W_OK | X_OK) == 0) return "/data/local/tmp/"; in GetAndroidTempDir()
/external/tensorflow/tensorflow/core/platform/default/
Dtracing.cc42 if (access(dir, R_OK | W_OK | X_OK) == 0) return dir; in GetLogDir()
/external/icu/icu4c/source/tools/tzcode/
Dprivate.h108 #ifndef R_OK
109 #define R_OK 4 macro
/external/libxml2/
Dcheck-xinclude-test-suite.py80 if os.access(URI, os.R_OK) == 0:
96 if os.access(output, os.R_OK) == 0:
/external/libxkbcommon/xkbcommon/src/
Dcontext.c57 if (eaccess(path, R_OK | X_OK) != 0) in xkb_context_include_path_append()
60 if (euidaccess(path, R_OK | X_OK) != 0) in xkb_context_include_path_append()
/external/python/cpython3/Lib/test/
Dtest_unicode_file.py32 self.assertTrue(os.access(filename, os.R_OK))
35 self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
/external/python/cpython2/Modules/
Ddlmodule.c203 if (access(name, R_OK)) { in dl_open()
208 if (access(fname, R_OK)) { in dl_open()
/external/oj-libjdwp/src/solaris/javavm/export/
Djvm_md.h55 #define JVM_R_OK R_OK
/external/e2fsprogs/resize/
Donline.c80 (access("/sys/fs/ext4/features/sparse_super2", R_OK) != 0)) { in online_resize_fs()
109 if ((access("/sys/fs/ext4/features/meta_bg_resize", R_OK) != 0) || in online_resize_fs()

12345