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

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

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem Created 7 years, 5 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 <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
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 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_handle.cc ('k') | native_client_sdk/src/libraries/nacl_io/kernel_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698