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: |