/third_party/ltp/testcases/kernel/syscalls/access/ |
D | access01.c | 37 {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 …]
|
D | access02.c | 47 {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/ |
D | link.c | 32 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()
|
D | linkat.c | 40 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()
|
D | access.c | 36 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/ |
D | test-fs-access.js | 66 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/ |
D | mountns02.c | 58 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()
|
D | mountns03.c | 71 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/ |
D | unlinkat01.c | 56 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/ |
D | io_win32_unittest.cc | 301 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/ |
D | ksm01.c | 69 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()
|
D | ksm03.c | 71 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()
|
D | ksm04.c | 89 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()
|
D | ksm02.c | 90 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/ |
D | fanotify17.c | 162 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/ |
D | tst_module.c | 35 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_()
|
D | tst_virt.c | 54 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()
|
D | tst_hugepage.c | 17 if (access(PATH_HUGEPAGES, F_OK)) in tst_get_hugepage_size() 27 if (access(PATH_HUGEPAGES, F_OK)) { in tst_request_hugepages()
|
D | tst_lockdown.c | 24 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/ |
D | file_utils.cc | 33 #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/ |
D | splice.h | 29 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/ |
D | getxattr05.c | 103 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/ |
D | mkdirat.c | 32 if (access("aa", F_OK) == 0) { in mkdirat_0100() 47 if (access("bb", F_OK) == 0) { in mkdirat_0200()
|
D | mkdir.c | 31 if (access(path, F_OK) != 0) { in mkdir_0100() 52 if (access(path, F_OK) == 0) { in mkdir_0200()
|
/third_party/libsnd/src/ |
D | sf_unistd.h | 44 #ifndef F_OK 45 #define F_OK 0 /* Test for existence. */ macro
|