Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
sparse_2_k.c File Reference
#include "obstack.h"
#include "verify.h"

Go to the source code of this file.

Data Structures

struct  fmttab
 
struct  hash_entry
 
struct  hash_table
 
struct  hash_tuning
 
struct  mapentry
 
struct  mode_change
 
struct  tar_sparse_file
 
struct  tar_sparse_optab
 

Macros

#define Print_Long_ARP   "I64"
 
#define S_ISCTG(mode)
 
#define CHKBLANKS   " "
 
#define UNAME_FIELD_SIZE   32
 
#define GNAME_FIELD_SIZE   32
 
#define NAME_FIELD_SIZE   100
 
#define PREFIX_FIELD_SIZE   155
 
#define GLOBAL_HEADER_TEMPLATE   "/GlobalHead.%p.%n"
 
#define MAX(a, b)
 
#define DEFAULT_ALIGNMENT
 
#define DEFAULT_ROUNDING
 
#define FILE_SYSTEM_PREFIX_LEN(P)
 
#define ISSLASH(C)
 
#define UNAME_TO_CHARS(name, buf)
 
#define GNAME_TO_CHARS(name, buf)
 
#define MINOR_TO_CHARS(val, where)
 
#define MAJOR_TO_CHARS(val, where)
 
#define MODE_TO_CHARS(val, where)
 
#define UID_TO_CHARS(val, where)
 
#define GID_TO_CHARS(val, where)
 
#define S_ISUID   04000
 
#define S_ISGID   02000
 
#define S_ISVTX   01000
 
#define S_IRGRP   (S_IRUSR >> 3)
 
#define S_IWGRP   (S_IWUSR >> 3)
 
#define S_IXGRP   (S_IXUSR >> 3)
 
#define MODE_WXUSR   (S_IWUSR | S_IXUSR)
 
#define MODE_R   (S_IRUSR | S_IRGRP | S_IROTH)
 
#define MODE_RW   (S_IWUSR | S_IWGRP | S_IWOTH | MODE_R)
 
#define MODE_RWX   (S_IXUSR | S_IXGRP | S_IXOTH | MODE_RW)
 
#define MODE_ALL   (S_ISUID | S_ISGID | S_ISVTX | MODE_RWX)
 
#define CHMOD_MODE_BITS    (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
 
#define STRINGIFY_BIGINT(i, b)
 
#define LG_8   3
 
#define LG_64   6
 
#define LG_256   8
 
#define MAX_VAL_WITH_DIGITS(digits, bits_per_digit)
 
#define MAX_OCTAL_VAL(buffer)
 
#define OFF_TO_CHARS(val, where)
 
#define TIME_TO_CHARS(val, where)
 
#define MAX_VAL_WITH_DIGITS(digits, bits_per_digit)
 
#define DEFAULT_GROWTH_THRESHOLD   0.8f
 
#define DEFAULT_GROWTH_FACTOR   1.414f
 
#define DEFAULT_SHRINK_THRESHOLD   0.0f
 
#define DEFAULT_SHRINK_FACTOR   1.0f
 
#define ISDIGIT(c)
 
#define xalloc_oversized(n, s)
 
#define _GL_ADD_OVERFLOW(a, b, min, max)
 
#define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow)
 
#define INT_ADD_OVERFLOW(a, b)
 
#define COPY_STRING(b, dst, src)
 
#define COPY_BUF(b, buf, src)
 

Typedefs

typedef int gid_t
 
typedef int uid_t
 
typedef size_t(* Hash_hasher) (const void *, size_t)
 
typedef bool(* Hash_comparator) (const void *, const void *)
 
typedef void(* Hash_data_freer) (void *)
 
typedef bool(* Hash_processor) (void *, void *)
 
typedef struct hash_tuning Hash_tuning
 
typedef struct hash_table Hash_table
 

Enumerations

enum  { TIMESPEC_HZ = 1000000000 }
 
enum  set_mtime_option_mode { USE_FILE_MTIME , FORCE_MTIME , CLAMP_MTIME }
 
enum  { MODE_DONE , MODE_ORDINARY_CHANGE , MODE_X_IF_ANY_X , MODE_COPY_EXISTING }
 
enum  oldgnu_add_status { add_ok , add_finish , add_fail }
 
enum  sparse_scan_state { scan_begin , scan_block , scan_end }
 

Functions

bool off_to_chars (off_t v, char *p, size_t s)
 
bool time_to_chars (time_t v, char *p, size_t s)
 
union blockwrite_extended (bool global, struct tar_stat_info *st, union block *old_header)
 
void finish_header (struct tar_stat_info *st, union block *header, off_t block_ordinal)
 
void _obstack_newchunk (struct obstack *h, _OBSTACK_SIZE_T length)
 
int _obstack_begin (struct obstack *h, _OBSTACK_SIZE_T size, _OBSTACK_SIZE_T alignment, void *(*chunkfun)(size_t), void(*freefun)(void *))
 
char * last_component (char const *name)
 
void simple_finish_header (union block *header)
 
void tar_name_copy_str (char *dst, const char *src, size_t len)
 
union blockstart_private_header (const char *name, size_t size, time_t t)
 
void xheader_write (char type, char *name, time_t t, struct xheader *xhdr)
 
char * xheader_ghdr_name (void)
 
void xheader_finish (struct xheader *xhdr)
 
void xheader_string_add (struct xheader *xhdr, char const *s)
 
void xheader_string_begin (struct xheader *xhdr)
 
void gid_to_gname (int gid, char **gname)
 
void uid_to_uname (uid_t uid, char **uname)
 
int timespec_cmp (struct timespec a, struct timespec b)
 
mode_t mode_adjust (mode_t oldmode, bool dir, mode_t umask_value, struct mode_change const *changes, mode_t *pmode_bits)
 
void * hash_lookup (const Hash_table *table, const void *entry)
 
int group_map_translate (gid_t gid, gid_t *new_gid, char const **new_name)
 
int owner_map_translate (uid_t uid, uid_t *new_uid, char const **new_name)
 
bool string_ascii_p (char const *p)
 
union blockstart_header (struct tar_stat_info *st)
 
char * stpcpy (char *dest, const char *src)
 
bool hash_rehash (Hash_table *table, size_t candidate)
 
int hash_insert_if_absent (Hash_table *table, void const *entry, void const **matched_ent)
 
void * hash_insert (Hash_table *table, void const *entry)
 
size_t hash_string (const char *string, size_t n_buckets)
 
size_t rotr_sz (size_t x, int n)
 
Hash_tablehash_initialize (size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, Hash_comparator comparator, Hash_data_freer data_freer)
 
char * safer_name_suffix (char const *file_name, bool link_target, bool absolute_names)
 
char * mdir_name (char const *file)
 
char * dir_name (char const *file)
 
char * xheader_format_name (struct tar_stat_info *st, const char *fmt, size_t n)
 
void xheader_store (char const *keyword, struct tar_stat_info *st, void const *data)
 
bool xheader_keyword_deleted_p (const char *kw)
 
enum dump_status sparse_extract_file (int fd, struct tar_stat_info *st, off_t *size)
 
const char * archive_format_string (enum archive_format fmt)
 
void finish_header (struct tar_stat_info *st, union block *header, __attribute__((unused)) off_t block_ordinal)
 
bool xheader_string_end (struct xheader *xhdr, char const *keyword)
 
void uid_to_uname (__attribute__((unused)) uid_t uid, char **uname)
 
int hash_insert_if_absent_version_1_32 (Hash_table *table, void const *entry, void const **matched_ent)
 
char * mdir_name (__attribute__((unused)) char const *file)
 
enum dump_status sparse_skip_file (struct tar_stat_info *st)
 
void seek_diag_details (char const *name, off_t offset)
 
void seek_warn_details (char const *name, off_t offset)
 
void seek_error_details (char const *name, off_t offset)
 
int sys_truncate (int fd)
 
size_t blocking_write (int fd, void const *buf, size_t count)
 
void * x2nrealloc (void *p, size_t *pn, size_t s)
 
void skip_file (off_t size)
 
bool sparse_member_p (struct tar_stat_info *st)
 
bool sparse_fixup_header (struct tar_stat_info *st)
 

Variables

GLOBAL enum set_mtime_option_mode set_mtime_option
 
GLOBAL int xattrs_option
 
GLOBAL int selinux_context_option
 
GLOBAL int acls_option
 
GLOBAL uid_t owner_option
 
GLOBAL gid_t group_option
 
GLOBAL bool absolute_names_option
 
GLOBAL char constowner_name_option
 
GLOBAL char constgroup_name_option
 
GLOBAL mode_t initial_umask
 
GLOBAL struct mode_changemode_option
 
GLOBAL struct timespec mtime_option
 
GLOBAL unsigned tar_sparse_major
 
GLOBAL unsigned tar_sparse_minor
 

Macro Definition Documentation

◆ _GL_ADD_OVERFLOW

#define _GL_ADD_OVERFLOW ( a,
b,
min,
max )
Value:
__builtin_add_overflow_p(a, b, (__typeof__((a) + (b)))0)
#define b(i)
Definition sha256.c:42
#define a(i)
Definition sha256.c:41

◆ _GL_BINARY_OP_OVERFLOW

#define _GL_BINARY_OP_OVERFLOW ( a,
b,
op_result_overflow )
Value:
op_result_overflow(a, b, \
_GL_INT_MINIMUM(_GL_INT_CONVERT(a, b)), \
_GL_INT_MAXIMUM(_GL_INT_CONVERT(a, b)))

◆ CHKBLANKS

#define CHKBLANKS   " "

◆ CHMOD_MODE_BITS

#define CHMOD_MODE_BITS    (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)

◆ COPY_BUF

#define COPY_BUF ( b,
buf,
src )
Value:
do \
{ \
char *endp = b->buffer + BLOCKSIZE; \
char *dst = buf; \
do \
{ \
if (dst == buf + 5000 - 1) \
{ \
printf("%s: numeric overflow in sparse archive member", \
file->stat_info->orig_file_name); \
return false; \
} \
if (src == endp) \
{ \
set_next_block_after(b); \
if (!b) \
printf("Unexpected EOF in archive"); \
src = b->buffer; \
endp = b->buffer + BLOCKSIZE; \
} \
*dst = *src++; \
} while (*dst++ != '\n'); \
dst[-1] = 0; \
} while (0)
char * dst
Definition lz4.h:833
const char * src
Definition lz4.h:866
char buf[N_BUF]
Definition spewG.c:36
#define BLOCKSIZE
Definition tar.h:248
union block * find_next_block(void)
Definition tar_1_33.c:6798

◆ COPY_STRING

#define COPY_STRING ( b,
dst,
src )
Value:
do \
{ \
char *endp = b->buffer + BLOCKSIZE; \
char const *srcp = src; \
while (*srcp) \
{ \
if (dst == endp) \
{ \
set_next_block_after(b); \
dst = b->buffer; \
endp = b->buffer + BLOCKSIZE; \
} \
*dst++ = *srcp++; \
} \
} while (0)

◆ DEFAULT_ALIGNMENT

#define DEFAULT_ALIGNMENT
Value:
MAX(__alignof__(long double), \
MAX(__alignof__(uintmax_t), \
__alignof__(void *)))
#define MAX(a, b)
Definition sparse_2_k.c:31

◆ DEFAULT_GROWTH_FACTOR

#define DEFAULT_GROWTH_FACTOR   1.414f

◆ DEFAULT_GROWTH_THRESHOLD

#define DEFAULT_GROWTH_THRESHOLD   0.8f

◆ DEFAULT_ROUNDING

#define DEFAULT_ROUNDING
Value:
MAX(sizeof(long double), \
MAX(sizeof(uintmax_t), \
sizeof(void *)))

◆ DEFAULT_SHRINK_FACTOR

#define DEFAULT_SHRINK_FACTOR   1.0f

◆ DEFAULT_SHRINK_THRESHOLD

#define DEFAULT_SHRINK_THRESHOLD   0.0f

◆ FILE_SYSTEM_PREFIX_LEN

#define FILE_SYSTEM_PREFIX_LEN ( P)
Value:
0

◆ GID_TO_CHARS

#define GID_TO_CHARS ( val,
where )
Value:
gid_to_chars(val, where, sizeof(where))

◆ GLOBAL_HEADER_TEMPLATE

#define GLOBAL_HEADER_TEMPLATE   "/GlobalHead.%p.%n"

◆ GNAME_FIELD_SIZE

#define GNAME_FIELD_SIZE   32

◆ GNAME_TO_CHARS

#define GNAME_TO_CHARS ( name,
buf )
Value:
string_to_chars(name, buf, sizeof(buf))
char name[NAME_LEN_MAX+1]
Name of the filter.
Definition string_conversion.c:450

◆ INT_ADD_OVERFLOW

#define INT_ADD_OVERFLOW ( a,
b )
Value:
#define _GL_ADD_OVERFLOW(a, b, min, max)
Definition sparse_2_k.c:560
#define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow)
Definition sparse_2_k.c:563

◆ ISDIGIT

#define ISDIGIT ( c)
Value:
((unsigned)(c) - '0' <= 9)
#define c(i)
Definition sha256.c:43

◆ ISSLASH

#define ISSLASH ( C)
Value:
((C) == '/')
#define C(x)
Definition crc_macros.h:25

◆ LG_256

#define LG_256   8

◆ LG_64

#define LG_64   6

◆ LG_8

#define LG_8   3

◆ MAJOR_TO_CHARS

#define MAJOR_TO_CHARS ( val,
where )
Value:
major_to_chars(val, where, sizeof(where))

◆ MAX

#define MAX ( a,
b )
Value:
((a) > (b) ? (a) : (b))

◆ MAX_OCTAL_VAL

#define MAX_OCTAL_VAL ( buffer)
Value:
MAX_VAL_WITH_DIGITS(sizeof(buffer) - 1, LG_8)
#define MAX_VAL_WITH_DIGITS(digits, bits_per_digit)
Definition sparse_2_k.c:179
#define LG_8
Definition sparse_2_k.c:173

◆ MAX_VAL_WITH_DIGITS [1/2]

#define MAX_VAL_WITH_DIGITS ( digits,
bits_per_digit )
Value:
((digits) * (bits_per_digit) < sizeof(uintmax_t) * CHAR_BIT \
? ((uintmax_t)1 << ((digits) * (bits_per_digit))) - 1 \
: (uintmax_t)-1)

◆ MAX_VAL_WITH_DIGITS [2/2]

#define MAX_VAL_WITH_DIGITS ( digits,
bits_per_digit )
Value:
((digits) * (bits_per_digit) < sizeof(uintmax_t) * CHAR_BIT \
? ((uintmax_t)1 << ((digits) * (bits_per_digit))) - 1 \
: (uintmax_t)-1)

◆ MINOR_TO_CHARS

#define MINOR_TO_CHARS ( val,
where )
Value:
minor_to_chars(val, where, sizeof(where))

◆ MODE_ALL

#define MODE_ALL   (S_ISUID | S_ISGID | S_ISVTX | MODE_RWX)

◆ MODE_R

#define MODE_R   (S_IRUSR | S_IRGRP | S_IROTH)

◆ MODE_RW

#define MODE_RW   (S_IWUSR | S_IWGRP | S_IWOTH | MODE_R)

◆ MODE_RWX

#define MODE_RWX   (S_IXUSR | S_IXGRP | S_IXOTH | MODE_RW)

◆ MODE_TO_CHARS

#define MODE_TO_CHARS ( val,
where )
Value:
mode_to_chars(val, where, sizeof(where))

◆ MODE_WXUSR

#define MODE_WXUSR   (S_IWUSR | S_IXUSR)

◆ NAME_FIELD_SIZE

#define NAME_FIELD_SIZE   100

◆ OFF_TO_CHARS

#define OFF_TO_CHARS ( val,
where )
Value:
off_to_chars(val, where, sizeof(where))
bool off_to_chars(off_t v, char *p, size_t s)
Definition create_zen_ar.c:1152

◆ PREFIX_FIELD_SIZE

#define PREFIX_FIELD_SIZE   155

◆ Print_Long_ARP

#define Print_Long_ARP   "I64"

◆ S_IRGRP

#define S_IRGRP   (S_IRUSR >> 3)

◆ S_ISCTG

#define S_ISCTG ( mode)
Value:
0

◆ S_ISGID

#define S_ISGID   02000

◆ S_ISUID

#define S_ISUID   04000

◆ S_ISVTX

#define S_ISVTX   01000

◆ S_IWGRP

#define S_IWGRP   (S_IWUSR >> 3)

◆ S_IXGRP

#define S_IXGRP   (S_IXUSR >> 3)

◆ STRINGIFY_BIGINT

#define STRINGIFY_BIGINT ( i,
b )
Value:
char * umaxtostr(uintmax_t i, char *buf)
Definition create_zen_ar.c:952
lzma_index ** i
Definition index.h:629

◆ TIME_TO_CHARS

#define TIME_TO_CHARS ( val,
where )
Value:
time_to_chars(val, where, sizeof(where))
bool time_to_chars(time_t v, char *p, size_t s)
Definition create_zen_ar.c:886

◆ UID_TO_CHARS

#define UID_TO_CHARS ( val,
where )
Value:
uid_to_chars(val, where, sizeof(where))

◆ UNAME_FIELD_SIZE

#define UNAME_FIELD_SIZE   32

◆ UNAME_TO_CHARS

#define UNAME_TO_CHARS ( name,
buf )
Value:
string_to_chars(name, buf, sizeof(buf))

◆ xalloc_oversized

#define xalloc_oversized ( n,
s )
Value:
((size_t)(PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) < (n))

Typedef Documentation

◆ gid_t

typedef int gid_t

◆ Hash_comparator

typedef bool(* Hash_comparator) (const void *, const void *)

◆ Hash_data_freer

typedef void(* Hash_data_freer) (void *)

◆ Hash_hasher

typedef size_t(* Hash_hasher) (const void *, size_t)

◆ Hash_processor

typedef bool(* Hash_processor) (void *, void *)

◆ Hash_table

typedef struct hash_table Hash_table

◆ Hash_tuning

typedef struct hash_tuning Hash_tuning

◆ uid_t

typedef int uid_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TIMESPEC_HZ 

◆ anonymous enum

anonymous enum
Enumerator
MODE_DONE 
MODE_ORDINARY_CHANGE 
MODE_X_IF_ANY_X 
MODE_COPY_EXISTING 

◆ oldgnu_add_status

Enumerator
add_ok 
add_finish 
add_fail 

◆ set_mtime_option_mode

Enumerator
USE_FILE_MTIME 
FORCE_MTIME 
CLAMP_MTIME 

◆ sparse_scan_state

Enumerator
scan_begin 
scan_block 
scan_end 

Function Documentation

◆ _obstack_begin()

int _obstack_begin ( struct obstack * h,
_OBSTACK_SIZE_T size,
_OBSTACK_SIZE_T alignment,
void *(* chunkfun )(size_t),
void(* freefun )(void *) )

Tar related function, version 1.34

◆ _obstack_newchunk()

void _obstack_newchunk ( struct obstack * h,
_OBSTACK_SIZE_T length )

Tar related function, version 1.34

◆ archive_format_string()

const char * archive_format_string ( enum archive_format fmt)

Tar related function, version 1.34

◆ blocking_write()

size_t blocking_write ( int fd,
void const * buf,
size_t count )

Tar related function, version 1.34, with small modifications

◆ dir_name()

char * dir_name ( char const * file)

Tar related function, version 1.34

◆ finish_header() [1/2]

void finish_header ( struct tar_stat_info * st,
union block * header,
__attribute__((unused)) off_t block_ordinal )

Tar related function, version 1.34

◆ finish_header() [2/2]

void finish_header ( struct tar_stat_info * st,
union block * header,
off_t block_ordinal )

◆ gid_to_gname()

void gid_to_gname ( int gid,
char ** gname )

◆ group_map_translate()

int group_map_translate ( gid_t gid,
gid_t * new_gid,
char const ** new_name )

Tar related function, version 1.34

◆ hash_initialize()

Hash_table * hash_initialize ( size_t candidate,
const Hash_tuning * tuning,
Hash_hasher hasher,
Hash_comparator comparator,
Hash_data_freer data_freer )

Tar related function, version 1.34

◆ hash_insert()

void * hash_insert ( Hash_table * table,
void const * entry )

Tar related function, version 1.34

◆ hash_insert_if_absent()

int hash_insert_if_absent ( Hash_table * table,
void const * entry,
void const ** matched_ent )

Tar related function, version 1.34

◆ hash_insert_if_absent_version_1_32()

int hash_insert_if_absent_version_1_32 ( Hash_table * table,
void const * entry,
void const ** matched_ent )

Tar related function, version 1.34

◆ hash_lookup()

void * hash_lookup ( const Hash_table * table,
const void * entry )

Tar related function, version 1.34

◆ hash_rehash()

bool hash_rehash ( Hash_table * table,
size_t candidate )

Tar related function, version 1.34

◆ hash_string()

size_t hash_string ( const char * string,
size_t n_buckets )

Tar related function, version 1.34

◆ last_component()

char * last_component ( char const * name)

Tar related function, version 1.34

◆ mdir_name() [1/2]

char * mdir_name ( __attribute__((unused)) char const * file)

Tar related function, version 1.34

◆ mdir_name() [2/2]

char * mdir_name ( char const * file)

◆ mode_adjust()

mode_t mode_adjust ( mode_t oldmode,
bool dir,
mode_t umask_value,
struct mode_change const * changes,
mode_t * pmode_bits )

Tar related function, version 1.34

◆ off_to_chars()

bool off_to_chars ( off_t v,
char * p,
size_t s )

Tar related function, version 1.34

◆ owner_map_translate()

int owner_map_translate ( uid_t uid,
uid_t * new_uid,
char const ** new_name )

Tar related function, version 1.34

◆ rotr_sz()

size_t rotr_sz ( size_t x,
int n )

Tar related function, version 1.34

◆ safer_name_suffix()

char * safer_name_suffix ( char const * file_name,
bool link_target,
bool absolute_names )

Tar related function, version 1.34

◆ seek_diag_details()

void seek_diag_details ( char const * name,
off_t offset )

Tar related function, version 1.34

◆ seek_error_details()

void seek_error_details ( char const * name,
off_t offset )

Tar related function, version 1.34

◆ seek_warn_details()

void seek_warn_details ( char const * name,
off_t offset )

Tar related function, version 1.34

◆ simple_finish_header()

void simple_finish_header ( union block * header)

Tar related function, version 1.34

◆ skip_file()

void skip_file ( off_t size)

Tar related function, version 1.34, slightly modified

◆ sparse_extract_file()

enum dump_status sparse_extract_file ( int fd,
struct tar_stat_info * st,
off_t * size )

Tar related function, version 1.34

◆ sparse_fixup_header()

bool sparse_fixup_header ( struct tar_stat_info * st)

Tar related function, version 1.34

◆ sparse_member_p()

bool sparse_member_p ( struct tar_stat_info * st)

Tar related function, version 1.34

◆ sparse_skip_file()

enum dump_status sparse_skip_file ( struct tar_stat_info * st)

Tar related function, version 1.34

◆ start_header()

union block * start_header ( struct tar_stat_info * st)

Tar related function, version 1.34

◆ start_private_header()

union block * start_private_header ( const char * name,
size_t size,
time_t t )

Tar related function, version 1.34

◆ stpcpy()

char * stpcpy ( char * dest,
const char * src )

Tar related function, version 1.34

◆ string_ascii_p()

bool string_ascii_p ( char const * p)

Tar related function, version 1.34

◆ sys_truncate()

int sys_truncate ( int fd)

Tar related function, version 1.34

◆ tar_name_copy_str()

void tar_name_copy_str ( char * dst,
const char * src,
size_t len )

Tar related function, version 1.34

◆ time_to_chars()

bool time_to_chars ( time_t v,
char * p,
size_t s )

Tar related function, version 1.34

◆ timespec_cmp()

int timespec_cmp ( struct timespec a,
struct timespec b )

Tar related function, version 1.34

◆ uid_to_uname() [1/2]

void uid_to_uname ( __attribute__((unused)) uid_t uid,
char ** uname )

Tar related function, version 1.34, modified for windows

◆ uid_to_uname() [2/2]

void uid_to_uname ( uid_t uid,
char ** uname )

◆ write_extended()

union block * write_extended ( bool global,
struct tar_stat_info * st,
union block * old_header )

◆ x2nrealloc()

void * x2nrealloc ( void * p,
size_t * pn,
size_t s )

Tar related function, version 1.34

◆ xheader_finish()

void xheader_finish ( struct xheader * xhdr)

Tar related function, version 1.34

◆ xheader_format_name()

char * xheader_format_name ( struct tar_stat_info * st,
const char * fmt,
size_t n )

Tar related function, version 1.34

◆ xheader_ghdr_name()

char * xheader_ghdr_name ( void )

Tar related function, version 1.34

◆ xheader_keyword_deleted_p()

bool xheader_keyword_deleted_p ( const char * kw)

Tar related function, version 1.34

◆ xheader_store()

void xheader_store ( char const * keyword,
struct tar_stat_info * st,
void const * data )

Tar related function, version 1.34

◆ xheader_string_add()

void xheader_string_add ( struct xheader * xhdr,
char const * s )

Tar related function, version 1.34

◆ xheader_string_begin()

void xheader_string_begin ( struct xheader * xhdr)

Tar related function, version 1.34

◆ xheader_string_end()

bool xheader_string_end ( struct xheader * xhdr,
char const * keyword )

Tar related function, version 1.34

◆ xheader_write()

void xheader_write ( char type,
char * name,
time_t t,
struct xheader * xhdr )

Tar related function, version 1.34

Variable Documentation

◆ absolute_names_option

GLOBAL bool absolute_names_option

◆ acls_option

GLOBAL int acls_option

◆ group_name_option

GLOBAL char const* group_name_option

◆ group_option

GLOBAL gid_t group_option

◆ initial_umask

GLOBAL mode_t initial_umask

◆ mode_option

GLOBAL struct mode_change* mode_option

◆ mtime_option

GLOBAL struct timespec mtime_option

◆ owner_name_option

GLOBAL char const* owner_name_option

◆ owner_option

GLOBAL uid_t owner_option

◆ selinux_context_option

GLOBAL int selinux_context_option

◆ set_mtime_option

GLOBAL enum set_mtime_option_mode set_mtime_option

◆ tar_sparse_major

GLOBAL unsigned tar_sparse_major

◆ tar_sparse_minor

GLOBAL unsigned tar_sparse_minor

◆ xattrs_option

GLOBAL int xattrs_option