| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 int flags, | 85 int flags, |
| 86 size_t offset, | 86 size_t offset, |
| 87 void** out_addr); | 87 void** out_addr); |
| 88 virtual Error Tcflush(int queue_selector); | 88 virtual Error Tcflush(int queue_selector); |
| 89 virtual Error Tcgetattr(struct termios* termios_p); | 89 virtual Error Tcgetattr(struct termios* termios_p); |
| 90 virtual Error Tcsetattr(int optional_actions, | 90 virtual Error Tcsetattr(int optional_actions, |
| 91 const struct termios* termios_p); | 91 const struct termios* termios_p); |
| 92 | 92 |
| 93 virtual int GetLinks(); | 93 virtual int GetLinks(); |
| 94 virtual int GetMode(); | 94 virtual int GetMode(); |
| 95 virtual void SetMode(int mode); |
| 95 virtual int GetType(); | 96 virtual int GetType(); |
| 96 virtual void SetType(int type); | 97 virtual void SetType(int type); |
| 97 // Assume that |out_size| is non-NULL. | 98 // Assume that |out_size| is non-NULL. |
| 98 virtual Error GetSize(off_t* out_size); | 99 virtual Error GetSize(off_t* out_size); |
| 99 // Returns 0 if node is a TTY | 100 // Returns 0 if node is a TTY |
| 100 virtual Error Isatty(); | 101 virtual Error Isatty(); |
| 101 | 102 |
| 102 virtual bool IsaDir(); | 103 virtual bool IsaDir(); |
| 103 virtual bool IsaFile(); | 104 virtual bool IsaFile(); |
| 104 virtual bool IsaSock(); | 105 virtual bool IsaSock(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 friend class Filesystem; | 139 friend class Filesystem; |
| 139 friend class FuseFs; | 140 friend class FuseFs; |
| 140 friend class Html5Fs; | 141 friend class Html5Fs; |
| 141 friend class HttpFs; | 142 friend class HttpFs; |
| 142 friend class MemFs; | 143 friend class MemFs; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace nacl_io | 146 } // namespace nacl_io |
| 146 | 147 |
| 147 #endif // LIBRARIES_NACL_IO_NODE_H_ | 148 #endif // LIBRARIES_NACL_IO_NODE_H_ |
| OLD | NEW |