While macOS used some userspace components from FreeBSD, it has no commonality with it. Darwin is a different kernel that works completely differently. macOS also has quite a bit its own stuff in the userspace.
https://developer.apple.com/library/archive/documentation/Da...