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_set_from_stat, th_finish, th_set_type, th_set_path, th_set_link, th_set_device, th_set_user,

Description

       The th_set_*() functions each set an individual field of the current tar header associated with  the  TAR
       handle  t.   The th_set_user() and th_set_group() functions set both the numeric user/group ID fields and
       the user/group name text fields.  The other functions set only the field that they refer to.

       The th_set_from_stat() function uses the other th_set_*() functions to set all of  the  fields  at  once,
       based on the data passed to it in the argument s.

       The  th_finish()  function  sets  the  appropriate  constants  for the magic and version fields.  It then
       calculates the header checksum and fills in the checksum field.

Name

       th_set_from_stat,   th_finish,   th_set_type,   th_set_path,   th_set_link,  th_set_device,  th_set_user,
       th_set_group, th_set_mode, th_set_mtime, th_set_size - set fields of a tar file header

See Also

lstat(2)

University of Illinois                              Jan 2001                                 th_set_from_stat(3)

Synopsis

#include<libtar.h>voidth_set_from_stat(TAR*t,structstat*s);voidth_set_type(TAR*t,mode_tmode);voidth_set_path(TAR*t,char*pathname);voidth_set_link(TAR*t,char*linkname);voidth_set_device(TAR*t,dev_tdevice);voidth_set_user(TAR*t,uid_tuid);voidth_set_group(TAR*t,gid_tgid);voidth_set_mode(TAR*t,mode_tmode);voidth_set_mtime(TAR*t,time_tfmtime);voidth_set_size(TAR*t,off_tfsize);voidth_finish(TAR*t);

Version

       This man page documents version 1.2 of libtar.

See Also