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

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

Issue 15800004: [NaCl SDK] nacl_io: Added support for access() syscall. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to HEAD. Created 7 years, 6 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/mount_passthrough.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_passthrough.cc b/native_client_sdk/src/libraries/nacl_io/mount_passthrough.cc
index 268cbea7a593bc0841317d2aeb38cb6b8bd6ce11..5e7ec8a3afbd22ba03c6e6d7b19aead166b7bf88 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_passthrough.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_passthrough.cc
@@ -108,6 +108,11 @@ Error MountPassthrough::Init(int dev,
void MountPassthrough::Destroy() {}
+Error MountPassthrough::Access(const Path& path, int a_mode) {
+ // There is no underlying 'access' syscall in NaCl. It just returns ENOSYS.
+ return ENOSYS;
+}
+
Error MountPassthrough::Open(const Path& path, int mode, MountNode** out_node) {
*out_node = NULL;

Powered by Google App Engine
This is Rietveld 408576698