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

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

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/syscall.h ('k') | sandbox/linux/seccomp-bpf/trap.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 #include "sandbox/linux/seccomp-bpf/syscall.h" 5 #include "sandbox/linux/seccomp-bpf/syscall.h"
6 6
7 #include <asm/unistd.h> 7 #include <asm/unistd.h>
8 #include <errno.h> 8 #include <errno.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h" 12 #include "sandbox/linux/bpf_dsl/seccomp_macros.h"
13 13
14 namespace sandbox { 14 namespace sandbox {
15 15
16 namespace { 16 namespace {
17 17
18 #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ 18 #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \
19 defined(ARCH_CPU_MIPS_FAMILY) 19 defined(ARCH_CPU_MIPS_FAMILY)
20 // Number that's not currently used by any Linux kernel ABIs. 20 // Number that's not currently used by any Linux kernel ABIs.
21 const int kInvalidSyscallNumber = 0x351d3; 21 const int kInvalidSyscallNumber = 0x351d3;
22 #else 22 #else
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 405
406 // Set an error status so it can be used outside of this function 406 // Set an error status so it can be used outside of this function
407 *err_ret = err_stat; 407 *err_ret = err_stat;
408 408
409 return ret; 409 return ret;
410 } 410 }
411 #endif // defined(__mips__) 411 #endif // defined(__mips__)
412 412
413 } // namespace sandbox 413 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/syscall.h ('k') | sandbox/linux/seccomp-bpf/trap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698