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

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

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 8 years, 4 months 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698