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

Unified Diff: native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.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: fix 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/passthroughfs/passthrough_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc b/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc
index 2858faf54dade76169f5fb9f5ca2d331b4f06e0b..abee3894e866fab547d9b777c29ce0bbe3b8280e 100644
--- a/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc
@@ -22,10 +22,11 @@ Error PassthroughFs::Init(const FsInitArgs& args) {
void PassthroughFs::Destroy() {
}
-Error PassthroughFs::Open(const Path& path, int mode, ScopedNode* out_node) {
+Error PassthroughFs::OpenWithMode(const Path& path, int open_flags,
+ mode_t mode, ScopedNode* out_node) {
out_node->reset(NULL);
int real_fd;
- int error = _real_open(path.Join().c_str(), mode, 0666, &real_fd);
+ int error = _real_open(path.Join().c_str(), open_flags, mode, &real_fd);
if (error)
return error;

Powered by Google App Engine
This is Rietveld 408576698