#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include "zlib.h"
#include <direct.h>
#include <io.h>
#include <utime.h>
Go to the source code of this file.
|
| char *TGZfname | OF ((const char *)) |
| |
| int getoct | OF ((char *, int)) |
| |
| char *strtime | OF ((time_t *)) |
| |
| int setfiletime | OF ((char *, time_t)) |
| |
| void push_attr | OF ((struct attr_item **, char *, int, time_t)) |
| |
| void restore_attr | OF ((struct attr_item **)) |
| |
| int ExprMatch | OF ((char *, char *)) |
| |
| int makedir | OF ((char *)) |
| |
| int matchname | OF ((int, int, char **, char *)) |
| |
| int tar | OF ((gzFile, int, int, int, char **)) |
| |
| void help | OF ((int)) |
| |
| int main | OF ((int, char **)) |
| |
| char * | TGZfname (const char *arcname) |
| |
| void | TGZnotfound (const char *arcname) |
| |
| int | getoct (char *p, int width) |
| |
| char * | strtime (time_t *t) |
| |
| int | setfiletime (char *fname, time_t ftime) |
| |
| void | push_attr (struct attr_item **list, char *fname, int mode, time_t time) |
| |
| void | restore_attr (struct attr_item **list) |
| |
| int | ExprMatch (char *string, char *expr) |
| |
| int | makedir (char *newdir) |
| |
| int | matchname (int arg, int argc, char **argv, char *fname) |
| |
| int | tar (gzFile in, int action, int arg, int argc, char **argv) |
| |
| void | help (int exitval) |
| |
| void | error (const char *msg) |
| |
| int | main (int argc, char **argv) |
| |
Definition at line 68 of file untgz.c.
| Class Members |
|
char |
chksum[8] |
|
|
char |
devmajor[8] |
|
|
char |
devminor[8] |
|
|
char |
gid[8] |
|
|
char |
gname[32] |
|
|
char |
linkname[100] |
|
|
char |
magic[6] |
|
|
char |
mode[8] |
|
|
char |
mtime[12] |
|
|
char |
name[100] |
|
|
char |
prefix[155] |
|
|
char |
size[12] |
|
|
char |
typeflag |
|
|
char |
uid[8] |
|
|
char |
uname[32] |
|
|
char |
version[2] |
|
Definition at line 95 of file untgz.c.
| Class Members |
|
char * |
fname |
|
|
int |
mode |
|
|
struct attr_item * |
next |
|
|
time_t |
time |
|
| #define AREGTYPE '\0' /* regular file */ |
| #define BLKTYPE '4' /* block special */ |
| #define CHRTYPE '3' /* character special */ |
| #define CONTTYPE '7' /* reserved */ |
| #define DIRTYPE '5' /* directory */ |
| #define FIFOTYPE '6' /* FIFO special */ |
| #define GNUTYPE_DUMPDIR 'D' /* file names from dumped directory */ |
| #define GNUTYPE_LONGLINK 'K' /* long link name */ |
| #define GNUTYPE_LONGNAME 'L' /* long file name */ |
| #define GNUTYPE_MULTIVOL 'M' /* continuation of file from another volume */ |
| #define GNUTYPE_NAMES 'N' /* file name that does not fit into main hdr */ |
| #define GNUTYPE_SPARSE 'S' /* sparse file */ |
| #define GNUTYPE_VOLHDR 'V' /* tape/volume header */ |
| #define ISSPECIAL |
( |
|
c | ) |
(((c) == '*') || ((c) == '/')) |
| #define LNKTYPE '1' /* link */ |
| #define REGTYPE '0' /* regular file */ |
| #define SHORTNAMESIZE 100 |
| #define SYMTYPE '2' /* reserved */ |
| Enumerator |
|---|
| TGZ_EXTRACT |
|
| TGZ_LIST |
|
| TGZ_INVALID |
|
Definition at line 103 of file untgz.c.
| void error |
( |
const char * |
msg | ) |
|
| int ExprMatch |
( |
char * |
string, |
|
|
char * |
expr |
|
) |
| |
| int getoct |
( |
char * |
p, |
|
|
int |
width |
|
) |
| |
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
| int makedir |
( |
char * |
newdir | ) |
|
| int matchname |
( |
int |
arg, |
|
|
int |
argc, |
|
|
char ** |
argv, |
|
|
char * |
fname |
|
) |
| |
| int getoct OF |
( |
(char *, int) |
| ) |
|
| int matchname OF |
( |
(int, int, char **, char *) |
| ) |
|
| int tar OF |
( |
(gzFile, int, int, int, char **) |
| ) |
|
| int main OF |
( |
(int, char **) |
| ) |
|
| void push_attr |
( |
struct attr_item ** |
list, |
|
|
char * |
fname, |
|
|
int |
mode, |
|
|
time_t |
time |
|
) |
| |
| void restore_attr |
( |
struct attr_item ** |
list | ) |
|
| int setfiletime |
( |
char * |
fname, |
|
|
time_t |
ftime |
|
) |
| |
| char* strtime |
( |
time_t * |
t | ) |
|
| int tar |
( |
gzFile |
in, |
|
|
int |
action, |
|
|
int |
arg, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
| char* TGZfname |
( |
const char * |
arcname | ) |
|
| void TGZnotfound |
( |
const char * |
arcname | ) |
|
| const char* TGZsuffix[] = { "\0", ".tar", ".tar.gz", ".taz", ".tgz", NULL } |