rposix: implement sendfile on darwin (and freebsd?)

I didn't notice that the commit message mentioned the branch until after pushing this, but this is the same as !760 (closed), targeting the default branch.

Merge request reports