Home
last modified time | relevance | path

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

12

/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.cc113 ret = open_broker.Access(kR_WhiteListed, W_OK); in TestOpenFilePerms()
115 ret = open_broker.Access(kR_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
139 ret = open_broker.Access(kR_WhiteListedButDenied, W_OK); in TestOpenFilePerms()
141 ret = open_broker.Access(kR_WhiteListedButDenied, R_OK | W_OK); in TestOpenFilePerms()
159 ret = open_broker.Access(kW_WhiteListed, W_OK); in TestOpenFilePerms()
161 ret = open_broker.Access(kW_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
178 ret = open_broker.Access(kRW_WhiteListed, W_OK); in TestOpenFilePerms()
180 ret = open_broker.Access(kRW_WhiteListed, R_OK | W_OK); in TestOpenFilePerms()
197 ret = open_broker.Access(k_NotWhitelisted, W_OK); in TestOpenFilePerms()
199 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/toybox/toys/posix/
Drm.c39 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm()
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_util.py15 if not os.access(path, os.W_OK):
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/
Dcustomhandlers.py141 if not os.access(self.screenshot_dir, os.W_OK):
Dhttparchive.py451 if not os.access(filename, os.W_OK):
453 elif not os.access(persist_dir, os.W_OK):
/external/e2fsprogs/lib/blkid/
Dsave.c80 (ret == 0 && access(filename, W_OK) < 0)) { in blkid_flush_cache()
/external/skia/src/ports/
DSkOSFile_posix.cpp28 mode |= W_OK; in sk_exists()
/external/chromium-trace/catapult/systrace/systrace/agents/
Dftrace_agent.py26 return os.access(path, os.W_OK)
/external/ImageMagick/MagickCore/
Dnt-base.h53 #define W_OK 2 macro
/external/boringssl/src/util/bot/go/
Dbootstrap.py109 if not os.access(path, os.W_OK):
/external/selinux/libsemanage/src/
Dsemanage_store.c515 int mode_mask = R_OK | W_OK | X_OK; in semanage_create_store()
601 if (!S_ISREG(sb.st_mode) || access(path, R_OK | W_OK) == -1) { in semanage_create_store()
638 if (access(path, R_OK | W_OK | X_OK) != 0) { in semanage_store_access_check()
648 if (access(path, R_OK | W_OK | X_OK) != 0) in semanage_store_access_check()
/external/e2fsprogs/e2fsck/
Ddirinfo.c54 if (!enable || !tdb_dir || access(tdb_dir, W_OK) || in setup_tdb()
/external/libxml2/
DdebugXML.c2520 #ifdef W_OK in xmlShellWrite()
2521 if (access((char *) filename, W_OK)) { in xmlShellWrite()
2589 #ifdef W_OK in xmlShellSave()
2590 if (access((char *) filename, W_OK)) { in xmlShellSave()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c508 access_ret = access(UUIDD_DIR, W_OK); in get_uuid_via_daemon()
/external/autotest/client/common_lib/
Dbase_job_unittest.py322 self.assert_(not os.access('testing9', os.W_OK))
329 self.assert_(not os.access('testing10', os.W_OK))
342 self.assert_(os.access(jd.path, os.W_OK))
/external/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface.cc79 #ifndef W_OK
80 #define W_OK 02 // not defined by MSVC for whatever reason macro
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_vs_real_test.py110 self.assertTrue(os.access(self.real_base, os.W_OK))
Dfake_filesystem_test.py494 self.rwx = self.os.R_OK | self.os.W_OK | self.os.X_OK
495 self.rw = self.os.R_OK | self.os.W_OK
1211 self.assertTrue(self.os.access(path, self.os.W_OK))
1224 self.assertTrue(self.os.access(path, self.os.W_OK))
1238 self.assertFalse(self.os.access(path, self.os.W_OK))
1250 self.assertFalse(self.os.access(path, self.os.W_OK))
/external/libchrome/base/files/
Dfile_util_posix.cc377 return access(path.value().c_str(), W_OK) == 0; in PathIsWritable()
/external/mksh/src/
Dfuncs.c367 if ((fd = coproc_getfd(W_OK, &emsg)) < 0) { in c_print()
387 else if ((fd = check_fd(s, W_OK, &emsg)) < 0) { in c_print()
3060 return (access(opnd1, W_OK) == 0); in test_eval()

12