logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

th_get_pathname, th_get_uid, th_get_gid, th_get_mode, th_get_crc, th_get_size, th_get_mtime,

Description

       The th_get_*() functions extract individual fields from the current tar header associated  with  the  TAR
       handle t.

       The  TH_IS*()  macros  are  used  to  evaluate  what kind of file is pointed to by the current tar header
       associated with the TAR handle t.

       The TH_ISLONGNAME() and TH_ISLONGLINK() macros evaluate whether or not the GNU extensions are used by the
       current tar header associated with the TAR handle t.  This is only relevant if  the  TAR_GNU  option  was
       used when tar_open() was called.

Name

       th_get_pathname,    th_get_uid,   th_get_gid,   th_get_mode,   th_get_crc,   th_get_size,   th_get_mtime,
       th_get_devmajor, th_get_devminor, th_get_linkname - extract individual fields of a tar header

       TH_ISREG, TH_ISLNK, TH_ISSYM, TH_ISCHR, TH_ISBLK, TH_ISDIR, TH_ISFIFO - determine what kind of file a tar
       header refers to

       TH_ISLONGNAME, TH_ISLONGLINK - determine whether the GNU extensions are in use

See Also

tar_open(3)

University of Illinois                              Jan 2001                                  th_get_pathname(3)

Synopsis

#include<libtar.h>char*th_get_linkname(TAR*t);char*th_get_pathname(TAR*t);mode_tth_get_mode(TAR*t);uid_tth_get_uid(TAR*t);gid_tth_get_gid(TAR*t);intth_get_crc(TAR*t);off_tth_get_size(TAR*t);time_tth_get_mtime(TAR*t);major_tth_get_devmajor(TAR*t);minor_tth_get_devminor(TAR*t);intTH_ISREG(TAR*t);intTH_ISLNK(TAR*t);intTH_ISSYM(TAR*t);intTH_ISCHR(TAR*t);intTH_ISBLK(TAR*t);intTH_ISDIR(TAR*t);intTH_ISFIFO(TAR*t);intTH_ISLONGNAME(TAR*t);intTH_ISLONGLINK(TAR*t);

Version

       This man page documents version 1.2 of libtar.

See Also