Loading...
Searching...
No Matches
Go to the documentation of this file.
8#define NULL ((void *)0)
26#define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
34#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
42#define offsetofend(TYPE, MEMBER) \
43 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
57#define struct_group(NAME, MEMBERS...) \
58 __struct_group(, NAME, , MEMBERS)
73#define struct_group_attr(NAME, ATTRS, MEMBERS...) \
74 __struct_group(, NAME, ATTRS, MEMBERS)
90#define struct_group_tagged(TAG, NAME, MEMBERS...) \
91 __struct_group(TAG, NAME, , MEMBERS)
103#define DECLARE_FLEX_ARRAY(TYPE, NAME) \
104 __DECLARE_FLEX_ARRAY(TYPE, NAME)
184#define __TRAILING_OVERLAP(TYPE, NAME, FAM, ATTRS, MEMBERS) \
188 unsigned char __offset_to_FAM[offsetof(TYPE, FAM)]; \
204#define TRAILING_OVERLAP(TYPE, NAME, FAM, MEMBERS) \
205 __TRAILING_OVERLAP(TYPE, NAME, FAM, , MEMBERS)