unistd_x86.h 623 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_X86_UNISTD_H
  3. #define _ASM_X86_UNISTD_H
  4. /*
  5. * x32 syscall flag bit. Some user programs expect syscall NR macros
  6. * and __X32_SYSCALL_BIT to have type int, even though syscall numbers
  7. * are, for practical purposes, unsigned long.
  8. *
  9. * Fortunately, expressions like (nr & ~__X32_SYSCALL_BIT) do the right
  10. * thing regardless.
  11. */
  12. #define __X32_SYSCALL_BIT 0x40000000
  13. # ifdef __i386__
  14. # include <asm/unistd_32.h>
  15. # elif defined(__ILP32__)
  16. # include <asm/unistd_x32.h>
  17. # else
  18. # include <asm/unistd_64.h>
  19. # endif
  20. #endif /* _ASM_X86_UNISTD_H */