Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

fmagic_s Struct Reference

#include <file.h>


Data Fields

int flags
const char * magicfile
int lineno
mlist * mlist
mlistml
const char * fn
int fd
stat sb
unsigned char * buf
int nb
VALUETYPE val
int cls
int swap
char * obp
size_t nob
char obuf [512]


Field Documentation

unsigned char* fmagic_s::buf
 

current file buffer

Definition at line 146 of file file.h.

Referenced by fmagicA(), fmagicProcess(), fmagicSGet(), and fmagicZ().

int fmagic_s::cls
 

Elf class

Definition at line 149 of file file.h.

int fmagic_s::fd
 

current file descriptor

Definition at line 143 of file file.h.

Referenced by fmagicProcess().

int fmagic_s::flags
 

bit(s) to control fmagic behavior.

Definition at line 133 of file file.h.

Referenced by fmagicA(), fmagicD(), fmagicF(), fmagicProcess(), fmagicSCheck(), fmagicSGet(), fmagicSMatch(), and main().

const char* fmagic_s::fn
 

current file name

Definition at line 142 of file file.h.

Referenced by fmagicD(), and fmagicProcess().

int fmagic_s::lineno
 

current line number in magic file

Definition at line 136 of file file.h.

Referenced by apprentice_file(), and magwarn().

const char* fmagic_s::magicfile
 

name of the magic file

Definition at line 135 of file file.h.

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

struct mlist* fmagic_s::ml
 

current magic array item

Definition at line 140 of file file.h.

Referenced by fmagicS(), and fmagicSMatch().

struct mlist* fmagic_s::mlist
 

list of arrays of magic entries

Definition at line 138 of file file.h.

Referenced by apprentice_1(), fmagicS(), and fmagicSetup().

int fmagic_s::nb
 

current no. bytes in file buffer

Definition at line 147 of file file.h.

Referenced by fmagicA(), fmagicProcess(), fmagicSGet(), fmagicZ(), and is_tar().

size_t fmagic_s::nob
 

bytes remaining in output buffer

Definition at line 153 of file file.h.

Referenced by fmagicPrintf(), main(), rpmfcClassify(), and unwrap().

char* fmagic_s::obp
 

current output buffer pointer

Definition at line 152 of file file.h.

Referenced by fmagicPrintf(), main(), rpmfcClassify(), and unwrap().

char fmagic_s::obuf[512]
 

output buffer

Definition at line 154 of file file.h.

Referenced by fmagicPrintf(), main(), rpmfcClassify(), and unwrap().

struct stat fmagic_s::sb
 

current file stat(2) buffer

Definition at line 144 of file file.h.

Referenced by fmagicD(), and fmagicProcess().

int fmagic_s::swap
 

Elf swap bytes?

Definition at line 150 of file file.h.

union VALUETYPE fmagic_s::val
 

current magic expression value

Definition at line 148 of file file.h.

Referenced by fmagicSCheck(), fmagicSConvert(), fmagicSGet(), and fmagicSPrint().


The documentation for this struct was generated from the following file:
Generated on Sun Oct 26 13:02:09 2003 for rpm by doxygen1.2.18