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

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

Issue 684993005: Linux sandbox: start adding syscall wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More dependencies. Created 6 years, 1 month 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/syscall_wrappers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_
6 #define SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_
7
8 #include <sys/types.h>
9
10 #include "sandbox/sandbox_export.h"
11
12 namespace sandbox {
13
14 // Provide direct system call wrappers for a few common system calls.
15 // These are guaranteed to perform a system call and do not rely on things such
16 // as caching the current pid (c.f. getpid()).
17
18 SANDBOX_EXPORT pid_t sys_getpid(void);
19
20 SANDBOX_EXPORT pid_t sys_gettid(void);
21
22 struct pt_regs;
23 SANDBOX_EXPORT long sys_clone(unsigned long flags,
mdempsky 2014/11/20 00:31:43 Most of the calls seem to be for sys_clone(flags,
jln (very slow on Chromium) 2014/11/20 18:04:50 Yeah, you're right, this needs to be cleaned-up. I
24 void* child_stack,
25 void* ptid,
26 void* ctid,
27 struct pt_regs* regs);
28
29 SANDBOX_EXPORT void sys_exit_group(int status);
30
31 } // namespace sandbox
32
33 #endif // SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_
OLDNEW
« no previous file with comments | « sandbox/linux/services/scoped_process.cc ('k') | sandbox/linux/services/syscall_wrappers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698