Lines Matching defs:archive
80 static char hdbuf[BLKMULT]; /* space for archive header on read */
191 * list the contents of an archive which match user supplied pattern(s)
204 * figure out archive type; pass any format specific options to the
205 * archive option processing routine; call the format init routine. We
217 * step through the archive until the format says it is done
268 * skip to next archive format header using values calculated
289 * extract the member(s) of an archive as specified by user supplied
305 * figure out archive type; pass any format specific options to the
306 * archive option processing routine; call the format init routine;
321 * so we can fix up hard links files later in the archive.
327 * step through each entry on the archive until the format read routine
353 * archive member
365 * with -u or -D only extract when the archive member is newer
393 * this archive member is now been selected. modify the name.
457 * process archive members that are not regular files.
495 * extract the file from the archive and skip over padding and
531 * Write an archive. used in both creating a new archive and appends on
532 * previously written archive.
564 * so we can fix up hard links files later in the archive.
575 * while there are files to archive, process them one at at time
596 * only archive if this file is newer than a file with
597 * the same name that is already stored on the archive
617 * can avoid writing a header to the archive for a file
668 * routine write routine store the file header on the archive
689 * Add file data to the archive, quit on write error. if we
690 * cannot write the entire file contents to the archive we
691 * must pad the archive to replace the missing file data
734 * Add file to previously written archive. Archive format specified by the
735 * user must agree with archive. The archive is read first to collect
736 * modification times (if -u) and locate the archive trailer. The archive
740 * -u is implemented by adding the new members to the end of the archive.
742 * version of the same file already stored in the archive. It is expected
744 * ones stored "earlier" in the archive (this may be a bad assumption as
747 * the entire archive (from the point were the old version was), or having
749 * header that invalidates a previous archive record. The posix spec left
767 * Do not allow an append operation if the actual archive is of a
773 tty_warn(1, "Cannot mix current archive format %s with %s",
792 * some archive formats encode hard links by recording the device and
794 * to the archive. When we append, we run the risk that newly added
796 * on the archive but during a previous run. If this happens, when the
797 * archive is extracted we get INCORRECT hard links. We avoid this by
799 * use the same device number as one found on the archive. remapping
802 * when the inode number is larger than storage space in the archive
809 * reading the archive may take a long time. If verbose tell the user
813 "%s: Reading archive to position at the end...", argv0);
818 * step through the archive until the format says it is done
847 * device number seen in the old part of the archive to be
886 * not truncate the archive).
896 * archive()
897 * write a new archive
901 archive(void)
907 * options write the archive
920 * use any archive storage. The EFFECT OF THE COPY IS THE SAME as if an
921 * archive was written and then extracted in the destination directory
976 * so we can fix up hard links files later in the archive.
987 * while there are files to archive, process them
1001 * archive.
1164 * try to find a valid header in the archive. Uses format specific
1171 * add a new byte from the archive to the end of the buffer and try again.
1210 * If we read 0 bytes (EOF) from an archive when we
1212 * an archive without the customary block of zeroes
1221 * some kind of archive read problem, try to resync the
1226 "Premature end of file on archive read");
1232 "Archive I/O error, cannot continue");
1236 "Archive I/O error. Trying to recover.");
1291 * time from the archive and place it at the end of the buffer.
1298 "Unable to append, archive header flaw");
1329 * Figure out what format an archive is. Handles archive with flaws by
1334 * 0 if archive found -1 otherwise
1348 * find the smallest header size in all archive formats and then set up
1349 * to read the archive.
1397 * archive format. Look to see if we have a match. The array
1419 * We have a flawed archive, no match. we start searching, but
1432 * determine the nature of the flaw in the archive in a
1450 tty_warn(1, "Sorry, unable to determine archive format.");