modify I/Fs to allow caller to use file:sendfile