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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_handle.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/kernel_handle.h
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_handle.h b/native_client_sdk/src/libraries/nacl_io/kernel_handle.h
index 4695be34796a449da7f11cd78971802b188ee789..ab7b7cd6995246b49bffbda5c163801b7d044eff 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_handle.h
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_handle.h
@@ -7,6 +7,7 @@
#include <pthread.h>
+#include "nacl_io/error.h"
#include "nacl_io/ostypes.h"
#include "sdk_util/macros.h"
#include "sdk_util/ref_object.h"
@@ -19,13 +20,15 @@ class MountNode;
// KernelHandle can only be referenced when the KernelProxy lock is held.
class KernelHandle : public RefObject {
public:
- KernelHandle(Mount* mnt, MountNode* node, int oflags);
+ // Assumes |mnt| and |node| are non-NULL.
+ KernelHandle(Mount* mnt, MountNode* node);
- off_t Seek(off_t offset, int whence);
+ Error Init(int open_flags);
+ // Assumes |out_offset| is non-NULL.
+ Error Seek(off_t offset, int whence, off_t* out_offset);
Mount* mount_;
MountNode* node_;
- int mode_;
size_t offs_;
private:
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/error.h ('k') | native_client_sdk/src/libraries/nacl_io/kernel_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698