Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
xheader_k.c File Reference
#include <shlwapi.h>
#include "fnmatch_arp.c"

Go to the source code of this file.

Macros

#define xcalloc   calloc
 
#define xmalloc   malloc
 
#define iconv_open(tocode, fromcode)
 
#define iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft)
 
#define iconv_close(cd)
 
#define iconv_t   int
 

Enumerations

enum  { SYSINT_BUFSIZE }
 
enum  { BILLION = 1000000000 , LOG10_BILLION = 9 }
 
enum  { TIMESPEC_STRSIZE_BOUND }
 

Functions

void * x2realloc (void *p, size_t *pn)
 
bool strip_trailing_slashes_unix (char *file)
 
int fnmatch (const char *pattern, const char *string, int flags)
 
bool xheader_keyword_deleted_p (const char *kw)
 
void xheader_decode (struct tar_stat_info *st)
 
void _obstack_free (struct obstack *h, void *obj)
 
void _obstack_newchunk (struct obstack *h, _OBSTACK_SIZE_T length)
 
void * xrealloc (void *p, size_t n)
 Safe realloc() that never returns NULL.
 
char * stpcpy (char *dest, const char *src)
 
void xheader_xattr_add (struct tar_stat_info *st, const char *key, const char *val, size_t len)
 
size_t dumpdir_size (const char *p)
 
bool utf8_convert (bool to_utf, char const *input, char **output)
 
intmax_t represent_uintmax (uintmax_t n)
 
intmax_t strtosysint (char const *arg, char **arglim, intmax_t minval, uintmax_t maxval)
 
char * sysinttostr (uintmax_t value, intmax_t minval, uintmax_t maxval, char buf[SYSINT_BUFSIZE])
 
char * imaxtostr (intmax_t i, char *buf)
 
bool valid_timespec (struct timespec t)
 
void code_ns_fraction (int ns, char *p)
 
struct timespec decode_timespec (char const *arg, char **arg_lim, bool parse_fraction)
 
char * umaxtostr (uintmax_t i, char *buf)
 
char constcode_timespec (struct timespec t, char sbuf[TIMESPEC_STRSIZE_BOUND])
 
void xheader_read (struct xheader *xhdr, union block *p, off_t size)
 

Variables

struct xhdr_tab const xhdr_tab []
 

Macro Definition Documentation

◆ iconv

#define iconv ( cd,
inbuf,
inbytesleft,
outbuf,
outbytesleft )
Value:
(errno = ENOSYS, (size_t)-1)

◆ iconv_close

#define iconv_close ( cd)
Value:
0

◆ iconv_open

#define iconv_open ( tocode,
fromcode )
Value:
((iconv_t)-1)
#define iconv_t
Definition xheader_k.c:47

◆ iconv_t

#define iconv_t   int

◆ xcalloc

#define xcalloc   calloc

◆ xmalloc

#define xmalloc   malloc

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SYSINT_BUFSIZE 

◆ anonymous enum

anonymous enum
Enumerator
BILLION 
LOG10_BILLION 

◆ anonymous enum

anonymous enum
Enumerator
TIMESPEC_STRSIZE_BOUND 

Function Documentation

◆ _obstack_free()

void _obstack_free ( struct obstack * h,
void * obj )

Tar related function, version 1.34

◆ _obstack_newchunk()

void _obstack_newchunk ( struct obstack * h,
_OBSTACK_SIZE_T length )

Tar related function, version 1.34

◆ code_ns_fraction()

void code_ns_fraction ( int ns,
char * p )

Tar related function, version 1.34

◆ code_timespec()

char const * code_timespec ( struct timespec t,
char sbuf[TIMESPEC_STRSIZE_BOUND] )

Tar related function, version 1.34

◆ decode_timespec()

struct timespec decode_timespec ( char const * arg,
char ** arg_lim,
bool parse_fraction )

Tar related function, version 1.34

◆ dumpdir_size()

size_t dumpdir_size ( const char * p)

Tar related function, version 1.34

◆ fnmatch()

int fnmatch ( const char * pattern,
const char * string,
int flags )

◆ imaxtostr()

char * imaxtostr ( intmax_t i,
char * buf )

Tar related function, version 1.34

◆ represent_uintmax()

intmax_t represent_uintmax ( uintmax_t n)

Tar related function, version 1.34

◆ stpcpy()

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

Tar related function, version 1.34

◆ strip_trailing_slashes_unix()

bool strip_trailing_slashes_unix ( char * file)

Tar related function, version 1.34, slightly modified

◆ strtosysint()

intmax_t strtosysint ( char const * arg,
char ** arglim,
intmax_t minval,
uintmax_t maxval )

Tar related function, version 1.34

◆ sysinttostr()

char * sysinttostr ( uintmax_t value,
intmax_t minval,
uintmax_t maxval,
char buf[SYSINT_BUFSIZE] )

Tar related function, version 1.34

◆ umaxtostr()

char * umaxtostr ( uintmax_t i,
char * buf )

Tar related function, version 1.34

◆ utf8_convert()

bool utf8_convert ( bool to_utf,
char const * input,
char ** output )

Tar related function, version 1.34

◆ valid_timespec()

bool valid_timespec ( struct timespec t)

Tar related function, version 1.34

◆ x2realloc()

void * x2realloc ( void * p,
size_t * pn )

Tar related function, version 1.34

◆ xheader_decode()

void xheader_decode ( struct tar_stat_info * st)

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_read()

void xheader_read ( struct xheader * xhdr,
union block * p,
off_t size )

Tar related function, version 1.34

◆ xheader_xattr_add()

void xheader_xattr_add ( struct tar_stat_info * st,
const char * key,
const char * val,
size_t len )

Tar related function, version 1.34

◆ xrealloc()

void * xrealloc ( void * p,
size_t n )

Safe realloc() that never returns NULL.

Tar related function, version 1.34

Variable Documentation

◆ xhdr_tab

struct xhdr_tab const xhdr_tab