Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / libraries / nacl_io / node.h
index 54b513a..90197a8 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "nacl_io/error.h"
 #include "nacl_io/event_listener.h"
+#include "nacl_io/log.h"
 #include "nacl_io/osdirent.h"
 #include "nacl_io/osstat.h"
 #include "nacl_io/ostermios.h"
@@ -21,6 +22,7 @@
 #define S_IRALL (S_IRUSR | S_IRGRP | S_IROTH)
 #define S_IWALL (S_IWUSR | S_IWGRP | S_IWOTH)
 #define S_IXALL (S_IXUSR | S_IXGRP | S_IXOTH)
+#define S_MODEBITS 07777
 
 namespace nacl_io {
 
@@ -88,17 +90,22 @@ class Node : public sdk_util::RefObject {
   virtual Error Tcgetattr(struct termios* termios_p);
   virtual Error Tcsetattr(int optional_actions,
                           const struct termios* termios_p);
+  virtual Error Futimens(const struct timespec times[2]);
+  virtual Error Fchmod(mode_t mode);
 
   virtual int GetLinks();
   virtual int GetMode();
+  virtual void SetMode(int mode);
   virtual int GetType();
   virtual void SetType(int type);
   // Assume that |out_size| is non-NULL.
-  virtual Error GetSize(size_t* out_size);
+  virtual Error GetSize(off_t* out_size);
+  // Returns 0 if node is a TTY
+  virtual Error Isatty();
+
   virtual bool IsaDir();
   virtual bool IsaFile();
   virtual bool IsaSock();
-  virtual bool IsaTTY();
 
   // Number of children for this node (directory)
   virtual int ChildCount();