Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / libraries / nacl_io / node.cc
index 373f966..b91726f 100644 (file)
@@ -176,6 +176,14 @@ Error Node::Tcsetattr(int optional_actions, const struct termios* termios_p) {
   return EINVAL;
 }
 
+Error Node::Futimens(const struct timespec times[2]) {
+  return 0;
+}
+
+Error Node::Fchmod(mode_t mode) {
+  return EINVAL;
+}
+
 int Node::GetLinks() {
   return stat_.st_nlink;
 }
@@ -199,6 +207,12 @@ void Node::SetType(int type) {
   stat_.st_mode |= type;
 }
 
+void Node::SetMode(int mode) {
+  assert((mode & S_IFMT) == 0);
+  stat_.st_mode &= S_IFMT;
+  stat_.st_mode |= mode;
+}
+
 bool Node::IsaDir() {
   return GetType() == S_IFDIR;
 }