So I was searching for sys/mman.h and ideally sys/mman.c in https://opensource.apple.com/source/Libc/Libc-1244.20.1/ and didn't find it. Any idea why? Where could I find the source?
I assume you mean mmap.c - you can find the source files here:
The kernel part of the implementation where the functionality actually lies can be found here: