file/src/print.c File Reference

#include "file.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>

Include dependency graph for print.c:

Go to the source code of this file.

Defines

#define SZOF(a)   (sizeof(a) / sizeof(a[0]))

Functions

static const char * rcsid (const char *p)
void file_mdump (struct magic *m)
void file_magwarn (struct magic_set *ms, const char *f,...)
const char * file_fmttime (uint32_t v, int local)


Define Documentation

#define SZOF (  )     (sizeof(a) / sizeof(a[0]))

Definition at line 47 of file print.c.

Referenced by file_mdump().


Function Documentation

const char* file_fmttime ( uint32_t  v,
int  local 
)

Definition at line 190 of file print.c.

Referenced by file_mdump(), and mprint().

void file_magwarn ( struct magic_set ms,
const char *  f,
  ... 
)

Definition at line 174 of file print.c.

References magic_set::file, and magic_set::line.

Referenced by apprentice_1(), apprentice_file(), check_cond(), file_signextend(), getstr(), getvalue(), parse(), and string_modifier_check().

void file_mdump ( struct magic m  ) 

Definition at line 51 of file print.c.

References CHAR_COMPACT_BLANK, CHAR_COMPACT_OPTIONAL_BLANK, CHAR_IGNORE_LOWERCASE, CHAR_IGNORE_UPPERCASE, CHAR_REGEX_OFFSET_START, magic::cont_level, magic::desc, FILE_BEDATE, FILE_BELDATE, FILE_BELONG, FILE_BEQDATE, FILE_BEQLDATE, FILE_BEQUAD, FILE_BESHORT, FILE_BESTRING16, FILE_BYTE, FILE_DATE, FILE_DEFAULT, file_fmttime(), FILE_LDATE, FILE_LEDATE, FILE_LELDATE, FILE_LELONG, FILE_LEQDATE, FILE_LEQLDATE, FILE_LEQUAD, FILE_LESHORT, FILE_LESTRING16, FILE_LONG, FILE_MEDATE, FILE_MELDATE, FILE_MELONG, file_names, file_nnames, FILE_OPINVERSE, FILE_OPS, FILE_OPS_MASK, FILE_PSTRING, FILE_QDATE, FILE_QLDATE, FILE_QUAD, FILE_REGEX, FILE_SEARCH, FILE_SHORT, file_showstr(), FILE_STRING, magic::flag, magic::in_offset, magic::in_op, magic::in_type, INDIR, IS_STRING, magic::VALUETYPE::l, magic::lineno, magic::mask_op, magic::offset, magic::VALUETYPE::q, REGEX_OFFSET_START, magic::reln, magic::VALUETYPE::s, STRING_COMPACT_BLANK, STRING_COMPACT_OPTIONAL_BLANK, STRING_IGNORE_LOWERCASE, STRING_IGNORE_UPPERCASE, SZOF, magic::type, UNSIGNED, magic::vallen, and magic::value.

Referenced by mget(), and parse().

static const char* rcsid ( const char *  p  )  [static]

Definition at line 44 of file print.c.


Generated on Fri May 25 21:18:42 2007 for rpm by  doxygen 1.5.2