| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "sandbox/linux/services/syscall_wrappers.h" | 5 #include "sandbox/linux/services/syscall_wrappers.h" |
| 6 | 6 |
| 7 #include <pthread.h> | 7 #include <pthread.h> |
| 8 #include <sched.h> | 8 #include <sched.h> |
| 9 #include <setjmp.h> | 9 #include <setjmp.h> |
| 10 #include <sys/resource.h> | 10 #include <sys/resource.h> |
| 11 #include <sys/syscall.h> | 11 #include <sys/syscall.h> |
| 12 #include <sys/time.h> | 12 #include <sys/time.h> |
| 13 #include <sys/types.h> | 13 #include <sys/types.h> |
| 14 #include <unistd.h> | 14 #include <unistd.h> |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/third_party/valgrind/valgrind.h" | 18 #include "base/third_party/valgrind/valgrind.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "sandbox/linux/services/linux_syscalls.h" | 20 #include "sandbox/linux/system_headers/linux_syscalls.h" |
| 21 | 21 |
| 22 namespace sandbox { | 22 namespace sandbox { |
| 23 | 23 |
| 24 pid_t sys_getpid(void) { | 24 pid_t sys_getpid(void) { |
| 25 return syscall(__NR_getpid); | 25 return syscall(__NR_getpid); |
| 26 } | 26 } |
| 27 | 27 |
| 28 pid_t sys_gettid(void) { | 28 pid_t sys_gettid(void) { |
| 29 return syscall(__NR_gettid); | 29 return syscall(__NR_gettid); |
| 30 } | 30 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 71 } |
| 72 | 72 |
| 73 int sys_prlimit64(pid_t pid, | 73 int sys_prlimit64(pid_t pid, |
| 74 int resource, | 74 int resource, |
| 75 const struct rlimit64* new_limit, | 75 const struct rlimit64* new_limit, |
| 76 struct rlimit64* old_limit) { | 76 struct rlimit64* old_limit) { |
| 77 return syscall(__NR_prlimit64, pid, resource, new_limit, old_limit); | 77 return syscall(__NR_prlimit64, pid, resource, new_limit, old_limit); |
| 78 } | 78 } |
| 79 | 79 |
| 80 } // namespace sandbox | 80 } // namespace sandbox |
| OLD | NEW |