![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
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 block * | write_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 block * | start_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 block * | start_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_table * | hash_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 const * | owner_name_option |
GLOBAL char const * | group_name_option |
GLOBAL mode_t | initial_umask |
GLOBAL struct mode_change * | mode_option |
GLOBAL struct timespec | mtime_option |
GLOBAL unsigned | tar_sparse_major |
GLOBAL unsigned | tar_sparse_minor |
#define CHKBLANKS " " |
#define DEFAULT_ALIGNMENT |
#define DEFAULT_GROWTH_FACTOR 1.414f |
#define DEFAULT_GROWTH_THRESHOLD 0.8f |
#define DEFAULT_ROUNDING |
#define DEFAULT_SHRINK_FACTOR 1.0f |
#define DEFAULT_SHRINK_THRESHOLD 0.0f |
#define FILE_SYSTEM_PREFIX_LEN | ( | P | ) |
#define GID_TO_CHARS | ( | val, | |
where ) |
#define GLOBAL_HEADER_TEMPLATE "/GlobalHead.%p.%n" |
#define GNAME_FIELD_SIZE 32 |
#define LG_256 8 |
#define LG_64 6 |
#define LG_8 3 |
#define MAJOR_TO_CHARS | ( | val, | |
where ) |
#define MAX_OCTAL_VAL | ( | buffer | ) |
#define MAX_VAL_WITH_DIGITS | ( | digits, | |
bits_per_digit ) |
#define MAX_VAL_WITH_DIGITS | ( | digits, | |
bits_per_digit ) |
#define MINOR_TO_CHARS | ( | val, | |
where ) |
#define MODE_TO_CHARS | ( | val, | |
where ) |
#define NAME_FIELD_SIZE 100 |
#define OFF_TO_CHARS | ( | val, | |
where ) |
#define PREFIX_FIELD_SIZE 155 |
#define Print_Long_ARP "I64" |
#define S_IRGRP (S_IRUSR >> 3) |
#define S_ISCTG | ( | mode | ) |
#define S_ISGID 02000 |
#define S_ISUID 04000 |
#define S_ISVTX 01000 |
#define S_IWGRP (S_IWUSR >> 3) |
#define S_IXGRP (S_IXUSR >> 3) |
#define TIME_TO_CHARS | ( | val, | |
where ) |
#define UID_TO_CHARS | ( | val, | |
where ) |
#define UNAME_FIELD_SIZE 32 |
#define xalloc_oversized | ( | n, | |
s ) |
typedef void(* Hash_data_freer) (void *) |
typedef size_t(* Hash_hasher) (const void *, size_t) |
typedef bool(* Hash_processor) (void *, void *) |
typedef struct hash_table Hash_table |
typedef struct hash_tuning Hash_tuning |
enum oldgnu_add_status |
enum sparse_scan_state |
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
void _obstack_newchunk | ( | struct obstack * | h, |
_OBSTACK_SIZE_T | length ) |
Tar related function, version 1.34
const char * archive_format_string | ( | enum archive_format | fmt | ) |
Tar related function, version 1.34
Tar related function, version 1.34, with small modifications
char * dir_name | ( | char const * | file | ) |
Tar related function, version 1.34
void finish_header | ( | struct tar_stat_info * | st, |
union block * | header, | ||
__attribute__((unused)) off_t | block_ordinal ) |
Tar related function, version 1.34
void finish_header | ( | struct tar_stat_info * | st, |
union block * | header, | ||
off_t | block_ordinal ) |
void gid_to_gname | ( | int | gid, |
char ** | gname ) |
Tar related function, version 1.34
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
void * hash_insert | ( | Hash_table * | table, |
void const * | entry ) |
Tar related function, version 1.34
int hash_insert_if_absent | ( | Hash_table * | table, |
void const * | entry, | ||
void const ** | matched_ent ) |
Tar related function, version 1.34
int hash_insert_if_absent_version_1_32 | ( | Hash_table * | table, |
void const * | entry, | ||
void const ** | matched_ent ) |
Tar related function, version 1.34
void * hash_lookup | ( | const Hash_table * | table, |
const void * | entry ) |
Tar related function, version 1.34
bool hash_rehash | ( | Hash_table * | table, |
size_t | candidate ) |
Tar related function, version 1.34
size_t hash_string | ( | const char * | string, |
size_t | n_buckets ) |
Tar related function, version 1.34
char * last_component | ( | char const * | name | ) |
Tar related function, version 1.34
char * mdir_name | ( | __attribute__((unused)) char const * | file | ) |
Tar related function, version 1.34
char * mdir_name | ( | char const * | file | ) |
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
bool off_to_chars | ( | off_t | v, |
char * | p, | ||
size_t | s ) |
Tar related function, version 1.34
Tar related function, version 1.34
size_t rotr_sz | ( | size_t | x, |
int | n ) |
Tar related function, version 1.34
Tar related function, version 1.34
void seek_diag_details | ( | char const * | name, |
off_t | offset ) |
Tar related function, version 1.34
void seek_error_details | ( | char const * | name, |
off_t | offset ) |
Tar related function, version 1.34
void seek_warn_details | ( | char const * | name, |
off_t | offset ) |
Tar related function, version 1.34
void simple_finish_header | ( | union block * | header | ) |
Tar related function, version 1.34
void skip_file | ( | off_t | size | ) |
Tar related function, version 1.34, slightly modified
enum dump_status sparse_extract_file | ( | int | fd, |
struct tar_stat_info * | st, | ||
off_t * | size ) |
Tar related function, version 1.34
bool sparse_fixup_header | ( | struct tar_stat_info * | st | ) |
Tar related function, version 1.34
bool sparse_member_p | ( | struct tar_stat_info * | st | ) |
Tar related function, version 1.34
enum dump_status sparse_skip_file | ( | struct tar_stat_info * | st | ) |
Tar related function, version 1.34
union block * start_header | ( | struct tar_stat_info * | st | ) |
Tar related function, version 1.34
Tar related function, version 1.34
char * stpcpy | ( | char * | dest, |
const char * | src ) |
Tar related function, version 1.34
void tar_name_copy_str | ( | char * | dst, |
const char * | src, | ||
size_t | len ) |
Tar related function, version 1.34
bool time_to_chars | ( | time_t | v, |
char * | p, | ||
size_t | s ) |
Tar related function, version 1.34
int timespec_cmp | ( | struct timespec | a, |
struct timespec | b ) |
Tar related function, version 1.34
void uid_to_uname | ( | __attribute__((unused)) uid_t | uid, |
char ** | uname ) |
Tar related function, version 1.34, modified for windows
void uid_to_uname | ( | uid_t | uid, |
char ** | uname ) |
union block * write_extended | ( | bool | global, |
struct tar_stat_info * | st, | ||
union block * | old_header ) |
void * x2nrealloc | ( | void * | p, |
size_t * | pn, | ||
size_t | s ) |
Tar related function, version 1.34
void xheader_finish | ( | struct xheader * | xhdr | ) |
Tar related function, version 1.34
char * xheader_format_name | ( | struct tar_stat_info * | st, |
const char * | fmt, | ||
size_t | n ) |
Tar related function, version 1.34
char * xheader_ghdr_name | ( | void | ) |
Tar related function, version 1.34
void xheader_store | ( | char const * | keyword, |
struct tar_stat_info * | st, | ||
void const * | data ) |
Tar related function, version 1.34
Tar related function, version 1.34
void xheader_string_begin | ( | struct xheader * | xhdr | ) |
Tar related function, version 1.34
Tar related function, version 1.34
void xheader_write | ( | char | type, |
char * | name, | ||
time_t | t, | ||
struct xheader * | xhdr ) |
Tar related function, version 1.34
GLOBAL mode_t initial_umask |
GLOBAL struct mode_change* mode_option |
GLOBAL struct timespec mtime_option |
GLOBAL enum set_mtime_option_mode set_mtime_option |
GLOBAL unsigned tar_sparse_major |
GLOBAL unsigned tar_sparse_minor |