In the standard library (glibc) I see functions defined with leading double underscores, such as __mmap in sys/mman.h. What is the purpose? And how can we still call a function mmap which doesn’t seem to be declared anywhere. I mean we include sys/mman.h for that, but sys/mman.h doesn’t declare mmap, it declares only __mmap.
In the standard library (glibc) I see functions defined with leading double underscores, such
Share
From GNU’s manual:
This is a convention which is also used by C and C++ vendors.