Home
last modified time | relevance | path

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

12345678910

/third_party/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},
69 case F_OK: in access_test()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dlink.c32 EXPECT_EQ("link_0100", access("/etc/a_link.txt", F_OK), 0); in link_0100()
43 if (access("/etc/a_link.txt", F_OK) != 0) { in link_0200()
63 if (access("/etc/a.txt", F_OK) == 0) { in link_0300()
67 if (access("/etc/a_link.txt", F_OK) == 0) { in link_0300()
Dlinkat.c40 EXPECT_EQ("linkat_0100", access("/etc/linkat.txt", F_OK), 0); in linkat_0100()
53 if (access("/etc/linkat.txt", F_OK) != 0) { in linkat_0200()
80 if (access("/etc/test.txt", F_OK) == 0) { in linkat_0300()
84 if (access("/etc/linkat.txt", F_OK) == 0) { in linkat_0300()
Daccess.c36 int isExist = access(ptr, F_OK); in access_0100()
57 int isExist = access(passbuff, F_OK); in access_0200()
74 int isExist = access(ptr, F_OK); in access_0300()
88 int isExist = access(ptr, F_OK); in access_0400()
/third_party/node/test/parallel/
Dtest-fs-access.js66 assert.strictEqual(typeof fs.F_OK, 'number');
85 fs.access(readOnlyFile, fs.F_OK | fs.R_OK, common.mustCall(function(...args) {
88 fs.promises.access(readOnlyFile, fs.F_OK | fs.R_OK)
127 () => { fs.access(100, fs.F_OK, common.mustNotCall()); },
131 fs.promises.access(100, fs.F_OK)
138 fs.access(__filename, fs.F_OK);
147 fs.access(__filename, fs.F_OK, {});
156 const mode = fs.F_OK | fs.R_OK | fs.W_OK;
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/unlinkat/
Dunlinkat01.c56 if (access(testfile2, F_OK)) in run()
60 if (access(testfile3, F_OK)) in run()
64 if (access(subpathdir, F_OK)) in run()
68 if (access(testfile, F_OK)) in run()
/third_party/protobuf/src/google/protobuf/io/
Dio_win32_unittest.cc301 EXPECT_EQ(access(test_tmpdir.c_str(), F_OK), 0); in TEST_F()
302 EXPECT_EQ(access(path.c_str(), F_OK), 0); in TEST_F()
304 EXPECT_EQ(access(file.c_str(), F_OK | W_OK), 0); in TEST_F()
305 EXPECT_NE(access((file + ".blah").c_str(), F_OK), 0); in TEST_F()
308 EXPECT_EQ(access(".", F_OK), 0); in TEST_F()
310 EXPECT_EQ(access((test_tmpdir + "/accesstest").c_str(), F_OK | W_OK), 0); in TEST_F()
312 F_OK | W_OK), in TEST_F()
314 EXPECT_NE(access("io_win32_unittest.AccessTest.nonexistent", F_OK), 0); in TEST_F()
317 ASSERT_EQ(access("c:bad", F_OK), -1); in TEST_F()
319 ASSERT_EQ(access("/tmp/bad", F_OK), -1); in TEST_F()
[all …]
/third_party/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.c71 if (access(PATH_KSM, F_OK) == -1) in setup()
74 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()
Dksm04.c89 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup()
98 if (access(PATH_KSM, F_OK) == -1) in setup()
101 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup()
Dksm02.c90 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup()
99 if (access(PATH_KSM, F_OK) == -1) in setup()
104 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify17.c162 if (access(UID_MAP, F_OK)) in do_unshare()
225 if (access(SELF_USERNS, F_OK) != 0) { in setup()
227 } else if (!access(MAX_USERNS, F_OK)) { in setup()
236 if (access(GLOBAL_MAX_GROUPS, F_OK) && errno == ENOENT) { in setup()
/third_party/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_virt.c54 if (access("/proc/xen", F_OK) == 0) in is_xen()
57 if (access("/sys/hypervisor/type", F_OK) == 0) { in is_xen()
73 if (access("/proc/sysinfo", F_OK) != 0) in is_ibmz()
Dtst_hugepage.c17 if (access(PATH_HUGEPAGES, F_OK)) in tst_get_hugepage_size()
27 if (access(PATH_HUGEPAGES, F_OK)) { in tst_request_hugepages()
Dtst_lockdown.c24 if (access(EFIVAR_SECUREBOOT, F_OK)) { in tst_secureboot_enabled()
51 if (access(PATH_LOCKDOWN, F_OK) != 0) { in tst_lockdown_enabled()
/third_party/mindspore/mindspore/lite/src/common/
Dfile_utils.cc33 #define F_OK 0 macro
141 if (AccessFile(file_path->substr(0, i + 1), F_OK) != 0) { in CreateOutputDir()
152 if (AccessFile(*file_path, F_OK) != 0) { in CreateOutputDir()
162 while (AccessFile((*file_path + "/" + std::to_string(count)), F_OK) == 0) { in CreateOutputDir()
/third_party/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()
/third_party/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()
/third_party/musl/libc-test/src/functionalext/supplement/stat/
Dmkdirat.c32 if (access("aa", F_OK) == 0) { in mkdirat_0100()
47 if (access("bb", F_OK) == 0) { in mkdirat_0200()
Dmkdir.c31 if (access(path, F_OK) != 0) { in mkdir_0100()
52 if (access(path, F_OK) == 0) { in mkdir_0200()
/third_party/libsnd/src/
Dsf_unistd.h44 #ifndef F_OK
45 #define F_OK 0 /* Test for existence. */ macro

12345678910