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
const char * separator
int lineno
mlistmlist
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 193 of file file.h.

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

int fmagic_s::cls
 

Elf class

Definition at line 196 of file file.h.

int fmagic_s::fd
 

current file descriptor

Definition at line 190 of file file.h.

Referenced by fmagicProcess().

int fmagic_s::flags
 

bit(s) to control fmagic behavior.

Definition at line 178 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 189 of file file.h.

Referenced by fmagicD(), and fmagicProcess().

int fmagic_s::lineno
 

current line number in magic file

Definition at line 183 of file file.h.

Referenced by apprentice_file(), and file_magwarn().

const char* fmagic_s::magicfile
 

name of the magic file

Definition at line 180 of file file.h.

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

struct mlist* fmagic_s::ml
 

current magic array item

Definition at line 187 of file file.h.

Referenced by fmagicS(), and fmagicSMatch().

struct mlist* fmagic_s::mlist
 

list of arrays of magic entries

Definition at line 185 of file file.h.

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

int fmagic_s::nb
 

current no. bytes in file buffer

Definition at line 194 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 200 of file file.h.

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

char* fmagic_s::obp
 

current output buffer pointer

Definition at line 199 of file file.h.

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

char fmagic_s::obuf[512]
 

output buffer

Definition at line 201 of file file.h.

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

struct stat fmagic_s::sb
 

current file stat(2) buffer

Definition at line 191 of file file.h.

Referenced by fmagicD(), and fmagicProcess().

const char* fmagic_s::separator
 

file name/type separator (default ":"

Definition at line 182 of file file.h.

Referenced by fmagicProcess(), and main().

int fmagic_s::swap
 

Elf swap bytes?

Definition at line 197 of file file.h.

union VALUETYPE fmagic_s::val
 

current magic expression value

Definition at line 195 of file file.h.

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


The documentation for this struct was generated from the following file:
Generated on Fri Oct 21 15:38:56 2011 for rpm by doxygen 1.3.5