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

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

Issue 16325024: Move thread_pool.h into utils so it can be shared by more than one example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 <ppapi/c/ppb.h> 8 #include <ppapi/c/ppb.h>
9 #include <ppapi/c/pp_instance.h> 9 #include <ppapi/c/pp_instance.h>
10 #include "nacl_io/ostypes.h" 10 #include "nacl_io/ostypes.h"
11 #include "utils/macros.h" 11 #include "sdk_util/macros.h"
12 12
13 EXTERN_C_BEGIN 13 EXTERN_C_BEGIN
14 14
15 // The kernel intercept module provides a C->C++ thunk between the libc 15 // The kernel intercept module provides a C->C++ thunk between the libc
16 // kernel calls and the KernelProxy singleton. 16 // kernel calls and the KernelProxy singleton.
17 17
18 // ki_init must be called with an uninitialized KernelProxy object. Calling 18 // ki_init must be called with an uninitialized KernelProxy object. Calling
19 // with NULL will instantiate a default kernel proxy object. ki_init must 19 // with NULL will instantiate a default kernel proxy object. ki_init must
20 // be called before any other ki_XXX function can be used. 20 // be called before any other ki_XXX function can be used.
21 void ki_init(void* kernel_proxy); 21 void ki_init(void* kernel_proxy);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int ki_symlink(const char* oldpath, const char* newpath); 54 int ki_symlink(const char* oldpath, const char* newpath);
55 void* ki_mmap(void* addr, size_t length, int prot, int flags, int fd, 55 void* ki_mmap(void* addr, size_t length, int prot, int flags, int fd,
56 off_t offset); 56 off_t offset);
57 int ki_munmap(void* addr, size_t length); 57 int ki_munmap(void* addr, size_t length);
58 int ki_open_resource(const char* file); 58 int ki_open_resource(const char* file);
59 59
60 EXTERN_C_END 60 EXTERN_C_END
61 61
62 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ 62 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_
63 63
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_handle.h ('k') | native_client_sdk/src/libraries/nacl_io/kernel_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698