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

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

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/seccomp-bpf/sandbox_bpf_unittest.cc ('k') | sandbox/linux/seccomp-bpf/syscall.cc » ('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/sandbox_export.h" 12 #include "sandbox/sandbox_export.h"
13 13
14 // Android's signal.h doesn't define ucontext etc. 14 // Android's signal.h doesn't define ucontext etc.
15 #if defined(OS_ANDROID) 15 #if defined(OS_ANDROID)
16 #include "sandbox/linux/services/android_ucontext.h" 16 #include "sandbox/linux/system_headers/android_ucontext.h"
17 #endif 17 #endif
18 18
19 namespace sandbox { 19 namespace sandbox {
20 20
21 // 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
22 // low-level control. 22 // low-level control.
23 class SANDBOX_EXPORT Syscall { 23 class SANDBOX_EXPORT Syscall {
24 public: 24 public:
25 // InvalidCall() invokes Call() with a platform-appropriate syscall 25 // InvalidCall() invokes Call() with a platform-appropriate syscall
26 // number that is guaranteed to not be implemented (i.e., normally 26 // number that is guaranteed to not be implemented (i.e., normally
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 const intptr_t* args, 161 const intptr_t* args,
162 intptr_t* err_stat); 162 intptr_t* err_stat);
163 #endif // defined(__mips__) 163 #endif // defined(__mips__)
164 164
165 DISALLOW_IMPLICIT_CONSTRUCTORS(Syscall); 165 DISALLOW_IMPLICIT_CONSTRUCTORS(Syscall);
166 }; 166 };
167 167
168 } // namespace sandbox 168 } // namespace sandbox
169 169
170 #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/sandbox_bpf_unittest.cc ('k') | sandbox/linux/seccomp-bpf/syscall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698