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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_proxy.cc

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 8 years, 5 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_mounts/kernel_proxy.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_proxy.cc b/native_client_sdk/src/libraries/nacl_mounts/kernel_proxy.cc
index 8b09e4a09c9ecffe6534687a233acb587cbba228..897e984c5dc37b67b8a0b1531576888f1d9c3ae0 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/kernel_proxy.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/kernel_proxy.cc
@@ -2,23 +2,22 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include <dirent.h>
+#include "nacl_mounts/kernel_proxy.h"
+
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
-#include <stdint.h>
-#include <sys/stat.h>
-
+#include <string.h>
#include <string>
#include "nacl_mounts/kernel_handle.h"
-#include "nacl_mounts/kernel_proxy.h"
#include "nacl_mounts/mount.h"
#include "nacl_mounts/mount_mem.h"
#include "nacl_mounts/mount_node.h"
-#include "nacl_mounts/mount_url.h"
+#include "nacl_mounts/osstat.h"
+// TODO(binji): implement MountURL
+//#include "nacl_mounts/mount_url.h"
#include "nacl_mounts/path.h"
-
#include "utils/auto_lock.h"
#include "utils/ref_object.h"
@@ -39,7 +38,8 @@ void KernelProxy::Init() {
dev_ = 1;
factories_["memfs"] = MountMem::Create;
- factories_["urlfs"] = MountURL::Create;
+ // TODO(binji): implement MountURL
+ //factories_["urlfs"] = MountURL::Create;
// Create memory mount at root
StringMap_t smap;
@@ -294,7 +294,7 @@ int KernelProxy::fstat(int fd, struct stat* buf) {
int ret = handle->node_->GetStat(buf);
ReleaseHandle(handle);
return ret;
-};
+}
int KernelProxy::getdents(int fd, void* buf, unsigned int count) {
KernelHandle* handle = AcquireHandle(fd);

Powered by Google App Engine
This is Rietveld 408576698