| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 #define NACL_LOG_MODULE_NAME "reverse_service_c" | 6 #define NACL_LOG_MODULE_NAME "reverse_service_c" |
| 7 | 7 |
| 8 #include "native_client/src/trusted/reverse_service/reverse_service_c.h" | 8 #include "native_client/src/trusted/reverse_service/reverse_service_c.h" |
| 9 | 9 |
| 10 #include <limits.h> | 10 #include <limits.h> |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 | 12 |
| 13 #include "native_client/src/include/nacl_compiler_annotations.h" | 13 #include "native_client/src/include/nacl_compiler_annotations.h" |
| 14 #include "native_client/src/include/portability_io.h" | 14 #include "native_client/src/include/portability_io.h" |
| 15 | 15 |
| 16 #include "native_client/src/public/nacl_file_info.h" |
| 17 |
| 16 #include "native_client/src/shared/platform/nacl_check.h" | 18 #include "native_client/src/shared/platform/nacl_check.h" |
| 17 #include "native_client/src/shared/platform/nacl_host_desc.h" | 19 #include "native_client/src/shared/platform/nacl_host_desc.h" |
| 18 #include "native_client/src/shared/platform/nacl_log.h" | 20 #include "native_client/src/shared/platform/nacl_log.h" |
| 19 #include "native_client/src/shared/platform/nacl_sync.h" | 21 #include "native_client/src/shared/platform/nacl_sync.h" |
| 20 #include "native_client/src/shared/platform/nacl_sync_checked.h" | 22 #include "native_client/src/shared/platform/nacl_sync_checked.h" |
| 21 #include "native_client/src/shared/platform/nacl_threads.h" | 23 #include "native_client/src/shared/platform/nacl_threads.h" |
| 22 | 24 |
| 23 #include "native_client/src/shared/srpc/nacl_srpc.h" | 25 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 24 | 26 |
| 25 #include "native_client/src/trusted/desc/nacl_desc_invalid.h" | 27 #include "native_client/src/trusted/desc/nacl_desc_invalid.h" |
| 26 #include "native_client/src/trusted/desc/nacl_desc_io.h" | 28 #include "native_client/src/trusted/desc/nacl_desc_io.h" |
| 27 | 29 |
| 28 #include "native_client/src/trusted/reverse_service/manifest_rpc.h" | 30 #include "native_client/src/trusted/reverse_service/manifest_rpc.h" |
| 29 #include "native_client/src/trusted/reverse_service/reverse_control_rpc.h" | 31 #include "native_client/src/trusted/reverse_service/reverse_control_rpc.h" |
| 30 | 32 |
| 31 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" | 33 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" |
| 32 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" | 34 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" |
| 33 #include "native_client/src/trusted/validator/nacl_file_info.h" | |
| 34 | 35 |
| 35 struct NaClSrpcHandlerDesc const kNaClReverseServiceHandlers[]; /* fwd */ | 36 struct NaClSrpcHandlerDesc const kNaClReverseServiceHandlers[]; /* fwd */ |
| 36 | 37 |
| 37 int NaClReverseThreadIfFactoryFn( | 38 int NaClReverseThreadIfFactoryFn( |
| 38 void *factory_data, | 39 void *factory_data, |
| 39 NaClThreadIfStartFunction fn_ptr, | 40 NaClThreadIfStartFunction fn_ptr, |
| 40 void *thread_data, | 41 void *thread_data, |
| 41 size_t thread_stack_size, | 42 size_t thread_stack_size, |
| 42 struct NaClThreadInterface **out_new_thread); /* fwd */ | 43 struct NaClThreadInterface **out_new_thread); /* fwd */ |
| 43 | 44 |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 NaClReverseInterfaceStartupInitializationComplete, | 719 NaClReverseInterfaceStartupInitializationComplete, |
| 719 NaClReverseInterfaceOpenManifestEntry, | 720 NaClReverseInterfaceOpenManifestEntry, |
| 720 NaClReverseInterfaceReportCrash, | 721 NaClReverseInterfaceReportCrash, |
| 721 NaClReverseInterfaceReportExitStatus, | 722 NaClReverseInterfaceReportExitStatus, |
| 722 NaClReverseInterfaceDoPostMessage, | 723 NaClReverseInterfaceDoPostMessage, |
| 723 NaClReverseInterfaceCreateProcess, | 724 NaClReverseInterfaceCreateProcess, |
| 724 NaClReverseInterfaceCreateProcessFunctorResult, | 725 NaClReverseInterfaceCreateProcessFunctorResult, |
| 725 NaClReverseInterfaceFinalizeProcess, | 726 NaClReverseInterfaceFinalizeProcess, |
| 726 NaClReverseInterfaceRequestQuotaForWrite, | 727 NaClReverseInterfaceRequestQuotaForWrite, |
| 727 }; | 728 }; |
| OLD | NEW |