| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |