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

Unified Diff: native_client_sdk/src/libraries/nacl_io/devfs/dev_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, 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
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/devfs/jspipe_event_emitter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc b/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
index a88021dad2ca29efe1f9ed613e91e4d917d552a3..9b50c90f8055a82ab58b8a8740cc5fa5043b2987 100644
--- a/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc
@@ -159,7 +159,9 @@ Error RealNode::Write(const HandleAttr& attr,
return 0;
}
-Error RealNode::GetStat(struct stat* stat) { return _real_fstat(fd_, stat); }
+Error RealNode::GetStat(struct stat* stat) {
+ return _real_fstat(fd_, stat);
+}
Error NullNode::Read(const HandleAttr& attr,
void* buf,
@@ -178,7 +180,8 @@ Error NullNode::Write(const HandleAttr& attr,
}
ConsoleNode::ConsoleNode(Filesystem* filesystem, PP_LogLevel level)
- : CharNode(filesystem), level_(level) {}
+ : CharNode(filesystem), level_(level) {
+}
Error ConsoleNode::Write(const HandleAttr& attr,
const void* buf,
@@ -317,15 +320,25 @@ Error DevFs::Open(const Path& path, int open_flags, ScopedNode* out_node) {
return error;
}
-Error DevFs::Unlink(const Path& path) { return EPERM; }
+Error DevFs::Unlink(const Path& path) {
+ return EPERM;
+}
-Error DevFs::Mkdir(const Path& path, int permissions) { return EPERM; }
+Error DevFs::Mkdir(const Path& path, int permissions) {
+ return EPERM;
+}
-Error DevFs::Rmdir(const Path& path) { return EPERM; }
+Error DevFs::Rmdir(const Path& path) {
+ return EPERM;
+}
-Error DevFs::Remove(const Path& path) { return EPERM; }
+Error DevFs::Remove(const Path& path) {
+ return EPERM;
+}
-Error DevFs::Rename(const Path& path, const Path& newpath) { return EPERM; }
+Error DevFs::Rename(const Path& path, const Path& newpath) {
+ return EPERM;
+}
Error DevFs::CreateFsNode(Filesystem* other_fs) {
int dev = other_fs->dev();
@@ -342,8 +355,8 @@ Error DevFs::DestroyFsNode(Filesystem* other_fs) {
return fs_dir_->RemoveChild(path);
}
-
-DevFs::DevFs() {}
+DevFs::DevFs() {
+}
#define INITIALIZE_DEV_NODE(path, klass) \
new_node = ScopedNode(new klass(this)); \
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/devfs/jspipe_event_emitter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698