← Back to context

Comment by xelxebar

2 years ago

Okay, this is super cool. Thanks for sharing.

In a similar vein, jart's Cosmopolitan libc has a really fun collection of tables that compare various constants across platforms, e.g. syscalls, syscall flags, error numbers, etc. It includes (variants of) Linux, XNU, NT, and the BSDs.

https://github.com/jart/cosmopolitan/blob/master/libc/sysv/c...

In the off chance you haven't heard of Cosmopolitan yet, I hope you find the discovery as much fun as I have.

This is a thing of beauty. I used to make spreadsheets like this ages ago when I was working across Linux and Solaris, but they were nowhere near as thorough as this.

I am curious what the difference is supposed to be between "XNU's Not UNIX!" and "MacOS (Arm64)".

  • I'm guessing it's just x86-64 vs. AArch64. There are two columns, one marked "(Aarch64)", for Linux too.

    I would imagine the "MacOS" bit is there to emphasize that the values haven't been verified on iOS.

    • We only introduced Android support a few releases ago. I'd love to see Cosmo working on iOS too.