linux_syscalls.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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
  3. // found in the LICENSE file.
  4. // This header will be kept up to date so that we can compile system-call
  5. // policies even when system headers are old.
  6. // System call numbers are accessible through __NR_syscall_name.
  7. #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_
  8. #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_
  9. #include "build/build_config.h"
  10. #if defined(__x86_64__)
  11. #include "sandbox/linux/system_headers/x86_64_linux_syscalls.h"
  12. #endif
  13. #if defined(__i386__)
  14. #include "sandbox/linux/system_headers/x86_32_linux_syscalls.h"
  15. #endif
  16. #if defined(__arm__) && defined(__ARM_EABI__)
  17. #include "sandbox/linux/system_headers/arm_linux_syscalls.h"
  18. #endif
  19. #if (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
  20. #include "sandbox/linux/system_headers/mips_linux_syscalls.h"
  21. #endif
  22. #if defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)
  23. #include "sandbox/linux/system_headers/mips64_linux_syscalls.h"
  24. #endif
  25. #if defined(__aarch64__)
  26. #include "sandbox/linux/system_headers/arm64_linux_syscalls.h"
  27. #endif
  28. #if defined(__riscv) && __riscv_xlen == 64
  29. #include "sandbox/linux/system_headers/riscv64_linux_syscalls.h"
  30. #endif
  31. #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_