|
|
Subscribe / Log in / New account

How about this?

How about this?

Posted Dec 16, 2017 10:57 UTC (Sat) by cpitrat (subscriber, #116459)
In reply to: How about this? by Sesse
Parent article: MAP_FIXED_SAFE

I think the idea is to help people clarify their intent in their code. They can easily do that with a #define though so I don't see a real benefit in this proposition.


to post comments

How about this?

Posted Dec 16, 2017 13:01 UTC (Sat) by epa (subscriber, #39769) [Link]

The idea was that if you see MAP_FIXED then you know that this particular bit of code hasn't yet been audited and changed to either SAFE or UNSAFE. So checking your codebase is a simple grep. I guess as you say you can "#define MAP_FIXED_UNSAFE MAP_FIXED" and then use the new keyword.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds