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

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

Issue 787803004: Update from https://crrev.com/307664 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase. Created 6 years 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/syscall_wrappers.h ('k') | services/surfaces/surfaces_scheduler.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 <sys/resource.h>
7 #include <sys/syscall.h> 8 #include <sys/syscall.h>
9 #include <sys/time.h>
8 #include <sys/types.h> 10 #include <sys/types.h>
9 #include <unistd.h> 11 #include <unistd.h>
10 12
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "build/build_config.h" 14 #include "build/build_config.h"
13 #include "sandbox/linux/services/linux_syscalls.h" 15 #include "sandbox/linux/services/linux_syscalls.h"
14 16
15 namespace sandbox { 17 namespace sandbox {
16 18
17 pid_t sys_getpid(void) { 19 pid_t sys_getpid(void) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void sys_exit_group(int status) { 57 void sys_exit_group(int status) {
56 syscall(__NR_exit_group, status); 58 syscall(__NR_exit_group, status);
57 } 59 }
58 60
59 int sys_seccomp(unsigned int operation, 61 int sys_seccomp(unsigned int operation,
60 unsigned int flags, 62 unsigned int flags,
61 const struct sock_fprog* args) { 63 const struct sock_fprog* args) {
62 return syscall(__NR_seccomp, operation, flags, args); 64 return syscall(__NR_seccomp, operation, flags, args);
63 } 65 }
64 66
67 int sys_prlimit64(pid_t pid,
68 int resource,
69 const struct rlimit64* new_limit,
70 struct rlimit64* old_limit) {
71 return syscall(__NR_prlimit64, pid, resource, new_limit, old_limit);
72 }
73
65 } // namespace sandbox 74 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/services/syscall_wrappers.h ('k') | services/surfaces/surfaces_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698