chromium/sandbox/linux/bpf_dsl/syscall_set.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "sandbox/linux/bpf_dsl/syscall_set.h"

#include <stdint.h>

#include "base/check.h"
#include "build/build_config.h"
#include "sandbox/linux/bpf_dsl/linux_syscall_ranges.h"

namespace sandbox {

namespace {

#if defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)
// This is true for Mips O32 ABI.
static_assert(MIN_SYSCALL == __NR_Linux, "min syscall number should be 4000");
#elif defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)
// This is true for MIPS N64 ABI.
static_assert(MIN_SYSCALL == __NR_Linux, "min syscall number should be 5000");
#else
// This true for supported architectures (Intel and ARM EABI).
static_assert;
#endif

// SyscallRange represents an inclusive range of system call numbers.
struct SyscallRange {};

const SyscallRange kValidSyscallRanges[] =;

}  // namespace

SyscallSet::Iterator SyscallSet::begin() const {}

SyscallSet::Iterator SyscallSet::end() const {}

bool SyscallSet::IsValid(uint32_t num) {}

bool operator==(const SyscallSet& lhs, const SyscallSet& rhs) {}

SyscallSet::Iterator::Iterator(Set set, bool done)
    :{}

uint32_t SyscallSet::Iterator::operator*() const {}

SyscallSet::Iterator& SyscallSet::Iterator::operator++() {}

// NextSyscall returns the next system call in the iterated system
// call set after |num_|, or 0 if no such system call exists.
uint32_t SyscallSet::Iterator::NextSyscall() const {}

bool operator==(const SyscallSet::Iterator& lhs,
                const SyscallSet::Iterator& rhs) {}

bool operator!=(const SyscallSet::Iterator& lhs,
                const SyscallSet::Iterator& rhs) {}

}  // namespace sandbox