Home
last modified time | relevance | path

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

12345

/external/ltp/testcases/kernel/syscalls/access/
Daccess01.c59 {FNAME_RWX, R_OK, "R_OK", 0, 3},
61 {FNAME_RWX, R_OK|W_OK, "R_OK|W_OK", 0, 3},
62 {FNAME_RWX, R_OK|X_OK, "R_OK|X_OK", 0, 3},
64 {FNAME_RWX, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", 0, 3},
68 {FNAME_R, R_OK, "R_OK", 0, 3},
72 {FNAME_W, R_OK, "R_OK", EACCES, 1},
74 {FNAME_X, R_OK, "R_OK", EACCES, 1},
78 {FNAME_R, R_OK|X_OK, "R_OK|X_OK", EACCES, 3},
79 {FNAME_R, R_OK|W_OK, "R_OK|W_OK", EACCES, 1},
80 {FNAME_R, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", EACCES, 3},
[all …]
Daccess04.c65 {longpathname, R_OK, ENAMETOOLONG},
66 {FNAME2, R_OK, ENOTDIR},
67 {SNAME1, R_OK, ELOOP},
Daccess02.c62 {FNAME_R, R_OK, "R_OK", FNAME_R},
66 {SNAME_R, R_OK, "R_OK", FNAME_R},
100 case R_OK: in access_test()
/external/selinux/libselinux/src/android/
Dandroid.c80 if (access(seopts_service_plat[i].value, R_OK) != -1) { in selinux_android_service_context_handle()
86 if (access(seopts_service_product[i].value, R_OK) != -1) { in selinux_android_service_context_handle()
92 if (access(seopts_service_vendor[i].value, R_OK) != -1) { in selinux_android_service_context_handle()
107 if (access(seopts_hwservice_plat[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
113 if (access(seopts_hwservice_product[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
119 if (access(seopts_hwservice_vendor[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
125 if (access(seopts_hwservice_odm[i].value, R_OK) != -1) { in selinux_android_hw_service_context_handle()
136 if (access(seopts_vndservice.value, R_OK) != -1) { in selinux_android_vendor_service_context_handle()
Dandroid_platform.c177 if (access(seopts_file_plat[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
183 if (access(seopts_file_product[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
189 if (access(seopts_file_vendor[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
195 if (access(seopts_file_odm[i].value, R_OK) != -1) { in selinux_android_file_context_handle()
210 if (access(seopts_prop_plat[i].value, R_OK) != -1) { in selinux_android_prop_context_handle()
216 if (access(seopts_prop_product[i].value, R_OK) != -1) { in selinux_android_prop_context_handle()
222 if (access(seopts_prop_vendor[i].value, R_OK) != -1) { in selinux_android_prop_context_handle()
228 if (access(seopts_prop_odm[i].value, R_OK) != -1) { in selinux_android_prop_context_handle()
486 if (access(seapp_contexts_plat[i], R_OK) != -1) { in selinux_android_seapp_context_reload()
492 if (access(seapp_contexts_product[i], R_OK) != -1) { in selinux_android_seapp_context_reload()
[all …]
/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/wpa_supplicant_8/wpa_supplicant/hidl/1.2/
Dsupplicant.cpp72 int ret = access(src_file_path.c_str(), R_OK); in copyFileIfItExists()
100 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/u-boot/fs/yaffs2/
Dyportenv.h281 #ifndef R_OK
282 #define R_OK 4 macro
/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/syzkaller/vendor/golang.org/x/sys/unix/
Dconstants.go10 R_OK = 0x4 const
/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/strace/tests-m32/
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.h42 if (access("/data/local/tmp", R_OK | W_OK | X_OK) == 0) return "/data/local/tmp/"; in GetAndroidTempDir()
/external/strace/tests-mx32/
Daccess.c18 rc = syscall(__NR_access, sample, R_OK|W_OK|X_OK); in main()
/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/cpython2/Modules/
Ddlmodule.c203 if (access(name, R_OK)) { in dl_open()
208 if (access(fname, R_OK)) { in dl_open()
/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/tensorflow/tensorflow/core/platform/default/
Dtracing.cc42 if (access(dir, R_OK | W_OK | X_OK) == 0) return dir; in GetLogDir()
/external/toybox/toys/pending/
Dmdev.c276 if (!access(dev, R_OK)) make_device(dev); in callback()
293 if (!access("/sys/block", R_OK)) dirtree_read("/sys/block", callback); in mdev_main()
/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