Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_intercept.cc

Issue 11190066: [NaCl SDK] nacl-mounts example. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698