1tar_extract_all(3)              C Library Calls             tar_extract_all(3)
2
3
4

NAME

6       tar_extract_all, tar_extract_glob, tar_append_tree - high-level tar ar‐
7       chive manipulation functions
8

SYNOPSIS

10       #include <libtar.h>
11
12       int tar_extract_all(TAR *t, char *prefix);
13
14       int tar_extract_glob(TAR *t, char *globname, char *prefix);
15
16       int tar_append_tree(TAR *t, char *realdir, char *savedir);
17

VERSION

19       This man page documents version 1.2 of libtar.
20

DESCRIPTION

22       The tar_extract_all() function extracts all files from the tar  archive
23       associated  with  the  TAR  handle  t into the path named by the prefix
24       argument.
25
26       The tar_extract_glob() function extracts all files matching  the  given
27       glob pattern from the tar archive associated with the TAR handle t into
28       the path named by the prefix argument.
29
30       The tar_append_tree() function appends all  files  from  the  directory
31       tree named by realdir to the tar archive associated with the TAR handle
32       t.  The pathnames stored in the tar archive are modified  by  replacing
33       realdir with savedir, so that the files will be extracted into savedir.
34

RETURN VALUES

36       On  successful  completion, these functions will return 0.  On failure,
37       they will return -1 and set errno to an appropriate value.
38

ERRORS

40       These  functions  will  fail  under  the  same  conditions   that   the
41       tar_skip_regfile(),   tar_extract_regfile(),   opendir(),  lstat(),  or
42       tar_append_file() functions fail.
43

SEE ALSO

45       opendir(2),  lstat(2),   tar_skip_regfile(3),   tar_extract_regfile(3),
46       tar_append_file(3)
47
48
49
50University of Illinois             Jan 2001                 tar_extract_all(3)
Impressum