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

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

Issue 474433005: [NaCl SDK] Remove syscalls wrappers for chmod and unlink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ 5 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_
6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ 6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_
7 7
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <sys/time.h> 9 #include <sys/time.h>
10 10
(...skipping 26 matching lines...) Expand all
37 /* 37 /*
38 * ki_init must be called with an uninitialized KernelProxy object. Calling 38 * ki_init must be called with an uninitialized KernelProxy object. Calling
39 * with NULL will instantiate a default kernel proxy object. ki_init must 39 * with NULL will instantiate a default kernel proxy object. ki_init must
40 * be called before any other ki_XXX function can be used. 40 * be called before any other ki_XXX function can be used.
41 */ 41 */
42 int ki_init(void* kernel_proxy); 42 int ki_init(void* kernel_proxy);
43 43
44 /* 44 /*
45 * Saves the current internal state. This is used by test code which can 45 * Saves the current internal state. This is used by test code which can
46 * use this to save the current state before calling ki_init(). The 46 * use this to save the current state before calling ki_init(). The
47 * pushed state is restored in the next call to ki_uninit(). 47 * pushed state is restored in the next call to ki_uninit().
binji 2014/08/20 18:13:35 or by calling ki_pop_state_for_testing().
Sam Clegg 2014/08/21 10:19:34 Done.
48 */ 48 */
49 int ki_push_state_for_testing(void); 49 int ki_push_state_for_testing(void);
50 50
51 int ki_pop_state_for_testing(void);
52
51 int ki_init_ppapi(void* kernel_proxy, 53 int ki_init_ppapi(void* kernel_proxy,
52 PP_Instance instance, 54 PP_Instance instance,
53 PPB_GetInterface get_browser_interface); 55 PPB_GetInterface get_browser_interface);
54 56
55 /* 57 /*
56 * ki_init_interface() is a variant of ki_init() that can be called with 58 * ki_init_interface() is a variant of ki_init() that can be called with
57 * a PepperInterface object. 59 * a PepperInterface object.
58 */ 60 */
59 int ki_init_interface(void* kernel_proxy, void* pepper_interface); 61 int ki_init_interface(void* kernel_proxy, void* pepper_interface);
60 62
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const void* optval, 180 const void* optval,
179 socklen_t len); 181 socklen_t len);
180 int ki_shutdown(int fd, int how); 182 int ki_shutdown(int fd, int how);
181 int ki_socket(int domain, int type, int protocol); 183 int ki_socket(int domain, int type, int protocol);
182 int ki_socketpair(int domain, int type, int protocl, int* sv); 184 int ki_socketpair(int domain, int type, int protocl, int* sv);
183 #endif /* PROVIDES_SOCKET_API */ 185 #endif /* PROVIDES_SOCKET_API */
184 186
185 EXTERN_C_END 187 EXTERN_C_END
186 188
187 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ 189 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698