3 ms·
The Mach APIs are available to userland applications, if you used a different kernel you’d have to implement them somehow
by mrpippy 2mo ago
The Mach APIs are available to userland applications, if you used a different kernel you’d have to implement them somehow
- ripdog 2mo agoBut do real apps actually use them directly? Or only through the userland libraries? Just FYI, the https://www.darlinghq.org https://www.darlinghq.org project is doing MacOS app compat on Linux - i.e. building the userland libraries.
- mrpippy 2mo agoYes, real apps use Mach messaging directly. i.e.: https://source.chromium.org/chromium/chromium/src/+/main:ipc/mach_port_mac.h https://source.chromium.org/chromium/chromium/src/+/main:ipc...
- ChocolateGod 2mo agoChrome is an outlier to how most apps will do things.
- nrr 2mo agoThe illustration that Chrome uses Mach ports is a counterexample to an (implied) insinuation that nothing in running in macOS user space uses Mach ports. Outlier or not, the fact there is at least one (albeit also very useful and very popular) application that uses them ties back to the conversation about how they're a kernel feature worth having for Mac compatibility.
- wpm 2mo agoAny launchd task that declares any MachServices does.