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