Hacker News new | past | comments | ask | show | jobs | submit login

sbrk competes with mmap, not mprotect.

And yes, I would expect mmap to be used in most modern systems. OS X, for instance, just emulates sbrk with a large static buffer, and it has no actual effect on the page tables.





Updated, sorry, they almost seem like the same API to me—I've never used one without the other. I have no idea whether that's actually the case.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: