unistd.h 664 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _UAPI_ASM_X86_UNISTD_H
  3. #define _UAPI_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. #ifndef __KERNEL__
  14. # ifdef __i386__
  15. # include <asm/unistd_32.h>
  16. # elif defined(__ILP32__)
  17. # include <asm/unistd_x32.h>
  18. # else
  19. # include <asm/unistd_64.h>
  20. # endif
  21. #endif
  22. #endif /* _UAPI_ASM_X86_UNISTD_H */