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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_object.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_object.h
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_object.h b/native_client_sdk/src/libraries/nacl_io/kernel_object.h
index 97b197f80513b07d9644bda8a9301d88781a0d50..15105f3aa3a4b8d03ca7745d1170ed6831430448 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_object.h
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_object.h
@@ -29,11 +29,13 @@ class KernelObject {
virtual ~KernelObject();
// Find the mount for the given path, and acquires it
- Mount* AcquireMountAndPath(const std::string& relpath, Path *pobj);
+ int AcquireMountAndPath(const std::string& relpath,
noelallen1 2013/06/07 21:48:43 Error?
binji 2013/06/07 23:23:11 Done.
+ Mount** mount,
+ Path* pobj);
void ReleaseMount(Mount* mnt);
// Convert from FD to KernelHandle, and acquire the handle.
- KernelHandle* AcquireHandle(int fd);
+ int AcquireHandle(int fd, KernelHandle** handle);
noelallen1 2013/06/07 21:48:43 Error?
binji 2013/06/07 23:23:11 Done.
void ReleaseHandle(KernelHandle* handle);
// Allocate a new fd and assign the handle to it, while

Powered by Google App Engine
This is Rietveld 408576698