18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_X86_UNISTD_H
38c2ecf20Sopenharmony_ci#define _ASM_X86_UNISTD_H 1
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <uapi/asm/unistd.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci# ifdef CONFIG_X86_32
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#  include <asm/unistd_32.h>
118c2ecf20Sopenharmony_ci#  define __ARCH_WANT_STAT64
128c2ecf20Sopenharmony_ci#  define __ARCH_WANT_SYS_IPC
138c2ecf20Sopenharmony_ci#  define __ARCH_WANT_SYS_OLD_MMAP
148c2ecf20Sopenharmony_ci#  define __ARCH_WANT_SYS_OLD_SELECT
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#  define __NR_ia32_syscall_max __NR_syscall_max
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci# else
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#  include <asm/unistd_64.h>
218c2ecf20Sopenharmony_ci#  include <asm/unistd_64_x32.h>
228c2ecf20Sopenharmony_ci#  include <asm/unistd_32_ia32.h>
238c2ecf20Sopenharmony_ci#  define __ARCH_WANT_SYS_TIME
248c2ecf20Sopenharmony_ci#  define __ARCH_WANT_SYS_UTIME
258c2ecf20Sopenharmony_ci#  define __ARCH_WANT_COMPAT_SYS_PREADV64
268c2ecf20Sopenharmony_ci#  define __ARCH_WANT_COMPAT_SYS_PWRITEV64
278c2ecf20Sopenharmony_ci#  define __ARCH_WANT_COMPAT_SYS_PREADV64V2
288c2ecf20Sopenharmony_ci#  define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci# endif
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci# define NR_syscalls (__NR_syscall_max + 1)
338c2ecf20Sopenharmony_ci# define X32_NR_syscalls (__NR_x32_syscall_max + 1)
348c2ecf20Sopenharmony_ci# define IA32_NR_syscalls (__NR_ia32_syscall_max + 1)
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci# define __ARCH_WANT_NEW_STAT
378c2ecf20Sopenharmony_ci# define __ARCH_WANT_OLD_READDIR
388c2ecf20Sopenharmony_ci# define __ARCH_WANT_OLD_STAT
398c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_ALARM
408c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_FADVISE64
418c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_GETHOSTNAME
428c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_GETPGRP
438c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_NICE
448c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_OLDUMOUNT
458c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_OLD_GETRLIMIT
468c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_OLD_UNAME
478c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_PAUSE
488c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_SIGNAL
498c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_SIGPENDING
508c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_SIGPROCMASK
518c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_SOCKETCALL
528c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_TIME32
538c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_UTIME32
548c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_WAITPID
558c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_FORK
568c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_VFORK
578c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_CLONE
588c2ecf20Sopenharmony_ci# define __ARCH_WANT_SYS_CLONE3
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci#endif /* _ASM_X86_UNISTD_H */
61