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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node_mem.h

Issue 16232016: [NaCl SDK] nacl_io: big refactor to return error value (errno). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge master, fix windows Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/mount_node_mem.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_mem.h b/native_client_sdk/src/libraries/nacl_io/mount_node_mem.h
index 07acfe16d72c9be9c4a5f583e9ef5b47686bded8..6457014293c6b717ed7646a969cc5a08ee5251a0 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node_mem.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_mem.h
@@ -16,9 +16,12 @@ class MountNodeMem : public MountNode {
public:
// Normal read/write operations on a file
- virtual int Read(size_t offs, void* buf, size_t count);
- virtual int Write(size_t offs, const void* buf, size_t count);
- virtual int FTruncate(off_t size);
+ virtual Error Read(size_t offs, void* buf, size_t count, int* out_bytes);
+ virtual Error Write(size_t offs,
+ const void* buf,
+ size_t count,
+ int* out_bytes);
+ virtual Error FTruncate(off_t size);
private:
char* data_;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_node_http.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_node_mem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698