The device numbers in struct statx may be larger than dev_t
dev_t is already 64-bit in glibc, but on some platforms like Alpine
Linux and Android NDK, makedev is defined as more than 32-bit (
promoting to unsigned long long then left-shifting by 32bit), while dev_t is still 32-bit.
The device numbers in
struct statx
may be larger thandev_t
dev_t
is already 64-bit in glibc, but on some platforms like AlpineLinux and Android NDK,
makedev
is defined as more than 32-bit (promoting to
unsigned long long
then left-shifting by 32bit), whiledev_t
is still 32-bit.