| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual Error MMap(void* addr, | 82 virtual Error MMap(void* addr, |
| 83 size_t length, | 83 size_t length, |
| 84 int prot, | 84 int prot, |
| 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 virtual Error Futimens(const struct timespec times[2]); |
| 92 | 93 |
| 93 virtual int GetLinks(); | 94 virtual int GetLinks(); |
| 94 virtual int GetMode(); | 95 virtual int GetMode(); |
| 95 virtual void SetMode(int mode); | 96 virtual void SetMode(int mode); |
| 96 virtual int GetType(); | 97 virtual int GetType(); |
| 97 virtual void SetType(int type); | 98 virtual void SetType(int type); |
| 98 // Assume that |out_size| is non-NULL. | 99 // Assume that |out_size| is non-NULL. |
| 99 virtual Error GetSize(off_t* out_size); | 100 virtual Error GetSize(off_t* out_size); |
| 100 // Returns 0 if node is a TTY | 101 // Returns 0 if node is a TTY |
| 101 virtual Error Isatty(); | 102 virtual Error Isatty(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 friend class Filesystem; | 140 friend class Filesystem; |
| 140 friend class FuseFs; | 141 friend class FuseFs; |
| 141 friend class Html5Fs; | 142 friend class Html5Fs; |
| 142 friend class HttpFs; | 143 friend class HttpFs; |
| 143 friend class MemFs; | 144 friend class MemFs; |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 } // namespace nacl_io | 147 } // namespace nacl_io |
| 147 | 148 |
| 148 #endif // LIBRARIES_NACL_IO_NODE_H_ | 149 #endif // LIBRARIES_NACL_IO_NODE_H_ |
| OLD | NEW |