Home
last modified time | relevance | path

Searched refs:W_OK (Results 1 – 25 of 119) sorted by relevance

12345

/third_party/ltp/testcases/kernel/syscalls/access/
Daccess01.c39 {FNAME_RWX, W_OK, "W_OK", 0, 3},
42 {FNAME_RWX, R_OK|W_OK, "R_OK|W_OK", 0, 3},
44 {FNAME_RWX, W_OK|X_OK, "W_OK|X_OK", 0, 3},
45 {FNAME_RWX, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", 0, 3},
48 {FNAME_W, W_OK, "W_OK", 0, 3},
52 {FNAME_R, W_OK, "W_OK", EACCES, 1},
56 {FNAME_X, W_OK, "W_OK", EACCES, 1},
58 {FNAME_R, W_OK|X_OK, "W_OK|X_OK", EACCES, 3},
60 {FNAME_R, R_OK|W_OK, "R_OK|W_OK", EACCES, 1},
61 {FNAME_R, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", EACCES, 3},
[all …]
Daccess02.c49 {FNAME_W, W_OK, "W_OK", FNAME_W},
53 {SNAME_W, W_OK, "W_OK", FNAME_W},
102 case W_OK: in access_test()
Daccess04.c52 {"", W_OK, ENOENT},
56 {MNT_POINT, W_OK, EROFS}
Daccess03.c25 {(void *)-1, W_OK, "W_OK"},
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dfaccessat.c85 int isWrite = faccessat(fd, ptr, W_OK, 0); in faccessat_0400()
137 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0); in faccessat_0700()
154 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0); in faccessat_0800()
190 int isExecute = faccessat(AT_FDCWD, ptr, R_OK | W_OK | X_OK, AT_EACCESS); in faccessat_1000()
208 int isExecute = faccessat(AT_FDCWD, ptr, R_OK | W_OK | X_OK, AT_EACCESS); in faccessat_1100()
Daccess.c123 int isWrite = access(ptr, W_OK); in access_0600()
/third_party/libsnd/src/
Dsf_unistd.h32 #ifndef W_OK
33 #define W_OK 2 /* Test for write permission. */ macro
/third_party/node/test/parallel/
Dtest-fs-access.js68 assert.strictEqual(typeof fs.W_OK, 'number');
114 fs.access(readOnlyFile, fs.W_OK, common.mustCall(expectedError));
115 fs.promises.access(readOnlyFile, fs.W_OK)
156 const mode = fs.F_OK | fs.R_OK | fs.W_OK;
/third_party/protobuf/src/google/protobuf/io/
Dio_win32_unittest.cc303 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()
Dio_win32.h119 #ifndef W_OK
120 #define W_OK 02 // not defined by MSVC for whatever reason macro
/third_party/skia/build/fuchsia/
Dupdate_fuchsia_sdk94 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/openssl/
De_os.h215 # ifndef W_OK
216 # define W_OK 2 macro
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c68 if (access(path, R_OK | W_OK)) in check_path()
145 if (!access("/proc/sys/vm/stat_refresh", W_OK)) in setup()
/third_party/node/deps/npm/lib/install/
Dwritable.js22 fs.access(dir, fs.W_OK, done)
/third_party/ltp/lib/
Dtst_wallclock.c75 ret = access(localtime, F_OK | W_OK); in tst_wallclock_restore()
/third_party/toybox/toys/posix/
Drm.c39 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm()
/third_party/e2fsprogs/misc/
Dfuse2fs.c346 #ifndef W_OK
347 # define W_OK 2 macro
641 if ((mask & W_OK) && !fs_writeable(fs)) in check_inum_access()
651 (mask & R_OK ? "r" : ""), (mask & W_OK ? "w" : ""), in check_inum_access()
660 if ((mask & W_OK) && in check_inum_access()
944 ret = check_inum_access(fs, parent, W_OK); in op_mknod()
1075 ret = check_inum_access(fs, parent, W_OK); in op_mkdir()
1194 ret = check_inum_access(fs, dir, W_OK); in unlink_file_by_name()
1458 ret = check_inum_access(fs, parent, W_OK); in op_symlink()
1620 ret = check_inum_access(fs, from_dir_ino, W_OK); in op_rename()
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
Dwin_tool.py99 if not os.access(path, os.W_OK):
104 if not os.access(dest, os.W_OK):
/third_party/node/tools/gyp/pylib/gyp/
Dwin_tool.py102 if not os.access(path, os.W_OK):
108 if not os.access(dest, os.W_OK):
/third_party/libuv/include/uv/
Dwin.h660 #ifndef W_OK
661 #define W_OK 2 macro
/third_party/musl/porting/liteos_a/kernel/include/
Dfcntl.h120 #define W_OK 2 macro
/third_party/musl/porting/uniproton/kernel/include/
Dfcntl.h117 #define W_OK 2 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dfcntl.h117 #define W_OK 2 macro
/third_party/musl/porting/linux/user/include/
Dfcntl.h118 #define W_OK 2 macro
/third_party/toybox/porting/liteos_a/toys/posix/
Drm.c89 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm()

12345