https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116378
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For glibc (even though the Linux kernel might have a different mode_t idea, some targets are unsigned short, e.g. arm-linux-eabi) is always: #define __MODE_T_TYPE __U32_TYPE