unistd.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_UNISTD_H
  3. #define _ASM_X86_UNISTD_H 1
  4. #include <uapi/asm/unistd.h>
  5. # ifdef CONFIG_X86_32
  6. # include <asm/unistd_32.h>
  7. # define __ARCH_WANT_STAT64
  8. # define __ARCH_WANT_SYS_IPC
  9. # define __ARCH_WANT_SYS_OLD_MMAP
  10. # define __ARCH_WANT_SYS_OLD_SELECT
  11. # define IA32_NR_syscalls (__NR_syscalls)
  12. # else
  13. # include <asm/unistd_64.h>
  14. # include <asm/unistd_64_x32.h>
  15. # include <asm/unistd_32_ia32.h>
  16. # define __ARCH_WANT_SYS_TIME
  17. # define __ARCH_WANT_SYS_UTIME
  18. # define __ARCH_WANT_COMPAT_STAT
  19. # define __ARCH_WANT_COMPAT_SYS_PREADV64
  20. # define __ARCH_WANT_COMPAT_SYS_PWRITEV64
  21. # define __ARCH_WANT_COMPAT_SYS_PREADV64V2
  22. # define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
  23. # define X32_NR_syscalls (__NR_x32_syscalls)
  24. # define IA32_NR_syscalls (__NR_ia32_syscalls)
  25. # endif
  26. # define NR_syscalls (__NR_syscalls)
  27. # define __ARCH_WANT_NEW_STAT
  28. # define __ARCH_WANT_OLD_READDIR
  29. # define __ARCH_WANT_OLD_STAT
  30. # define __ARCH_WANT_SYS_ALARM
  31. # define __ARCH_WANT_SYS_FADVISE64
  32. # define __ARCH_WANT_SYS_GETHOSTNAME
  33. # define __ARCH_WANT_SYS_GETPGRP
  34. # define __ARCH_WANT_SYS_NICE
  35. # define __ARCH_WANT_SYS_OLDUMOUNT
  36. # define __ARCH_WANT_SYS_OLD_GETRLIMIT
  37. # define __ARCH_WANT_SYS_OLD_UNAME
  38. # define __ARCH_WANT_SYS_PAUSE
  39. # define __ARCH_WANT_SYS_SIGNAL
  40. # define __ARCH_WANT_SYS_SIGPENDING
  41. # define __ARCH_WANT_SYS_SIGPROCMASK
  42. # define __ARCH_WANT_SYS_SOCKETCALL
  43. # define __ARCH_WANT_SYS_TIME32
  44. # define __ARCH_WANT_SYS_UTIME32
  45. # define __ARCH_WANT_SYS_WAITPID
  46. # define __ARCH_WANT_SYS_FORK
  47. # define __ARCH_WANT_SYS_VFORK
  48. # define __ARCH_WANT_SYS_CLONE
  49. # define __ARCH_WANT_SYS_CLONE3
  50. #endif /* _ASM_X86_UNISTD_H */