OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <signal.h> | 9 #include <signal.h> |
10 #include <string.h> | 10 #include <string.h> |
11 | 11 |
12 #include "native_client/src/include/checked_cast.h" | 12 #include "native_client/src/include/checked_cast.h" |
13 #include "native_client/src/include/nacl_platform.h" | 13 #include "native_client/src/include/nacl_platform.h" |
14 | 14 |
| 15 #include "native_client/src/shared/imc/nacl_imc.h" |
15 #include "native_client/src/shared/platform/nacl_host_desc.h" | 16 #include "native_client/src/shared/platform/nacl_host_desc.h" |
16 #include "native_client/src/shared/imc/nacl_imc.h" | |
17 | 17 |
18 #include "native_client/src/trusted/plugin/srpc/plugin.h" | 18 #include "native_client/src/trusted/plugin/plugin.h" |
19 #include "native_client/src/trusted/plugin/srpc/shared_memory.h" | 19 #include "native_client/src/trusted/plugin/shared_memory.h" |
20 #include "native_client/src/trusted/plugin/srpc/utility.h" | 20 #include "native_client/src/trusted/plugin/utility.h" |
21 | 21 |
22 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" | 22 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" |
23 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" | 23 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" |
24 #include "native_client/src/trusted/service_runtime/internal_errno.h" | 24 #include "native_client/src/trusted/service_runtime/internal_errno.h" |
25 #include "native_client/src/trusted/service_runtime/sel_util.h" | 25 #include "native_client/src/trusted/service_runtime/sel_util.h" |
26 | 26 |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 bool RpcRead(void* obj, plugin::SrpcParams* params) { | 30 bool RpcRead(void* obj, plugin::SrpcParams* params) { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // plugin_->effp_, | 289 // plugin_->effp_, |
290 // addr_, | 290 // addr_, |
291 // size_); | 291 // size_); |
292 // } | 292 // } |
293 // TODO(sehr): is there a missing delete desc() here? | 293 // TODO(sehr): is there a missing delete desc() here? |
294 // TODO(gregoryd): in addition, should we unref the descriptor if it was | 294 // TODO(gregoryd): in addition, should we unref the descriptor if it was |
295 // constructed during the initialization of this object? | 295 // constructed during the initialization of this object? |
296 } | 296 } |
297 | 297 |
298 } // namespace plugin | 298 } // namespace plugin |
OLD | NEW |