logoalt Hacker News

account42today at 8:21 AM1 replyview on HN

ABI is not "whatever happens to work with this distro" but "what programs that comply with the API contract compile to". Overlapping memcpy arguments is an API contract violation and thus not something covered by the ABI either. This distinction is the entire reason why C has a separate memmove function. You can't just make up your own imaginary ABI contract and then blame the system when it doesn't fulfill it. That's going to result in self-inflicted plain on any OS.


Replies

pg83today at 8:42 AM

It's so good that Linus thinks differently!

show 1 reply