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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.cc

Issue 11066105: [NaCl SDK] nacl_mounts: wrap functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 years, 2 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_mounts/kernel_intercept.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.cc b/native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.cc
index d8526e8c65c9e48ac7c390638e3014e7411b6c5c..f7af9e080ec5b89831b6685291ba944f01b1f591 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.cc
@@ -14,6 +14,10 @@ void ki_init(void* kp) {
s_kp->Init();
}
+int ki_is_initialized() {
+ return s_kp != NULL;
+}
+
int ki_chdir(const char* path) {
return s_kp->chdir(path);
}
@@ -50,9 +54,11 @@ int ki_mount(const char *source, const char *target, const char *filesystemtype,
unsigned long mountflags, const void *data) {
return s_kp->mount(source, target, filesystemtype, mountflags, data);
}
+
int ki_umount(const char *path) {
return s_kp->umount(path);
}
+
int ki_open(const char *path, int oflag) {
return s_kp->open(path, oflag);
}
@@ -85,6 +91,10 @@ int ki_close(int fd) {
return s_kp->close(fd);
}
+off_t ki_lseek(int fd, off_t offset, int whence) {
+ return s_kp->lseek(fd, offset, whence);
+}
+
int ki_remove(const char* path) {
return s_kp->remove(path);
}

Powered by Google App Engine
This is Rietveld 408576698