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

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: Created 7 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 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 a047125085f7eaaa1715ef2be8b390e089f7df03..379c28751b4b0e785ade8d6e87423b19b8ec9a4e 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 "utils/macros.h"
#include "utils/ref_object.h"
@@ -19,13 +20,13 @@ 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);
+ KernelHandle(Mount* mnt, MountNode* node);
- off_t Seek(off_t offset, int whence);
+ Error Init(int open_flags);
+ Error Seek(off_t offset, int whence, off_t* out_offset);
Mount* mount_;
MountNode* node_;
- int mode_;
size_t offs_;
private:

Powered by Google App Engine
This is Rietveld 408576698