| 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);
|
| }
|
|
|