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

Side by Side Diff: sandbox/linux/seccomp-bpf/syscall.h

Issue 1093843002: Revert of Introduce sys_sigprocmask and sys_sigaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/seccomp-bpf/die.cc ('k') | sandbox/linux/seccomp-bpf/trap.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_H__ 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_H__
6 #define SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_H__ 6 #define SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_H__
7 7
8 #include <signal.h> 8 #include <signal.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "sandbox/linux/system_headers/linux_signal.h"
13 #include "sandbox/sandbox_export.h" 12 #include "sandbox/sandbox_export.h"
14 13
14 // Android's signal.h doesn't define ucontext etc.
15 #if defined(OS_ANDROID)
16 #include "sandbox/linux/system_headers/android_ucontext.h"
17 #endif
18
15 namespace sandbox { 19 namespace sandbox {
16 20
17 // This purely static class can be used to perform system calls with some 21 // This purely static class can be used to perform system calls with some
18 // low-level control. 22 // low-level control.
19 class SANDBOX_EXPORT Syscall { 23 class SANDBOX_EXPORT Syscall {
20 public: 24 public:
21 // InvalidCall() invokes Call() with a platform-appropriate syscall 25 // InvalidCall() invokes Call() with a platform-appropriate syscall
22 // number that is guaranteed to not be implemented (i.e., normally 26 // number that is guaranteed to not be implemented (i.e., normally
23 // returns -ENOSYS). 27 // returns -ENOSYS).
24 // This is primarily meant to be useful for writing sandbox policy 28 // This is primarily meant to be useful for writing sandbox policy
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const intptr_t* args, 161 const intptr_t* args,
158 intptr_t* err_stat); 162 intptr_t* err_stat);
159 #endif // defined(__mips__) 163 #endif // defined(__mips__)
160 164
161 DISALLOW_IMPLICIT_CONSTRUCTORS(Syscall); 165 DISALLOW_IMPLICIT_CONSTRUCTORS(Syscall);
162 }; 166 };
163 167
164 } // namespace sandbox 168 } // namespace sandbox
165 169
166 #endif // SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_H__ 170 #endif // SANDBOX_LINUX_SECCOMP_BPF_SYSCALL_H__
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/die.cc ('k') | sandbox/linux/seccomp-bpf/trap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698