| OLD | NEW |
| 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 #ifndef LIBRARIES_NACL_IO_NODE_H_ | 5 #ifndef LIBRARIES_NACL_IO_NODE_H_ |
| 6 #define LIBRARIES_NACL_IO_NODE_H_ | 6 #define LIBRARIES_NACL_IO_NODE_H_ |
| 7 | 7 |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual Error Tcflush(int queue_selector); | 87 virtual Error Tcflush(int queue_selector); |
| 88 virtual Error Tcgetattr(struct termios* termios_p); | 88 virtual Error Tcgetattr(struct termios* termios_p); |
| 89 virtual Error Tcsetattr(int optional_actions, | 89 virtual Error Tcsetattr(int optional_actions, |
| 90 const struct termios* termios_p); | 90 const struct termios* termios_p); |
| 91 | 91 |
| 92 virtual int GetLinks(); | 92 virtual int GetLinks(); |
| 93 virtual int GetMode(); | 93 virtual int GetMode(); |
| 94 virtual int GetType(); | 94 virtual int GetType(); |
| 95 virtual void SetType(int type); | 95 virtual void SetType(int type); |
| 96 // Assume that |out_size| is non-NULL. | 96 // Assume that |out_size| is non-NULL. |
| 97 virtual Error GetSize(size_t* out_size); | 97 virtual Error GetSize(off_t* out_size); |
| 98 // Returns 0 if node is a TTY | 98 // Returns 0 if node is a TTY |
| 99 virtual Error Isatty(); | 99 virtual Error Isatty(); |
| 100 | 100 |
| 101 virtual bool IsaDir(); | 101 virtual bool IsaDir(); |
| 102 virtual bool IsaFile(); | 102 virtual bool IsaFile(); |
| 103 virtual bool IsaSock(); | 103 virtual bool IsaSock(); |
| 104 | 104 |
| 105 // Number of children for this node (directory) | 105 // Number of children for this node (directory) |
| 106 virtual int ChildCount(); | 106 virtual int ChildCount(); |
| 107 | 107 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 137 friend class Filesystem; | 137 friend class Filesystem; |
| 138 friend class FuseFs; | 138 friend class FuseFs; |
| 139 friend class Html5Fs; | 139 friend class Html5Fs; |
| 140 friend class HttpFs; | 140 friend class HttpFs; |
| 141 friend class MemFs; | 141 friend class MemFs; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace nacl_io | 144 } // namespace nacl_io |
| 145 | 145 |
| 146 #endif // LIBRARIES_NACL_IO_NODE_H_ | 146 #endif // LIBRARIES_NACL_IO_NODE_H_ |
| OLD | NEW |