| OLD | NEW | 
|---|
| (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 SANDBOX_EXPORT long sys_clone(unsigned long flags); | 
|  | 23 | 
|  | 24 // |regs| is not supported and must be passed as nullptr. | 
|  | 25 SANDBOX_EXPORT long sys_clone(unsigned long flags, | 
|  | 26                               void* child_stack, | 
|  | 27                               pid_t* ptid, | 
|  | 28                               pid_t* ctid, | 
|  | 29                               decltype(nullptr) regs); | 
|  | 30 | 
|  | 31 SANDBOX_EXPORT void sys_exit_group(int status); | 
|  | 32 | 
|  | 33 }  // namespace sandbox | 
|  | 34 | 
|  | 35 #endif  // SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ | 
| OLD | NEW | 
|---|