Home
last modified time | relevance | path

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

1234

/external/ltp/testcases/kernel/syscalls/access/
Daccess01.c58 {FNAME_RWX, W_OK, "W_OK", 0, 3},
61 {FNAME_RWX, R_OK|W_OK, "R_OK|W_OK", 0, 3},
63 {FNAME_RWX, W_OK|X_OK, "W_OK|X_OK", 0, 3},
64 {FNAME_RWX, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", 0, 3},
67 {FNAME_W, W_OK, "W_OK", 0, 3},
71 {FNAME_R, W_OK, "W_OK", EACCES, 1},
75 {FNAME_X, W_OK, "W_OK", EACCES, 1},
77 {FNAME_R, W_OK|X_OK, "W_OK|X_OK", EACCES, 3},
79 {FNAME_R, R_OK|W_OK, "R_OK|W_OK", EACCES, 1},
80 {FNAME_R, R_OK|W_OK|X_OK, "R_OK|W_OK|X_OK", EACCES, 3},
[all …]
Daccess02.c62 {FNAME_W, W_OK, "W_OK", FNAME_W},
66 {SNAME_W, W_OK, "W_OK", FNAME_W},
117 case W_OK: in access_test()
Daccess04.c64 {"", W_OK, ENOENT},
68 {MNT_POINT, W_OK, EROFS}
Daccess03.c44 {(void *)-1, W_OK, "W_OK"},
/external/autotest/client/profilers/powertop/src/
Dwireless.c63 if (access(rfkill_path, W_OK)) in rfkill_enabled()
83 if (access(rfkill_path, W_OK)) in check_unused_wiresless_up()
145 if (access(powersave_path, W_OK)) in need_wireless_suggest_new()
177 if (!access(pathname, W_OK)) in find_4965()
189 if (!access(pathname, W_OK)) in find_4965()
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_process_unittest.cc114 ret = open_broker.Access(kR_WhiteListed, W_OK); in TestOpenFilePerms()
116 ret = open_broker.Access(kR_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
140 ret = open_broker.Access(kR_WhiteListedButDenied, W_OK); in TestOpenFilePerms()
142 ret = open_broker.Access(kR_WhiteListedButDenied, R_OK | W_OK); in TestOpenFilePerms()
160 ret = open_broker.Access(kW_WhiteListed, W_OK); in TestOpenFilePerms()
162 ret = open_broker.Access(kW_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
179 ret = open_broker.Access(kRW_WhiteListed, W_OK); in TestOpenFilePerms()
181 ret = open_broker.Access(kRW_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
198 ret = open_broker.Access(k_NotWhitelisted, W_OK); in TestOpenFilePerms()
200 ret = open_broker.Access(k_NotWhitelisted, R_OK | W_OK); in TestOpenFilePerms()
[all …]
Dbroker_file_permission.cc85 if (mode != F_OK && mode & ~(R_OK | W_OK)) { in CheckAccess()
105 case W_OK: in CheckAccess()
109 case R_OK | W_OK: in CheckAccess()
Dbroker_file_permission_unittest.cc98 ASSERT_FALSE(perm.CheckAccess(path, W_OK, NULL)); in CheckPerm()
105 ASSERT_TRUE(perm.CheckAccess(path, W_OK, NULL)); in CheckPerm()
112 ASSERT_TRUE(perm.CheckAccess(path, W_OK, NULL)); in CheckPerm()
/external/strace/xlat/
Daccess_flags.h17 #if defined(W_OK) || (defined(HAVE_DECL_W_OK) && HAVE_DECL_W_OK)
18 XLAT(W_OK),
Daccess_flags.in3 W_OK
/external/googletest/googletest/include/gtest/internal/custom/
Dgtest.h50 if (access("/data/local/tmp", R_OK | W_OK | X_OK) == 0) return "/data/local/tmp/"; in GetAndroidTempDir()
/external/strace/tests/
Daccess.c18 rc = syscall(__NR_access, sample, R_OK|W_OK|X_OK); in main()
/external/strace/tests-mx32/
Daccess.c18 rc = syscall(__NR_access, sample, R_OK|W_OK|X_OK); in main()
/external/strace/tests-m32/
Daccess.c18 rc = syscall(__NR_access, sample, R_OK|W_OK|X_OK); in main()
/external/avb/test/
Davbtool_signing_helper_test.py58 if os.path.isfile(test_file_name) and not os.access(test_file_name, os.W_OK):
Davbtool_signing_helper_with_files_test.py55 if os.path.isfile(test_file_name) and not os.access(test_file_name, os.W_OK):
/external/python/cpython2/Lib/
Dtempfile.py211 _os.path.isdir(dir) and _os.access(dir, _os.W_OK)):
251 _os.path.isdir(dir) and _os.access(dir, _os.W_OK)):
345 _os.path.isdir(dir) and _os.access(dir, _os.W_OK)):
/external/libcups/cups/
Dtempfile.c74 if ((tmpdir = getenv("TMPDIR")) != NULL && access(tmpdir, W_OK)) in cupsTempFd()
/external/ltp/testcases/kernel/syscalls/setpriority/
Dsetpriority01.c119 if (eaccess("/etc/passwd", W_OK)) in setup()
/external/toybox/toys/posix/
Drm.c39 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm()
/external/python/cpython2/Mac/Tools/
Dfixapplepython23.py115 if do_apply and not os.access(MAKEFILE, os.W_OK):
/external/e2fsprogs/misc/
Dfuse2fs.c337 #ifndef W_OK
338 # define W_OK 2 macro
631 if ((mask & W_OK) && !fs_writeable(fs)) in check_inum_access()
641 (mask & R_OK ? "r" : ""), (mask & W_OK ? "w" : ""), in check_inum_access()
650 if ((mask & W_OK) && in check_inum_access()
950 ret = check_inum_access(fs, parent, W_OK); in op_mknod()
1078 ret = check_inum_access(fs, parent, W_OK); in op_mkdir()
1195 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()
1618 ret = check_inum_access(fs, from_dir_ino, W_OK); in op_rename()
[all …]
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_util.py15 if not os.access(path, os.W_OK):
/external/python/cpython2/Lib/plat-mac/
Dmacresource.py126 os.access(os.path.dirname(pathname), os.W_OK|os.X_OK):
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c54 if (access(path, R_OK | W_OK)) in check_path()

1234