/third_party/ltp/testcases/kernel/syscalls/access/ |
H A D | access01.c | 11 * Basic test for access(2) using F_OK, R_OK, W_OK and X_OK 44 {FNAME_RWX, W_OK, "W_OK", 0, 3}, 47 {FNAME_RWX, R_OK|W_OK, "R_OK|W_OK", 0, 3}, 49 {FNAME_RWX, W_OK|X_OK, "W_OK|X_OK", 0, 3}, 50 {FNAME_RWX, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", 0, 3}, 53 {FNAME_W, W_OK, "W_O [all...] |
H A D | access02.c | 14 * - check the existence or read/write/execute permissions on a file (mode argument: F_OK/R_OK/W_OK/X_OK) 47 {FNAME_W, W_OK, "W_OK", FNAME_W}, 51 {SNAME_W, W_OK, "W_OK", FNAME_W}, 100 case W_OK: in access_test()
|
H A D | access04.c | 59 {&empty_fname, W_OK, ENOENT}, 63 {&mnt_point, W_OK, EROFS}
|
H A D | access03.c | 28 {(void *)-1, W_OK, "W_OK"},
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | faccessat.c | 78 * @tc.desc : The test file has write permission, and amode is W_OK. 87 int isWrite = faccessat(fd, ptr, W_OK, 0); in faccessat_0400() 132 * @tc.desc : The test file has read, write and executable permissions, and amode is R_OK|W_OK|X_Ok. 141 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0); in faccessat_0700() 149 * @tc.desc : The test file does not have read/write executable permission, and amode is R_OK|W_OK|X_OK. 158 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0); in faccessat_0800() 185 * and amode is R_OK|W_OK|X_OK. 194 int isExecute = faccessat(AT_FDCWD, ptr, R_OK | W_OK | X_OK, AT_EACCESS); in faccessat_1000() 203 * and amode is R_OK|W_OK|X_OK. 212 int isExecute = faccessat(AT_FDCWD, ptr, R_OK | W_OK | X_O in faccessat_1100() [all...] |
/third_party/libsnd/src/ |
H A D | sf_unistd.h | 32 #ifndef W_OK 33 #define W_OK 2 /* Test for write permission. */ macro
|
/third_party/node/test/parallel/ |
H A D | test-fs-access.js | 35 // On non-Windows supported platforms, fs.access(readOnlyFile, W_OK, ...) 69 assert.strictEqual(typeof fs.W_OK, 'number'); 115 fs.access(readOnlyFile, fs.W_OK, common.mustCall(expectedError)); 116 fs.promises.access(readOnlyFile, fs.W_OK) 157 const mode = fs.R_OK | fs.W_OK;
|
/third_party/protobuf/src/google/protobuf/io/ |
H A D | io_win32_unittest.cc | 303 EXPECT_EQ(access(path.c_str(), W_OK), 0); in TEST_F() 304 EXPECT_EQ(access(file.c_str(), F_OK | W_OK), 0); in TEST_F() 306 EXPECT_NE(access((file + ".blah").c_str(), W_OK), 0); in TEST_F() 309 EXPECT_EQ(access(".", W_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() 315 EXPECT_NE(access("io_win32_unittest.AccessTest.nonexistent", W_OK), 0); in TEST_F()
|
H A D | io_win32.h | 119 #ifndef W_OK 120 #define W_OK 02 // not defined by MSVC for whatever reason macro
|
/third_party/skia/build/fuchsia/ |
H A D | update_fuchsia_sdk | 94 if (not os.access(sdk_dir, os.W_OK)) or (not os.path.isdir(sdk_dir)): 96 if (not os.access(clang_dir, os.W_OK)) or (not os.path.isdir(clang_dir)):
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
H A D | madvise06.c | 65 if (access(path, R_OK | W_OK)) in check_path() 139 if (!access("/proc/sys/vm/stat_refresh", W_OK)) in setup()
|
/third_party/openssl/ohos_lite/ |
H A D | e_os.h | 215 # ifndef W_OK 216 # define W_OK 2 macro
|
/third_party/ltp/testcases/cve/ |
H A D | cve-2022-4378.c | 52 if (access(tc->path, W_OK)) { in run()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_unistd.cpp | 270 benchmark::DoNotOptimize(access(filename, W_OK)); in Bm_function_Access_write() 457 int mode = F_OK | R_OK | W_OK | X_OK; in Bm_function_Faccessat_Normal() 468 int mode = F_OK | R_OK | W_OK | X_OK; in Bm_function_Faccessat_Nofollow()
|
/third_party/ltp/lib/ |
H A D | tst_wallclock.c | 75 ret = access(localtime, F_OK | W_OK); in tst_wallclock_restore()
|
H A D | tst_sys_conf.c | 75 if (access(conf->path, W_OK) != 0) { in tst_sys_conf_save()
|
/third_party/toybox/toys/posix/ |
H A D | rm.c | 39 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm()
|
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | win_tool.py | 100 if not os.access(path, os.W_OK): 106 if not os.access(dest, os.W_OK):
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | win_tool.py | 100 if not os.access(path, os.W_OK): 106 if not os.access(dest, os.W_OK):
|
/third_party/node/deps/openssl/openssl/ |
H A D | e_os.h | 162 # ifndef W_OK 163 # define W_OK 2 macro
|
/third_party/openssl/ |
H A D | e_os.h | 162 # ifndef W_OK 163 # define W_OK 2 macro
|
/third_party/python/Lib/ |
H A D | tempfile.py | 218 _os.access(dir, _os.W_OK)): 263 _os.access(dir, _os.W_OK)): 391 _os.access(dir, _os.W_OK)):
|
/third_party/musl/porting/linux/user/include/ |
H A D | fcntl.h | 118 #define W_OK 2 macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | fcntl.h | 117 #define W_OK 2 macro
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | fcntl.h | 117 #define W_OK 2 macro
|