Home
last modified time | relevance | path

Searched refs:F_OK (Results 1 – 25 of 195) sorted by relevance

12345678

/external/ltp/testcases/kernel/syscalls/access/
Daccess01.c37 {FNAME_RWX, F_OK, "F_OK", 0, 3},
83 {DNAME_R"/"FNAME_R, F_OK, "F_OK", 0, 2},
87 {DNAME_R"/"FNAME_W, F_OK, "F_OK", 0, 2},
91 {DNAME_R"/"FNAME_X, F_OK, "F_OK", 0, 2},
96 {DNAME_W"/"FNAME_R, F_OK, "F_OK", 0, 2},
100 {DNAME_W"/"FNAME_W, F_OK, "F_OK", 0, 2},
104 {DNAME_W"/"FNAME_X, F_OK, "F_OK", 0, 2},
109 {DNAME_X"/"FNAME_R, F_OK, "F_OK", 0, 3},
113 {DNAME_X"/"FNAME_W, F_OK, "F_OK", 0, 3},
117 {DNAME_X"/"FNAME_X, F_OK, "F_OK", 0, 3},
[all …]
Daccess02.c47 {FNAME_F, F_OK, "F_OK", FNAME_F},
51 {SNAME_F, F_OK, "F_OK", FNAME_F},
71 case F_OK: in access_test()
/external/protobuf/src/google/protobuf/io/
Dio_win32_unittest.cc286 EXPECT_EQ(access(test_tmpdir.c_str(), F_OK), 0); in TEST_F()
287 EXPECT_EQ(access(path.c_str(), F_OK), 0); in TEST_F()
289 EXPECT_EQ(access(file.c_str(), F_OK | W_OK), 0); in TEST_F()
290 EXPECT_NE(access((file + ".blah").c_str(), F_OK), 0); in TEST_F()
293 EXPECT_EQ(access(".", F_OK), 0); in TEST_F()
295 EXPECT_EQ(access((test_tmpdir + "/accesstest").c_str(), F_OK | W_OK), 0); in TEST_F()
297 F_OK | W_OK), in TEST_F()
299 EXPECT_NE(access("io_win32_unittest.AccessTest.nonexistent", F_OK), 0); in TEST_F()
302 ASSERT_EQ(access("c:bad", F_OK), -1); in TEST_F()
304 ASSERT_EQ(access("/tmp/bad", F_OK), -1); in TEST_F()
[all …]
Dio_win32.h104 #ifndef F_OK
105 #define F_OK 00 // not defined by MSVC for whatever reason macro
/external/ltp/testcases/kernel/containers/mountns/
Dmountns02.c58 if ((access(DIRA"/A", F_OK) != 0) || (access(DIRA"/B", F_OK) == 0)) in child_func()
105 if ((access(DIRA"/A", F_OK) != 0) || (access(DIRA"/B", F_OK) == 0)) in test()
Dmountns03.c71 if (access(DIRA"/B", F_OK) == -1) in child_func()
122 if ((access(DIRA"/A", F_OK) == 0) && (access(DIRA"/B", F_OK) == -1)) in test()
Dmountns01.c58 if (access(DIRA"/B", F_OK) == -1) in child_func()
105 if (access(DIRA"/B", F_OK) == 0) in test()
/external/ltp/testcases/kernel/mem/ksm/
Dksm01.c69 if (access(PATH_KSM, F_OK) == -1) in setup()
81 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup()
90 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup()
Dksm03.c72 if (access(PATH_KSM, F_OK) == -1) in setup()
75 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup()
88 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup()
Dksm02.c87 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup()
97 if (access(PATH_KSM, F_OK) == -1) in setup()
102 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup()
Dksm04.c90 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup()
102 if (access(PATH_KSM, F_OK) == -1) in setup()
105 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup()
/external/ltp/lib/
Dtst_module.c35 if (access(mod_name, F_OK) == 0) { in tst_module_exists()
52 err = access(buf, F_OK); in tst_module_exists()
64 err = access(buf, F_OK); in tst_module_exists()
Dtst_kconfig.c22 if (!access(path, F_OK)) in kconfig_path()
28 if (!access("/proc/config.gz", F_OK)) in kconfig_path()
36 if (!access(path_buf, F_OK)) in kconfig_path()
42 if (!access(path_buf, F_OK)) in kconfig_path()
Dtst_virt.c54 if (access("/proc/xen", F_OK) == 0) in is_xen()
57 if (access("/sys/hypervisor/type", F_OK) == 0) { in is_xen()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice.h29 if (!access("/proc/sys/fs/pipe-max-size", F_OK)) { in get_max_limit()
34 if (!access("/proc/sys/fs/pipe-max-pages", F_OK)) { in get_max_limit()
/external/ltp/testcases/kernel/syscalls/getxattr/
Dgetxattr05.c103 if (access(UID_MAP, F_OK)) in do_unshare()
154 if (access(SELF_USERNS, F_OK) != 0) { in setup()
156 } else if (!access(MAX_USERNS, F_OK)) { in setup()
/external/strace/xlat/
Daccess_flags.h17 #if defined(F_OK) || (defined(HAVE_DECL_F_OK) && HAVE_DECL_F_OK)
18 XLAT(F_OK),
/external/ltp/testcases/kernel/controllers/memcg/regression/
Dmemcg_test_3.c51 if (access(SUBDIR, F_OK)) in do_test()
80 if (!access(SUBDIR, F_OK)) in cleanup()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create04.c55 if (access(pattern, F_OK)) in check_hugepage_support()
87 if (access(PATH_HUGEPAGES, F_OK)) in setup()
Dmemfd_create03.c199 if (access(MEMINFO_PATH, F_OK) || in setup()
200 access("/sys/kernel/mm/hugepages", F_OK) || in setup()
201 access(TOTAL_HP_PATH, F_OK)) in setup()
/external/curl/lib/
Dconfig-amigaos.h116 #ifndef F_OK
117 # define F_OK 0 macro
/external/curl/src/
Dtool_dirhie.c46 # ifndef F_OK
47 # define F_OK 0 macro
/external/autotest/client/profilers/powertop/src/
Dbluetooth.c108 if (access("/sys/module/bluetooth",F_OK)) in suggest_bluetooth_off()
122 access("/sys/module/hci_usb",F_OK)) /* interface down already */ in suggest_bluetooth_off()
/external/autotest/client/cros/
Dlogin.py131 if os.access(constants.OWNER_KEY_FILE, os.F_OK):
134 condition=lambda: os.access(constants.OWNER_KEY_FILE, os.F_OK),
/external/perfetto/src/profiling/symbolizer/
Dlocal_symbolizer.cc279 if (access(symbol_file.c_str(), F_OK) == 0 && in FindBinaryInRoot()
286 if (access(symbol_file.c_str(), F_OK) == 0 && in FindBinaryInRoot()
292 if (access(symbol_file.c_str(), F_OK) == 0 && in FindBinaryInRoot()
298 if (access(symbol_file.c_str(), F_OK) == 0 && in FindBinaryInRoot()
308 if (access(symbol_file.c_str(), F_OK) == 0 && in FindBinaryInRoot()

12345678