| Index: native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.h b/native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.h
|
| deleted file mode 100644
|
| index 4fc45ec1d4394e4e9270225a73703f6acb2ebec8..0000000000000000000000000000000000000000
|
| --- a/native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.h
|
| +++ /dev/null
|
| @@ -1,58 +0,0 @@
|
| -/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| - * Use of this source code is governed by a BSD-style license that can be
|
| - * found in the LICENSE file.
|
| - */
|
| -#ifndef LIBRARIES_NACL_MOUNTS_KERNEL_INTERCEPT_H_
|
| -#define LIBRARIES_NACL_MOUNTS_KERNEL_INTERCEPT_H_
|
| -
|
| -#include <ppapi/c/ppb.h>
|
| -#include <ppapi/c/pp_instance.h>
|
| -#include "nacl_mounts/ostypes.h"
|
| -#include "utils/macros.h"
|
| -
|
| -EXTERN_C_BEGIN
|
| -
|
| -// The kernel intercept module provides a C->C++ thunk between the libc
|
| -// kernel calls and the KernelProxy singleton.
|
| -
|
| -// ki_init must be called with an uninitialized KernelProxy object. Calling
|
| -// with NULL will instantiate a default kernel proxy object. ki_init must
|
| -// be called before any other ki_XXX function can be used.
|
| -void ki_init(void* kernel_proxy);
|
| -void ki_init_ppapi(void* kernel_proxy,
|
| - PP_Instance instance,
|
| - PPB_GetInterface get_browser_interface);
|
| -int ki_is_initialized();
|
| -void ki_uninit();
|
| -
|
| -int ki_chdir(const char* path);
|
| -char* ki_getcwd(char* buf, size_t size);
|
| -char* ki_getwd(char* buf);
|
| -int ki_dup(int oldfd);
|
| -int ki_dup2(int oldfd, int newfd);
|
| -int ki_chmod(const char* path, mode_t mode);
|
| -int ki_stat(const char* path, struct stat* buf);
|
| -int ki_mkdir(const char* path, mode_t mode);
|
| -int ki_rmdir(const char* path);
|
| -int ki_mount(const char* source, const char* target, const char* filesystemtype,
|
| - unsigned long mountflags, const void *data);
|
| -int ki_umount(const char* path);
|
| -int ki_open(const char* path, int oflag);
|
| -ssize_t ki_read(int fd, void* buf, size_t nbyte);
|
| -ssize_t ki_write(int fd, const void* buf, size_t nbyte);
|
| -int ki_fstat(int fd, struct stat *buf);
|
| -int ki_getdents(int fd, void* buf, unsigned int count);
|
| -int ki_fsync(int fd);
|
| -int ki_isatty(int fd);
|
| -int ki_close(int fd);
|
| -off_t ki_lseek(int fd, off_t offset, int whence);
|
| -int ki_remove(const char* path);
|
| -int ki_unlink(const char* path);
|
| -int ki_access(const char* path, int amode);
|
| -int ki_link(const char* oldpath, const char* newpath);
|
| -int ki_symlink(const char* oldpath, const char* newpath);
|
| -
|
| -EXTERN_C_END
|
| -
|
| -#endif // LIBRARIES_NACL_MOUNTS_KERNEL_INTERCEPT_H_
|
| -
|
|
|