mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
59c10c52f5
Implement compat sys_call_table and some system call functions: truncate64, ftruncate64, fallocate, pread64, pwrite64, sync_file_range, readahead, fadvise64_64 which need argument translation. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20220405071314.3225832-12-guoren@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
20 lines
459 B
C
20 lines
459 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#define __SYSCALL_COMPAT
|
|
|
|
#include <linux/compat.h>
|
|
#include <linux/syscalls.h>
|
|
#include <asm-generic/mman-common.h>
|
|
#include <asm-generic/syscalls.h>
|
|
#include <asm/syscall.h>
|
|
|
|
#undef __SYSCALL
|
|
#define __SYSCALL(nr, call) [nr] = (call),
|
|
|
|
asmlinkage long compat_sys_rt_sigreturn(void);
|
|
|
|
void * const compat_sys_call_table[__NR_syscalls] = {
|
|
[0 ... __NR_syscalls - 1] = sys_ni_syscall,
|
|
#include <asm/unistd.h>
|
|
};
|