Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/node.h

Issue 269593011: [NaCl SDK] Modifying size_t and int to off_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698