Tar_unixSourceUnix I/O for tar-formatted data.
really_read fd buf fills buf with data from fd or raises Stdlib.End_of_file.
really_write fd buf writes the full contents of buf to fd or Stdlib.End_of_file.
Returns the next header block or throws End_of_stream if two consecutive zero-filled blocks are discovered. Assumes stream is positioned at the possible start of a header block.
Return the header needed for a particular file on disk.
val write_block :
?level:Tar.Header.compatibility ->
Tar.Header.t ->
(Unix.file_descr -> unit) ->
Unix.file_descr ->
unitWrite hdr, then call write_body fd to write the body, then zero-pads so the stream is positioned for the next block.
Write a stream terminator to fd.