| 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 |
| 10 #include <sys/types.h> | 11 #include <sys/types.h> |
| 11 #include <sys/stat.h> | 12 #include <sys/stat.h> |
| 12 | 13 |
| 13 #include <errno.h> | 14 #include <errno.h> |
| 14 #include <stdio.h> | 15 #include <stdio.h> |
| 16 |
| 17 #include "native_client/src/include/nacl_defines.h" |
| 18 |
| 15 #if NACL_WINDOWS | 19 #if NACL_WINDOWS |
| 16 #include <windows.h> | 20 #include <windows.h> |
| 17 #endif | 21 #endif |
| 18 | 22 |
| 19 #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h" | 23 #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h" |
| 20 | 24 |
| 21 #include "native_client/src/include/nacl_macros.h" | 25 #include "native_client/src/include/nacl_macros.h" |
| 22 #include "native_client/src/include/portability_process.h" | 26 #include "native_client/src/include/portability_process.h" |
| 23 #include "native_client/src/include/portability_string.h" | 27 #include "native_client/src/include/portability_string.h" |
| 24 | 28 |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 return NaClSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, | 1041 return NaClSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, |
| 1038 NaClClockGetRes, 1); | 1042 NaClClockGetRes, 1); |
| 1039 } | 1043 } |
| 1040 | 1044 |
| 1041 int32_t NaClSysClockGetTime(struct NaClAppThread *natp, | 1045 int32_t NaClSysClockGetTime(struct NaClAppThread *natp, |
| 1042 int clk_id, | 1046 int clk_id, |
| 1043 uint32_t tsp) { | 1047 uint32_t tsp) { |
| 1044 return NaClSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, | 1048 return NaClSysClockGetCommon(natp, clk_id, (uintptr_t) tsp, |
| 1045 NaClClockGetTime, 0); | 1049 NaClClockGetTime, 0); |
| 1046 } | 1050 } |
| OLD | NEW |