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 | 6 |
6 #include "nacl_mounts/kernel_intercept.h" | |
7 #include "nacl_mounts/kernel_proxy.h" | 7 #include "nacl_mounts/kernel_proxy.h" |
8 | 8 |
9 static KernelProxy* s_kp; | 9 static KernelProxy* s_kp; |
10 | 10 |
11 void ki_init(void* kp) { | 11 void ki_init(void* kp) { |
12 if (kp == NULL) kp = new KernelProxy(); | 12 if (kp == NULL) kp = new KernelProxy(); |
13 s_kp = static_cast<KernelProxy*>(kp); | 13 s_kp = static_cast<KernelProxy*>(kp); |
14 s_kp->Init(); | 14 s_kp->Init(); |
15 } | 15 } |
16 | 16 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 return s_kp->fsync(fd); | 77 return s_kp->fsync(fd); |
78 } | 78 } |
79 | 79 |
80 int ki_isatty(int fd) { | 80 int ki_isatty(int fd) { |
81 return s_kp->isatty(fd); | 81 return s_kp->isatty(fd); |
82 } | 82 } |
83 | 83 |
84 int ki_close(int fd) { | 84 int ki_close(int fd) { |
85 return s_kp->close(fd); | 85 return s_kp->close(fd); |
86 } | 86 } |
OLD | NEW |