Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1673)

Unified Diff: native_client_sdk/src/libraries/nacl_io/dir_node.cc

Issue 604513002: [NaCl SDK] nacl_io: Add chmod/fchmod (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/dir_node.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/dir_node.cc b/native_client_sdk/src/libraries/nacl_io/dir_node.cc
index e16c0c7d173630bfa654d763632b7147079b6892..6cf0656d04365c5107f75711dc3c7970c5f2d323 100644
--- a/native_client_sdk/src/libraries/nacl_io/dir_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/dir_node.cc
@@ -69,6 +69,12 @@ Error DirNode::GetDents(size_t offs,
return cache_.GetDents(offs, pdir, size, out_bytes);
}
+Error DirNode::Fchmod(mode_t mode) {
+ AUTO_LOCK(node_lock_);
+ SetMode(mode);
+ return 0;
Sam Clegg 2014/09/24 20:48:28 Could we not just put this in the Nade base class?
binji 2014/09/24 21:30:50 I thought about that. It made more sense to me to
+}
+
Error DirNode::AddChild(const std::string& name, const ScopedNode& node) {
AUTO_LOCK(node_lock_);

Powered by Google App Engine
This is Rietveld 408576698