OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 #include "nacl_mounts/kernel_intercept.h" | 5 #include "nacl_mounts/kernel_intercept.h" |
| 6 #include "nacl_mounts/kernel_proxy.h" |
| 7 #include "utils/macros.h" |
6 | 8 |
7 #include "nacl_mounts/kernel_proxy.h" | 9 FORCE_LINK_THAT(kernel_wrap) |
8 | 10 |
9 static KernelProxy* s_kp; | 11 static KernelProxy* s_kp; |
10 | 12 |
11 void ki_init(void* kp) { | 13 void ki_init(void* kp) { |
12 if (kp == NULL) kp = new KernelProxy(); | 14 if (kp == NULL) kp = new KernelProxy(); |
13 s_kp = static_cast<KernelProxy*>(kp); | 15 s_kp = static_cast<KernelProxy*>(kp); |
14 s_kp->Init(); | 16 s_kp->Init(); |
15 } | 17 } |
16 | 18 |
17 int ki_is_initialized() { | 19 int ki_is_initialized() { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 return s_kp->remove(path); | 101 return s_kp->remove(path); |
100 } | 102 } |
101 | 103 |
102 int ki_unlink(const char* path) { | 104 int ki_unlink(const char* path) { |
103 return s_kp->unlink(path); | 105 return s_kp->unlink(path); |
104 } | 106 } |
105 | 107 |
106 int ki_access(const char* path, int amode) { | 108 int ki_access(const char* path, int amode) { |
107 return s_kp->access(path, amode); | 109 return s_kp->access(path, amode); |
108 } | 110 } |
OLD | NEW |