Is there a reason syscall numbers don’t match up between architectures?
Or is it just a quirk of history?
Or is it just a quirk of history?
Coming from BSD, I find this very confusing and tend to grumble when I'm tracing something and have to go groveling from the right errno.h. Eg:
% find ~/linux/ -name 'errno*' | wc -l
22
% find ~/freebsd/sys -name 'errno*' | wc -l 1I vaguely remember reading somewhere that the MIPS ones are weird to support compatibility with the existing unix syscall numbering, but I can't find any evidence for that anywhere, so maybe it was aspirational or I'm hallucinating.