Maybe this should be part of ``sendfile``?