I need to get the source code of the "arch" command located in /usr/bin/arch for macOS Catalina( see the output of sw_vers command below).
macOS Catalina
ProductName: Mac OS X ProductVersion: 10.15.3 BuildVersion: 19D76 In case you need it, here are some architecture details:
MacBook-Pro 15-inch, 2019 Processor 2.3GHz * core Intel core i9 I found that macOS Catalina is one of many releases of Apple OS Darwin as explained here Darwin OS.
The same link also states that :
Darwin is an open-source Unix-like operating system first released by Apple Inc. in 2000. It is composed of code developed by Apple, as well as code derived from NeXTSTEP, BSD, Mach, and other free software projects.
So I thought that maybe I could find it here Free BSD Source at GitHub, but I had no luck there either.
Could someone please help? Thanks!!
https://opensource.apple.com/release/macos-1015.html