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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc

Issue 303223007: [NaCl SDK] nacl_io: Run clang-format over nacl_io sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/passthroughfs/passthrough_fs.h" 5 #include "nacl_io/passthroughfs/passthrough_fs.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "nacl_io/kernel_handle.h" 9 #include "nacl_io/kernel_handle.h"
10 #include "nacl_io/kernel_wrap_real.h" 10 #include "nacl_io/kernel_wrap_real.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 return err; 115 return err;
116 return 0; 116 return 0;
117 } 117 }
118 118
119 private: 119 private:
120 friend class PassthroughFs; 120 friend class PassthroughFs;
121 121
122 int real_fd_; 122 int real_fd_;
123 }; 123 };
124 124
125 PassthroughFs::PassthroughFs() {} 125 PassthroughFs::PassthroughFs() {
126 }
126 127
127 Error PassthroughFs::Init(const FsInitArgs& args) { 128 Error PassthroughFs::Init(const FsInitArgs& args) {
128 return Filesystem::Init(args); 129 return Filesystem::Init(args);
129 } 130 }
130 131
131 void PassthroughFs::Destroy() {} 132 void PassthroughFs::Destroy() {
133 }
132 134
133 Error PassthroughFs::Access(const Path& path, int a_mode) { 135 Error PassthroughFs::Access(const Path& path, int a_mode) {
134 // There is no underlying 'access' syscall in NaCl. It just returns ENOSYS. 136 // There is no underlying 'access' syscall in NaCl. It just returns ENOSYS.
135 return ENOSYS; 137 return ENOSYS;
136 } 138 }
137 139
138 Error PassthroughFs::Open(const Path& path, int mode, ScopedNode* out_node) { 140 Error PassthroughFs::Open(const Path& path, int mode, ScopedNode* out_node) {
139 out_node->reset(NULL); 141 out_node->reset(NULL);
140 int real_fd; 142 int real_fd;
141 int error = _real_open(path.Join().c_str(), mode, 0666, &real_fd); 143 int error = _real_open(path.Join().c_str(), mode, 0666, &real_fd);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Not implemented by NaCl. 176 // Not implemented by NaCl.
175 return ENOSYS; 177 return ENOSYS;
176 } 178 }
177 179
178 Error PassthroughFs::Rename(const Path& path, const Path& newpath) { 180 Error PassthroughFs::Rename(const Path& path, const Path& newpath) {
179 // Not implemented by NaCl. 181 // Not implemented by NaCl.
180 return ENOSYS; 182 return ENOSYS;
181 } 183 }
182 184
183 } // namespace nacl_io 185 } // namespace nacl_io
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/ostime.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