When you look into Linux 'man mmap' you'll find MAP_UNINITIALIZED which exists for roughly 14 years (in the Linux kernel). However when I include sys/mman.h it says MAP_UNINITIALIZED is undeclared. I am not 100% sure if this is a bug in glibc or intention. I searched the web, mailing lists, stackoverflow and the glibc source code and found nothing about why this macro is undefined in glibc. The only comment about this flag is in tst-mman-consts.py. It says MAP_UNINITIALIZED is kernel only. Does that mean glibc doesn't support Linux only features? I am not sure.
In the glibc documentation MAP_UNINITIALIZED is also not found.
MAP_UNINITIALIZED is specific to nommu, and ignored in a normal kernel.
Does that mean glibc doesn't want to support this flag?
glibc does not support nommu.
That's all I wanted to know thanks...
This is not a bug. See previous comments.