Linux headers linux/magic.h and linux/poison.h seems to be strange. There's nothing but macros that can be expanded into constants in there.
And it seems that some user-space app depend on them.
I can't understand what these 2 headers do.
Linux headers linux/magic.h and linux/poison.h seems to be strange. There's nothing but macros that can be expanded into constants in there.
And it seems that some user-space app depend on them.
I can't understand what these 2 headers do.
linux/magic.h defines constants used to identify the format of a filesystem (by identifying magic number in superblock). See more here.
linux/poison.h defines constants used in pointer poisoning, ie. pointers with specified values can't be used without a crash and are somewhat easier to track. See another answer here.