| Index: native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc b/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc
|
| index a4893ec28f6f5dd47486c43bac08bfd20fe780c8..fcc11be0863e127bfbe947567b9cf6a4917cba6c 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc
|
| @@ -6,6 +6,7 @@
|
| #include "nacl_io/mount_html5fs.h"
|
|
|
| #include <errno.h>
|
| +#include <fcntl.h>
|
| #include <ppapi/c/pp_completion_callback.h>
|
| #include <ppapi/c/pp_errors.h>
|
| #include <stdlib.h>
|
| @@ -24,6 +25,17 @@ int64_t strtoull(const char* nptr, char** endptr, int base) {
|
|
|
| } // namespace
|
|
|
| +Error MountHtml5Fs::Access(const Path& path, int a_mode) {
|
| + // a_mode is unused, since all files are readable, writable and executable.
|
| + MountNode* node;
|
| + Error error = Open(path, O_RDONLY, &node);
|
| + if (error)
|
| + return error;
|
| +
|
| + node->Release();
|
| + return 0;
|
| +}
|
| +
|
| Error MountHtml5Fs::Open(const Path& path, int mode, MountNode** out_node) {
|
| *out_node = NULL;
|
|
|
|
|