Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI_ASM_X86_UNISTD_H
0003 #define _UAPI_ASM_X86_UNISTD_H
0004 
0005 /*
0006  * x32 syscall flag bit.  Some user programs expect syscall NR macros
0007  * and __X32_SYSCALL_BIT to have type int, even though syscall numbers
0008  * are, for practical purposes, unsigned long.
0009  *
0010  * Fortunately, expressions like (nr & ~__X32_SYSCALL_BIT) do the right
0011  * thing regardless.
0012  */
0013 #define __X32_SYSCALL_BIT   0x40000000
0014 
0015 #ifndef __KERNEL__
0016 # ifdef __i386__
0017 #  include <asm/unistd_32.h>
0018 # elif defined(__ILP32__)
0019 #  include <asm/unistd_x32.h>
0020 # else
0021 #  include <asm/unistd_64.h>
0022 # endif
0023 #endif
0024 
0025 #endif /* _UAPI_ASM_X86_UNISTD_H */