Where do the man pages about libc come frome?
They cannot come from glibc because they slightly differ from glibc's API.
One example is the man page for mmap. It describes a flag MAP_UNINITIALIZED.
But this flag doesn't exist in glibc. Glibc doesn't want to support this flag because they say it's kernel only. If you grep glibc source you can also see they never define this macro anywhere.
So where do the man pages about libc come from if they do not come from glibc?
At least on my manpage for mmap(2) it says at the top: "Linux Programmer's Manual".
If you wan't to know where a man page (or program etc.) resides call
whereis:If you need to known, where this file comes from, assuming you have installed it with
apt, tryapt-file:You can then show you the metadata of a package with
apt status:This leads you to the URL:
https://www.kernel.org/doc/man-pages/.The actual repository is:
https://git.kernel.org/pub/scm/docs/man-pages/