Commit 2c314bb5 authored by jln@chromium.org's avatar jln@chromium.org

Linux: add our own headers for system call numbers.


BUG=
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10825227

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150390 0039d316-1c4b-4281-b951-d872f2087c98
parent 25e378d0
......@@ -31,29 +31,7 @@
#if defined(SECCOMP_BPF_SANDBOX)
#include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
// These are fairly new and not defined in all headers yet.
#if defined(__x86_64__)
#ifndef __NR_process_vm_readv
#define __NR_process_vm_readv 310
#endif
#ifndef __NR_process_vm_writev
#define __NR_process_vm_writev 311
#endif
#elif defined(__i386__)
#ifndef __NR_process_vm_readv
#define __NR_process_vm_readv 347
#endif
#ifndef __NR_process_vm_writev
#define __NR_process_vm_writev 348
#endif
#endif
#include "sandbox/linux/services/x86_linux_syscalls.h"
namespace {
......
This diff is collapsed.
This diff is collapsed.
// 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_X86_LINUX_SYSCALLS_H_
#define SANDBOX_LINUX_SERVICES_X86_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
#endif // SANDBOX_LINUX_SERVICES_X86_LINUX_SYSCALLS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment