| OLD | NEW |
| 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/sandbox_bpf.h" | 5 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h" |
| 6 #include "sandbox/linux/seccomp-bpf/port.h" |
| 6 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h" | 7 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h" |
| 7 | 8 |
| 8 namespace playground2 { | 9 namespace playground2 { |
| 9 | 10 |
| 10 uint32_t SyscallIterator::Next() { | 11 uint32_t SyscallIterator::Next() { |
| 11 if (done_) { | 12 if (done_) { |
| 12 return num_; | 13 return num_; |
| 13 } | 14 } |
| 14 | 15 |
| 15 uint32_t val; | 16 uint32_t val; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 (num >= MIN_GHOST_SYSCALL && num <= MAX_SYSCALL); | 86 (num >= MIN_GHOST_SYSCALL && num <= MAX_SYSCALL); |
| 86 } | 87 } |
| 87 #else | 88 #else |
| 88 bool SyscallIterator::IsArmPrivate(uint32_t) { | 89 bool SyscallIterator::IsArmPrivate(uint32_t) { |
| 89 return false; | 90 return false; |
| 90 } | 91 } |
| 91 #endif | 92 #endif |
| 92 | 93 |
| 93 } // namespace | 94 } // namespace |
| 94 | 95 |
| OLD | NEW |