20#ifndef _POSIX_SYSCALLS_TRANSLATE_H
21#define _POSIX_SYSCALLS_TRANSLATE_H
23#include <posixSyscallNumbers.h>
25enum PedigreeLinuxAmd64SyscallNumber {
26#define PEDIGREE_LINUX_AMD64_SYSCALL(name, number, target) \
27 PedigreeLinuxAmd64Syscall_##name = number,
28#include "linuxSyscallMappings-amd64.h"
29#undef PEDIGREE_LINUX_AMD64_SYSCALL
33enum PedigreeLinuxArm64SyscallNumber {
34#define PEDIGREE_LINUX_ARM64_SYSCALL(name, number, target) \
35 PedigreeLinuxArm64Syscall_##name = number,
36#include "linuxSyscallMappings-arm64.h"
37#undef PEDIGREE_LINUX_ARM64_SYSCALL
40enum PedigreeLinuxArmv7SyscallNumber {
41#define PEDIGREE_LINUX_ARMV7_SYSCALL(name, number, target) \
42 PedigreeLinuxArmv7Syscall_##name = number,
43#include "linuxSyscallMappings-armv7.h"
44#undef PEDIGREE_LINUX_ARMV7_SYSCALL
48static inline long posix_translate_syscall(
long which) {
51#define PEDIGREE_LINUX_ARM64_SYSCALL(name, number, target) \
52 case PedigreeLinuxArm64Syscall_##name: \
54#include "linuxSyscallMappings-arm64.h"
55#undef PEDIGREE_LINUX_ARM64_SYSCALL
57#define PEDIGREE_LINUX_ARMV7_SYSCALL(name, number, target) \
58 case PedigreeLinuxArmv7Syscall_##name: \
60#include "linuxSyscallMappings-armv7.h"
61#undef PEDIGREE_LINUX_ARMV7_SYSCALL
63#define PEDIGREE_LINUX_AMD64_SYSCALL(name, number, target) \
64 case PedigreeLinuxAmd64Syscall_##name: \
66#include "linuxSyscallMappings-amd64.h"
67#undef PEDIGREE_LINUX_AMD64_SYSCALL