| ARCHIVE_READ_EXTRACT(3) | Library Functions Manual | ARCHIVE_READ_EXTRACT(3) | 
archive_read_extract,
  archive_read_extract2,
  archive_read_extract_set_progress_callback —
#include <archive.h>
int
  
  archive_read_extract(struct archive
    *, struct archive_entry *, int
    flags);
int
  
  archive_read_extract2(struct archive
    *src, struct archive_entry *,
    struct archive *dest);
void
  
  archive_read_extract_set_progress_callback(struct
    archive *, void (*func)(void *),
    void *user_data);
archive_read_extract(),
    archive_read_extract_set_skip_file()archive_read_extract() creates a restore object
      using
      archive_write_disk_new(3)
      and
      archive_write_disk_set_standard_lookup(3),
      then transparently invokes
      archive_write_disk_set_options(3),
      archive_write_header(3),
      archive_write_data(3),
      and
      archive_write_finish_entry(3)
      to create the entry on disk and copy data into it. The
      flags argument is passed unmodified to
      archive_write_disk_set_options(3).archive_read_extract2()archive_read_extract()
      that allows you to provide your own restore object. In particular, this
      allows you to override the standard lookup functions using
      archive_write_disk_set_group_lookup(3),
      and
      archive_write_disk_set_user_lookup(3).
      Note that archive_read_extract2() does not accept
      a flags argument; you should use
      archive_write_disk_set_options() to set the
      restore options yourself.archive_read_extract_set_progress_callback()ARCHIVE_OK (the operation succeeded),
  ARCHIVE_WARN (the operation succeeded but a
  non-critical error was encountered), ARCHIVE_EOF
  (end-of-archive was encountered), ARCHIVE_RETRY (the
  operation failed but can be retried), and
  ARCHIVE_FATAL (there was a fatal error; the archive
  should be closed immediately).
archive_errno() and
  archive_error_string() functions.
| February 2, 2012 | NetBSD 10.0 |