Solution 1:

hdiutil is Apple proprietary software and not part of the public Darwin source code. Since Apple doesn't provide it, a port is not possible.