1th_get_pathname(3) C Library Calls th_get_pathname(3)
2
3
4
6 th_get_pathname, th_get_uid, th_get_gid, th_get_mode, th_get_crc,
7 th_get_size, th_get_mtime, th_get_devmajor, th_get_devminor,
8 th_get_linkname - extract individual fields of a tar header
9
10 TH_ISREG, TH_ISLNK, TH_ISSYM, TH_ISCHR, TH_ISBLK, TH_ISDIR, TH_ISFIFO -
11 determine what kind of file a tar header refers to
12
13 TH_ISLONGNAME, TH_ISLONGLINK - determine whether the GNU extensions are
14 in use
15
17 #include <libtar.h>
18
19 char *th_get_linkname(TAR *t);
20
21 char *th_get_pathname(TAR *t);
22
23 mode_t th_get_mode(TAR *t);
24
25 uid_t th_get_uid(TAR *t);
26
27 gid_t th_get_gid(TAR *t);
28
29 int th_get_crc(TAR *t);
30
31 off_t th_get_size(TAR *t);
32
33 time_t th_get_mtime(TAR *t);
34
35 major_t th_get_devmajor(TAR *t);
36
37 minor_t th_get_devminor(TAR *t);
38
39 int TH_ISREG(TAR *t);
40
41 int TH_ISLNK(TAR *t);
42
43 int TH_ISSYM(TAR *t);
44
45 int TH_ISCHR(TAR *t);
46
47 int TH_ISBLK(TAR *t);
48
49 int TH_ISDIR(TAR *t);
50
51 int TH_ISFIFO(TAR *t);
52
53 int TH_ISLONGNAME(TAR *t);
54
55 int TH_ISLONGLINK(TAR *t);
56
58 This man page documents version 1.2 of libtar.
59
61 The th_get_*() functions extract individual fields from the current tar
62 header associated with the TAR handle t.
63
64 The TH_IS*() macros are used to evaluate what kind of file is pointed
65 to by the current tar header associated with the TAR handle t.
66
67 The TH_ISLONGNAME() and TH_ISLONGLINK() macros evaluate whether or not
68 the GNU extensions are used by the current tar header associated with
69 the TAR handle t. This is only relevant if the TAR_GNU option was used
70 when tar_open() was called.
71
73 tar_open(3)
74
75
76
77University of Illinois Jan 2001 th_get_pathname(3)