| 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 | 6 |
| 7 /* | 7 /* |
| 8 * NaCl service run-time, non-platform specific system call helper routines. | 8 * NaCl service run-time, non-platform specific system call helper routines. |
| 9 */ | 9 */ |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "native_client/src/trusted/service_runtime/nacl_app_thread.h" | 45 #include "native_client/src/trusted/service_runtime/nacl_app_thread.h" |
| 46 #include "native_client/src/trusted/service_runtime/nacl_copy.h" | 46 #include "native_client/src/trusted/service_runtime/nacl_copy.h" |
| 47 #include "native_client/src/trusted/service_runtime/nacl_globals.h" | 47 #include "native_client/src/trusted/service_runtime/nacl_globals.h" |
| 48 #include "native_client/src/trusted/service_runtime/nacl_syscall_handlers.h" | 48 #include "native_client/src/trusted/service_runtime/nacl_syscall_handlers.h" |
| 49 #include "native_client/src/trusted/service_runtime/nacl_thread_nice.h" | 49 #include "native_client/src/trusted/service_runtime/nacl_thread_nice.h" |
| 50 #include "native_client/src/trusted/service_runtime/nacl_tls.h" | 50 #include "native_client/src/trusted/service_runtime/nacl_tls.h" |
| 51 #include "native_client/src/trusted/service_runtime/sel_ldr.h" | 51 #include "native_client/src/trusted/service_runtime/sel_ldr.h" |
| 52 #include "native_client/src/trusted/service_runtime/sel_memory.h" | 52 #include "native_client/src/trusted/service_runtime/sel_memory.h" |
| 53 #include "native_client/src/trusted/service_runtime/win/debug_exception_handler.
h" | 53 #include "native_client/src/trusted/service_runtime/win/debug_exception_handler.
h" |
| 54 | 54 |
| 55 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" |
| 55 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" | 56 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" |
| 56 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" | 57 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" |
| 57 #include "native_client/src/trusted/service_runtime/include/sys/mman.h" | |
| 58 #include "native_client/src/trusted/service_runtime/include/sys/nacl_test_crash.
h" | 58 #include "native_client/src/trusted/service_runtime/include/sys/nacl_test_crash.
h" |
| 59 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" | 59 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" |
| 60 | 60 |
| 61 #if NACL_WINDOWS | 61 #if NACL_WINDOWS |
| 62 #include "native_client/src/trusted/service_runtime/win/debug_exception_handler.
h" | 62 #include "native_client/src/trusted/service_runtime/win/debug_exception_handler.
h" |
| 63 #include "native_client/src/shared/platform/win/xlate_system_error.h" | 63 #include "native_client/src/shared/platform/win/xlate_system_error.h" |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 | 66 |
| 67 struct NaClDescQuotaInterface; | 67 struct NaClDescQuotaInterface; |
| (...skipping 3089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 return NaClCommonSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, | 3157 return NaClCommonSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, |
| 3158 NaClClockGetRes); | 3158 NaClClockGetRes); |
| 3159 } | 3159 } |
| 3160 | 3160 |
| 3161 int32_t NaClCommonSysClockGetTime(struct NaClAppThread *natp, | 3161 int32_t NaClCommonSysClockGetTime(struct NaClAppThread *natp, |
| 3162 int clk_id, | 3162 int clk_id, |
| 3163 uint32_t tsp) { | 3163 uint32_t tsp) { |
| 3164 return NaClCommonSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, | 3164 return NaClCommonSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, |
| 3165 NaClClockGetTime); | 3165 NaClClockGetTime); |
| 3166 } | 3166 } |
| OLD | NEW |