tarfix  1.0
About: Tools for processing damaged tar archive files
  Fossies Dox: tarfix-1.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

 All Data Structures Files Functions Variables Macros
targ.c File Reference
#include <stdio.h>
Include dependency graph for targ.c:

Go to the source code of this file.

Data Structures

struct  matches
 

Macros

#define NAMSIZ   100
 

Functions

int istar (char *block)
 
 main (int argc, char **argv)
 
 doblock (char *block, int argc, char **argv)
 
int match (char *s, int argc, char **argv)
 
char * readblock (int desc)
 

Variables

struct matches matches []
 
char buf [10240]
 
int bad
 
int nleft = 0
 
int whichnow
 
int opened = 0
 
int f
 
long nwrite
 

Macro Definition Documentation

#define NAMSIZ   100

Definition at line 3 of file targ.c.

Referenced by doblock().

Function Documentation

doblock ( char *  block,
int  argc,
char **  argv 
)

Definition at line 59 of file targ.c.

References f, f, f, f, f, f, istar(), match(), NAMSIZ, nwrite, nwrite, nwrite, nwrite, nwrite, nwrite, nwrite, opened, opened, opened, opened, opened, and opened.

Referenced by main().

int istar ( char *  block)

Definition at line 21 of file targ.c.

References matches::offset.

Referenced by doblock(), and main().

main ( int  argc,
char **  argv 
)

Definition at line 41 of file targ.c.

References bad, doblock(), readblock(), and readblock().

int match ( char *  s,
int  argc,
char **  argv 
)

Definition at line 102 of file targ.c.

Referenced by doblock().

char* readblock ( int  desc)

Definition at line 121 of file targ.c.

References bad, bad, bad, buf, buf, buf, buf, nleft, nleft, nleft, whichnow, and whichnow.

Referenced by main(), main(), main(), and main().

Variable Documentation

int bad

Definition at line 33 of file targ.c.

Referenced by main(), main(), readblock(), readblock(), readblock(), readblock(), readblock(), and readblock().

char buf[10240]

Definition at line 32 of file targ.c.

Referenced by readblock(), readblock(), readblock(), readblock(), readblock(), readblock(), readblock(), and readblock().

int f

Definition at line 38 of file targ.c.

Referenced by doblock(), doblock(), doblock(), doblock(), doblock(), and doblock().

struct matches matches[]
Initial value:
= {
NAMSIZ+6, ' ',
NAMSIZ+7, '\0',
NAMSIZ+8+6, ' ',
NAMSIZ+8+7, '\0',
NAMSIZ+16+6, ' ',
NAMSIZ+16+7, '\0',
NAMSIZ+24+11, ' ',
NAMSIZ+36+11, ' ',
NAMSIZ+48+6, '\0',
0, 0,
}
int nleft = 0

Definition at line 34 of file targ.c.

Referenced by readblock(), readblock(), readblock(), readblock(), readblock(), and readblock().

long nwrite

Definition at line 39 of file targ.c.

Referenced by doblock(), doblock(), doblock(), doblock(), doblock(), doblock(), and doblock().

int opened = 0

Definition at line 37 of file targ.c.

Referenced by doblock(), doblock(), doblock(), doblock(), doblock(), and doblock().

int whichnow

Definition at line 35 of file targ.c.

Referenced by readblock(), readblock(), readblock(), readblock(), readblock(), and readblock().