logoalt Hacker News

nickelproyesterday at 10:12 PM2 repliesview on HN

If we're going to be pedantic, mmap is a syscall. It happens that the C version is standardized by POSIX.

The underlying syscall doesn't use the C ABI, you need to wrap it to use it from C in the same way you need to wrap it to use it from any language, which is exactly what glibc and friends do.

Moral of the story is mmap belongs to the platform, not the language.


Replies

a-dubyesterday at 10:14 PM

it also appears in operating systems that aren't written in c. i see it as an operating system feature, categorically.