mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
28 lines
695 B
C
28 lines
695 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2012 Regents of the University of California
|
|
*/
|
|
|
|
/*
|
|
* There is explicitly no include guard here because this file is expected to
|
|
* be included multiple times.
|
|
*/
|
|
|
|
#define __ARCH_WANT_SYS_CLONE
|
|
#define __ARCH_WANT_MEMFD_SECRET
|
|
|
|
#ifdef CONFIG_COMPAT
|
|
#define __ARCH_WANT_COMPAT_TRUNCATE64
|
|
#define __ARCH_WANT_COMPAT_FTRUNCATE64
|
|
#define __ARCH_WANT_COMPAT_FALLOCATE
|
|
#define __ARCH_WANT_COMPAT_PREAD64
|
|
#define __ARCH_WANT_COMPAT_PWRITE64
|
|
#define __ARCH_WANT_COMPAT_SYNC_FILE_RANGE
|
|
#define __ARCH_WANT_COMPAT_READAHEAD
|
|
#define __ARCH_WANT_COMPAT_FADVISE64_64
|
|
#endif
|
|
|
|
#include <uapi/asm/unistd.h>
|
|
|
|
#define NR_syscalls (__NR_syscalls)
|