Home
last modified time | relevance | path

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

123

/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
Dmount_test.cc51 EXPECT_EQ(ENOENT, mnt.Access(Path("/foo"), R_OK | W_OK)); in TEST()
64 EXPECT_EQ(0, mnt.Access(Path("/foo"), R_OK | W_OK)); in TEST()
68 EXPECT_EQ(0, mnt.Access(Path("/"), R_OK | W_OK | X_OK)); in TEST()
217 ASSERT_EQ(0, mnt.Access(Path("/dir1/file"), R_OK)); in TEST()
222 ASSERT_NE(0, mnt.Access(Path("/dir1/file"), R_OK)); in TEST()
223 ASSERT_EQ(0, mnt.Access(Path("/dir2/new_file"), R_OK)); in TEST()
228 ASSERT_NE(0, mnt.Access(Path("/dir2/new_file"), R_OK)); in TEST()
229 ASSERT_EQ(0, mnt.Access(Path("/dir2/new_file2"), R_OK)); in TEST()
234 ASSERT_NE(0, mnt.Access(Path("/dir2/new_file2"), R_OK)); in TEST()
235 ASSERT_EQ(0, mnt.Access(Path("/dir1/new_file2"), R_OK)); in TEST()
[all …]
/external/chromium_org/sandbox/linux/services/
Dbroker_process_unittest.cc134 ret = open_broker.Access(kR_WhiteListed, R_OK); in TestOpenFilePerms()
138 ret = open_broker.Access(kR_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
142 ret = open_broker.Access(kR_WhiteListed, R_OK | X_OK); in TestOpenFilePerms()
160 ret = open_broker.Access(kR_WhiteListedButDenied, R_OK); in TestOpenFilePerms()
164 ret = open_broker.Access(kR_WhiteListedButDenied, R_OK | W_OK); in TestOpenFilePerms()
168 ret = open_broker.Access(kR_WhiteListedButDenied, R_OK | X_OK); in TestOpenFilePerms()
180 ret = open_broker.Access(kW_WhiteListed, R_OK); in TestOpenFilePerms()
184 ret = open_broker.Access(kW_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
188 ret = open_broker.Access(kW_WhiteListed, R_OK | X_OK); in TestOpenFilePerms()
199 ret = open_broker.Access(kRW_WhiteListed, R_OK); in TestOpenFilePerms()
[all …]
Dbroker_process.cc458 requested_mode & ~(R_OK | W_OK)) { in GetFileNameIfAllowedToAccess()
468 case R_OK: in GetFileNameIfAllowedToAccess()
474 case R_OK | W_OK: in GetFileNameIfAllowedToAccess()
/external/chromium_org/content/shell/app/
Dwebkit_test_platform_support_linux.cc23 if (access(font, R_OK) < 0) { in CheckAndLoadFontFile()
25 if (access(font, R_OK) < 0) { in CheckAndLoadFontFile()
95 if (access(kFonts[i], R_OK) < 0) { in SetupFontConfig()
/external/chromium_org/third_party/sqlite/src/src/
Dtest_demovfs.c486 #ifndef R_OK
487 # define R_OK 4 macro
511 if( flags==SQLITE_ACCESS_READWRITE ) eAccess = R_OK|W_OK; in demoAccess()
512 if( flags==SQLITE_ACCESS_READ ) eAccess = R_OK; in demoAccess()
/external/icu4c/tools/tzcode/
Dprivate.h114 #ifndef R_OK
115 #define R_OK 4 macro
/external/chromium_org/third_party/icu/source/tools/tzcode/
Dprivate.h114 #ifndef R_OK
115 #define R_OK 4 macro
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/sqlite/
DSQLiteFileSystemPosix.cpp128 *res = (attr & W_OK) && (attr & R_OK); in chromiumAccess()
131 *res = (attr & R_OK); in chromiumAccess()
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
Dosunistd.h10 #define R_OK 4 macro
/external/chromium_org/webkit/browser/database/
Dvfs_backend.cc151 if (!access(file_path.value().c_str(), R_OK)) in GetFileAttributes()
152 attributes |= static_cast<uint32>(R_OK); in GetFileAttributes()
/external/qemu/
Dkvm-android.c28 if (access("/dev/kvm",R_OK)) { in kvm_check_allowed()
Dos-posix.c140 if (access(res, R_OK)) { in os_find_datadir()
142 if (access(res, R_OK)) { in os_find_datadir()
/external/qemu/android/utils/
Dtimezone.c320 if ( access( env, R_OK ) != 0 ) { in get_zoneinfo_timezone()
345 if ( access( localtime, R_OK ) != 0 ) { in get_zoneinfo_timezone()
349 if (p >= end || access( temp, R_OK ) != 0 ) { in get_zoneinfo_timezone()
Dpath.c268 CHECKED(ret, access(path, R_OK)); in path_can_read()
278 CHECKED(ret, access(path, R_OK)); in path_can_write()
540 if ( access(source, R_OK) < 0 ) { in path_copy_file()
/external/valgrind/main/coregrind/
Dlauncher-darwin.c122 if (access(fullname, R_OK|X_OK) == 0) in find_client()
288 if (access(vgpreload_core, R_OK|X_OK) != 0) { in main()
411 if (access(toolfile, R_OK|X_OK) != 0) { in main()
/external/chromium_org/third_party/libxml/src/
Dcheck-xinclude-test-suite.py80 if os.access(URI, os.R_OK) == 0:
96 if os.access(output, os.R_OK) == 0:
/external/linux-tools-perf/util/
Dconfig.c407 if (perf_config_system() && !access(perf_etc_perfconfig(), R_OK)) { in perf_config()
416 if (!access(user_config, R_OK)) { in perf_config()
/external/blktrace/btreplay/
Dbtrecord.c344 if (access(full_name, R_OK) != 0) in add_input_file()
399 if (access(idir, R_OK | X_OK) != 0) { in handle_args()
408 if (access(odir, R_OK | X_OK) != 0) { in handle_args()
/external/oprofile/libutil/
Dop_file.c29 return !stat(file, &st) && S_ISREG(st.st_mode) && !access(file, R_OK); in op_file_readable()
/external/chromium_org/tools/telemetry/telemetry/core/
Dutil.py153 required_mode = os.R_OK
/external/libcap-ng/libcap-ng-0.7/utils/
Dcaptest.c178 if (access("/etc/shadow", R_OK) == 0) in report()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dsymbolize.cc132 if (access(g_pprof_path->c_str(), R_OK) != 0) { in Symbolize()
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dsymbolize.cc132 if (access(g_pprof_path->c_str(), R_OK) != 0) { in Symbolize()
/external/chromium_org/third_party/WebKit/Source/platform/exported/linux/
DWebFontInfo.cpp100 if (access(reinterpret_cast<char*>(cFilename), R_OK)) in familyForChar()
/external/openssl/
De_os.h358 # ifndef R_OK
359 # define R_OK 4 macro

123