Linux has binfmt_misc which allows arbitrary executable file formats to be recognized and passed to certain user space applications. Does macOS have a similar feature?
MacOS – Does macOS have something like Linux’s binfmt_misc feature
macos
Related Question
- MacOS – OS X: common paths for executable files
- MacOS – Terminal command to list application defaults
- MacOS – Make macOS look like a Linux desktop
- MacOS – Dealing with macos Versions feature and file syncing services
- MacOS – ny way to reproduce Windows’ new “Sets” feature
- MacOS – How does macOS High Sierra generate bold weights for its system font
- MacOS application does not launch when double clicked but does launch from terminal
- MacOS – Disk encryption format for external drives that works on both macos and linux
Best Answer
No, macOS does not come with a similar feature.
If you're interested in adding it yourself, you can could take a look at this project:
https://github.com/georghe-crihan/imgact_linux
It is a kernel extension that extends the kernel's
exec_shell_imgact()
function to recognize other file types (namely Linux ELF binaries) and pass them to a user space application to be executed. The source code is available, so it could potentially be tweaked and extended to provide functionality similar to binfmt_misc.