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>

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 157 of file print.c.

Referenced by file_mdump(), and mprint().

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

Definition at line 141 of file print.c.

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

Referenced by apprentice_1(), check_format(), file_signextend(), getvalue(), and parse().

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, magic::cont_level, magic::desc, FILE_BEDATE, FILE_BELDATE, FILE_BELONG, FILE_BESHORT, FILE_BYTE, FILE_DATE, file_fmttime(), FILE_LDATE, FILE_LEDATE, FILE_LELDATE, FILE_LELONG, FILE_LESHORT, FILE_LONG, FILE_OPINVERSE, FILE_PSTRING, FILE_REGEX, FILE_SHORT, file_showstr(), FILE_STRING, magic::flag, magic::in_offset, magic::in_op, magic::in_type, INDIR, magic::VALUETYPE::l, magic::mask, magic::mask_op, magic::offset, magic::reln, magic::VALUETYPE::s, STRING_COMPACT_BLANK, STRING_COMPACT_OPTIONAL_BLANK, STRING_IGNORE_LOWERCASE, SZOF, magic::type, UNSIGNED, 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 Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2