/* * Copyright (c) 2006-2024, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2024/01/11 flyingcys The first version */ #ifndef _LINUX_TYPES_H #define _LINUX_TYPES_H #ifndef __ASSEMBLY__ #ifdef CONFIG_64BIT typedef unsigned long uintptr_t; typedef unsigned long size_t; /* bsd */ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; /* sysv */ typedef unsigned char unchar; typedef unsigned short ushort; typedef unsigned int uint; typedef unsigned long ulong; typedef signed char s8; typedef signed short s16; typedef signed int s32; typedef signed long s64; typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long u64; typedef signed char __s8; typedef signed short __s16; typedef signed int __s32; typedef signed long __s64; typedef unsigned char __u8; typedef unsigned short __u16; typedef unsigned int __u32; typedef unsigned long __u64; #endif /* CONFIG_64BIT */ #endif /* __ASSEMBLY__ */ #endif /* _LINUX_TYPES_H */