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

// This header will be kept up to date so that we can compile system-call
// policies even when system headers are old.
// System call numbers are accessible through __NR_syscall_name.

#ifndef SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_
#define SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_

#if defined(__x86_64__)
#include "sandbox/linux/services/x86_64_linux_syscalls.h"
#endif

#if defined(__i386__)
#include "sandbox/linux/services/x86_32_linux_syscalls.h"
#endif

#if defined(__arm__) && defined(__ARM_EABI__)
#include "sandbox/linux/services/arm_linux_syscalls.h"
#endif

#if defined(__mips__)
#include "sandbox/linux/services/mips_linux_syscalls.h"
#endif

#endif  // SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_


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

// This header will be kept up to date so that we can compile system-call
// policies even when system headers are old.
// System call numbers are accessible through __NR_syscall_name.

#ifndef SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_
#define SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_

#if defined(__x86_64__)
#include "sandbox/linux/services/x86_64_linux_syscalls.h"
#endif

#if defined(__i386__)
#include "sandbox/linux/services/x86_32_linux_syscalls.h"
#endif

#if defined(__arm__) && defined(__ARM_EABI__)
#include "sandbox/linux/services/arm_linux_syscalls.h"
#endif

#if defined(__mips__) && defined(_ABIO32)
#include "sandbox/linux/services/mips_linux_syscalls.h"
#endif

#endif  // SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_


Add ABI check for syscall numbers definitions
[MIPS] Add ABI check for syscall numbers definitions

In file mips_linux_syscalls.h are definitions of syscall
numbers for O32 ABI, so this check is needed in order for
Mips architectures with other ABIs to work properly.

BUG=400684
TEST=compile sandbox_linux_unittest for MIPS32 and MIPS64

Review URL: https://codereview.chromium.org/446213003

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@288252 0039d316-1c4b-4281-b951-d872f2087c98
