__kernel_dev_t not exported
Hi folks
It is pretty undefined if linux/types.h exports __kernel_dev_t (and some other definitions) or not. This is controlled by a define which is set in feature.h from the glibc (__KERNEL_STRICT_NAMES).
Some arches include feature.h in the gcc headers, some not.
I'm not sure if this should be fixed in the kernel. Userspace should never see this standard definitions (dev_t, mode_t, off_t and so on).
Bastian
Signature · 2 lines
Extreme feminine beauty is always disturbing. -- Spock, "The Cloud Minders", stardate 5818.4
Quoted 3 lines · Bastian Blank
It is pretty undefined if
linux/types.hexports__kernel_dev_t(and some other definitions) or not. This is controlled by a define which is set infeature.hfrom the glibc (__KERNEL_STRICT_NAMES).
Forgot to say, that this breaks devmapper:
| In file included from ioctl/libdm-iface.c:22: | ioctl/libdm-compat.h:43: error: expected specifier-qualifier-list before '__kernel_dev_t' | ioctl/libdm-compat.h:63: error: expected specifier-qualifier-list before '__kernel_dev_t'
Bastian
Signature · 2 lines
Emotions are alien to me. I'm a scientist. -- Spock, "This Side of Paradise", stardate 3417.3