xref: /DragonOS/kernel/src/common/stddef.h (revision 83ed0ebc293d5a10245089f627f52770fd5b9dd4)
1 #pragma once
2 
3 #include "./sys/types.h"
4 
5 #define NULL (void*)0
6 
7 typedef __PTRDIFF_TYPE__ ptrdiff_t; // Signed integer type of the result of subtracting two pointers.
8 
9 #ifndef __always_inline
10 #define __always_inline __inline__
11 #endif
12 
13 // 定义类型的缩写
14 typedef unsigned char uchar;
15 typedef unsigned short ushort;
16 typedef unsigned int uint;
17 typedef unsigned long ul;
18 typedef unsigned long long int ull;
19 typedef long long int ll;