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

Unified Diff: libraries/nacl-mounts/base/KernelProxy.cc

Issue 10377102: Added simplest device mount implementation (includes NullDevice and RandomDevice) (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: Created 8 years, 7 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: libraries/nacl-mounts/base/KernelProxy.cc
===================================================================
--- libraries/nacl-mounts/base/KernelProxy.cc (revision 580)
+++ libraries/nacl-mounts/base/KernelProxy.cc (working copy)
@@ -7,6 +7,7 @@
#include <list>
#include <utility>
#include "../console/ConsoleMount.h"
+#include "../dev/DevMount.h"
#include "KernelProxy.h"
#include "MountManager.h"
@@ -25,6 +26,9 @@
// Setup file descriptors 0, 1, and 2 for STDIN, STDOUT, and STDERR
int ret = mkdir("/dev", 0777);
assert(ret == 0);
+ DevMount* dev_mount = new DevMount();
+ ret = mm_.AddMount(dev_mount, "/dev");
+ assert(ret == 0);
ret = mkdir("/dev/fd", 0777);
assert(ret == 0);
ConsoleMount *console_mount = new ConsoleMount();
« no previous file with comments | « no previous file | libraries/nacl-mounts/console/terminal_stubs.c » ('j') | libraries/nacl-mounts/dev/DevMount.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698