3 ms·
This is an interesting take considering Linux is Unix-like and macOS is technically a BSD derivative. I don’t think macOS will ever have a Linux syscall transla
by jchw 7y ago
This is an interesting take considering Linux is Unix-like and macOS is technically a BSD derivative. I don’t think macOS will ever have a Linux syscall translation layer/subsystem (WSL1) nor a lightweight VM with special integration (WSL2) but you can do sort of similar things in third party software, I think. Docker for Mac is using the native VM framework and includes a filesystem integration called osxfs, but despite mentioning the source code in documentation it does not appear to be open source at this time?
- rvz 7y agoExactly. It really doesn't need a syscall translation layer anyway given its Unix + BSD and POSIX foundations. Although this open-source project [0] does exist for macOS but it looks like its inactive. [0] https://github.com/linux-noah/noah https://github.com/linux-noah/noah
- riskyfive 7y agodoesn't macOS put a BSD translation of some sort in their kernel? Theres a microkernel, a driver api (device kit) and then 'bsd'
- riskyfive 7y agorandom wikipedia image that somewhat supports what I was thinking https://en.wikipedia.org/wiki/Darwin_(operating_system)#/media/File:Diagram_of_Mac_OS_X_architecture.svg https://en.wikipedia.org/wiki/Darwin_(operating_system)#/med...
- saagarjha 7y agoThe actual API layers are nowhere near that clean ;)
- yjftsjthsd-h 7y agoDarwin doesn't use a microkernel, but yeah they straight-up grafted a BSD syscall layer onto a Mach base.