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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_passthrough.cc

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 #include "nacl_io/mount_passthrough.h" 5 #include "nacl_io/mount_passthrough.h"
6 #include <errno.h> 6 #include <errno.h>
7 #include "nacl_io/kernel_wrap_real.h" 7 #include "nacl_io/kernel_wrap_real.h"
8 8
9 namespace nacl_io {
10
9 class MountNodePassthrough : public MountNode { 11 class MountNodePassthrough : public MountNode {
10 public: 12 public:
11 explicit MountNodePassthrough(Mount* mount, int real_fd) 13 explicit MountNodePassthrough(Mount* mount, int real_fd)
12 : MountNode(mount), real_fd_(real_fd) {} 14 : MountNode(mount), real_fd_(real_fd) {}
13 15
14 protected: 16 protected:
15 virtual Error Init(int flags) { return 0; } 17 virtual Error Init(int flags) { return 0; }
16 18
17 virtual void Destroy() { 19 virtual void Destroy() {
18 if (real_fd_) 20 if (real_fd_)
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 151
150 Error MountPassthrough::Rmdir(const Path& path) { 152 Error MountPassthrough::Rmdir(const Path& path) {
151 return _real_rmdir(path.Join().c_str()); 153 return _real_rmdir(path.Join().c_str());
152 } 154 }
153 155
154 Error MountPassthrough::Remove(const Path& path) { 156 Error MountPassthrough::Remove(const Path& path) {
155 // Not implemented by NaCl. 157 // Not implemented by NaCl.
156 return ENOSYS; 158 return ENOSYS;
157 } 159 }
158 160
161 } // namespace nacl_io
162
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_passthrough.h ('k') | native_client_sdk/src/libraries/nacl_io/path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698