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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/mount_node.cc

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync again Created 8 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/mount_node.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount_node.cc b/native_client_sdk/src/libraries/nacl_mounts/mount_node.cc
index 10126049aaa12ba451212661bb084a0eeca857a8..aea6bfad436ea41899654e5aef298d90c98bd6bb 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/mount_node.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/mount_node.cc
@@ -2,16 +2,16 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#include "nacl_mounts/mount_node.h"
-#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
+#include <string.h>
#include <sys/stat.h>
#include <string>
-#include "auto_lock.h"
-#include "mount.h"
-#include "mount_node.h"
+#include "nacl_mounts/mount.h"
+#include "utils/auto_lock.h"
MountNode::MountNode(Mount* mount, int ino, int dev)
: mount_(mount) {
@@ -74,7 +74,7 @@ int MountNode::GetLinks() const {
}
int MountNode::GetMode() const {
- return stat_.st_mode & ~_S_IFMT;
+ return stat_.st_mode & ~S_IFMT;
}
size_t MountNode::GetSize() const {
@@ -82,19 +82,19 @@ size_t MountNode::GetSize() const {
}
int MountNode::GetType() const {
- return stat_.st_mode & _S_IFMT;
+ return stat_.st_mode & S_IFMT;
}
bool MountNode::IsaDir() const {
- return (stat_.st_mode & _S_IFDIR) != 0;
+ return (stat_.st_mode & S_IFDIR) != 0;
}
bool MountNode::IsaFile() const {
- return (stat_.st_mode & _S_IFREG) != 0;
+ return (stat_.st_mode & S_IFREG) != 0;
}
bool MountNode::IsaTTY() const {
- return (stat_.st_mode & _S_IFCHR) != 0;
+ return (stat_.st_mode & S_IFCHR) != 0;
}
@@ -127,4 +127,3 @@ void MountNode::Unlink() {
stat_.st_nlink--;
Release();
}
-
« no previous file with comments | « native_client_sdk/src/libraries/nacl_mounts/mount_node.h ('k') | native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698