Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Side by Side Diff: sandbox/linux/services/syscall_wrappers.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/linux/services/scoped_process.cc ('k') | sandbox/linux/services/thread_helpers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sandbox/linux/services/scoped_process.cc ('k') | sandbox/linux/services/thread_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698