OLD | NEW |
---|---|
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 // This header will be kept up to date so that we can compile system-call | 5 // This header will be kept up to date so that we can compile system-call |
6 // policies even when system headers are old. | 6 // policies even when system headers are old. |
7 // System call numbers are accessible through __NR_syscall_name. | 7 // System call numbers are accessible through __NR_syscall_name. |
8 | 8 |
9 #ifndef SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ | 9 #ifndef SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ |
10 #define SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ | 10 #define SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ |
11 | 11 |
12 #if defined(__x86_64__) | 12 #if defined(__x86_64__) |
13 #include "sandbox/linux/services/x86_64_linux_syscalls.h" | 13 #include "sandbox/linux/services/x86_64_linux_syscalls.h" |
14 #endif | 14 #endif |
15 | 15 |
16 #if defined(__i386__) | 16 #if defined(__i386__) |
17 #include "sandbox/linux/services/x86_32_linux_syscalls.h" | 17 #include "sandbox/linux/services/x86_32_linux_syscalls.h" |
18 #endif | 18 #endif |
19 | 19 |
20 #if defined(__arm__) && defined(__ARM_EABI__) | 20 #if defined(__arm__) && defined(__ARM_EABI__) |
21 #include "sandbox/linux/services/arm_linux_syscalls.h" | 21 #include "sandbox/linux/services/arm_linux_syscalls.h" |
22 #endif | 22 #endif |
23 | 23 |
24 // A Chrome OS specific clock ID for clock_getres, clock_gettime, and | |
25 // clock_settime. See base/time/time_posix.cc for detail. | |
26 #define CLOCK_SYSTEM_TRACE 11 | |
hamaji
2014/05/28 07:36:46
Not sure this is the appropriate location for this
Mark Seaborn
2014/05/28 15:24:03
Would it make sense to change base/time/time_posix
hamaji
2014/05/28 16:21:47
Sounds like a good idea. Done.
| |
27 | |
24 #endif // SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ | 28 #endif // SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ |
25 | |
OLD | NEW |