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 <errno.h> | 5 #include <errno.h> |
6 #include "nacl_io/kernel_intercept.h" | 6 #include "nacl_io/kernel_intercept.h" |
7 #include "nacl_io/kernel_proxy.h" | 7 #include "nacl_io/kernel_proxy.h" |
8 #include "nacl_io/kernel_wrap.h" | 8 #include "nacl_io/kernel_wrap.h" |
9 #include "nacl_io/pepper_interface.h" | 9 #include "nacl_io/pepper_interface.h" |
10 #include "nacl_io/pepper_interface.h" | 10 #include "nacl_io/pepper_interface.h" |
11 #include "nacl_io/real_pepper_interface.h" | 11 #include "nacl_io/real_pepper_interface.h" |
12 | 12 |
| 13 using namespace nacl_io; |
13 | 14 |
14 static KernelProxy* s_kp; | 15 static KernelProxy* s_kp; |
15 | 16 |
16 void ki_init(void* kp) { | 17 void ki_init(void* kp) { |
17 ki_init_ppapi(kp, 0, NULL); | 18 ki_init_ppapi(kp, 0, NULL); |
18 } | 19 } |
19 | 20 |
20 void ki_init_ppapi(void* kp, | 21 void ki_init_ppapi(void* kp, |
21 PP_Instance instance, | 22 PP_Instance instance, |
22 PPB_GetInterface get_browser_interface) { | 23 PPB_GetInterface get_browser_interface) { |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 return s_kp->fchown(fd, owner, group); | 186 return s_kp->fchown(fd, owner, group); |
186 } | 187 } |
187 | 188 |
188 int ki_lchown(const char* path, uid_t owner, gid_t group) { | 189 int ki_lchown(const char* path, uid_t owner, gid_t group) { |
189 return s_kp->lchown(path, owner, group); | 190 return s_kp->lchown(path, owner, group); |
190 } | 191 } |
191 | 192 |
192 int ki_utime(const char* filename, const struct utimbuf* times) { | 193 int ki_utime(const char* filename, const struct utimbuf* times) { |
193 return s_kp->utime(filename, times); | 194 return s_kp->utime(filename, times); |
194 } | 195 } |
OLD | NEW |