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

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

Issue 565763002: Plumbing though mode parameter to open, since fusefs can make use of it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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/filesystem.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/filesystem.cc b/native_client_sdk/src/libraries/nacl_io/filesystem.cc
index feda1e76575eea3d08d1cabeb7fd9d0e180d7187..2577a3a311f3556c5a46972107b560a03b2f3508 100644
--- a/native_client_sdk/src/libraries/nacl_io/filesystem.cc
+++ b/native_client_sdk/src/libraries/nacl_io/filesystem.cc
@@ -39,6 +39,12 @@ Error Filesystem::Init(const FsInitArgs& args) {
void Filesystem::Destroy() {
}
+Error Filesystem::Open(const Path& path,
+ int open_flags,
+ ScopedNode* out_node) {
+ return OpenWithMode(path, open_flags, 0666, out_node);
+}
+
Error Filesystem::OpenResource(const Path& path, ScopedNode* out_node) {
out_node->reset(NULL);
LOG_TRACE("Can't open resource: %s", path.Join().c_str());
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/filesystem.h ('k') | native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698