file/src/is_tar.c File Reference

#include "file.h"
#include "magic.h"
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include "tar.h"

Include dependency graph for is_tar.c:

Go to the source code of this file.

Defines

#define isodigit(c)   ( ((c) >= '0') && ((c) <= '7') )

Functions

static const char * rcsid (const char *p)
static int is_tar (const unsigned char *, size_t)
static int from_oct (int, const char *)
int file_is_tar (struct magic_set *ms, const unsigned char *buf, size_t nbytes)


Define Documentation

#define isodigit  )     ( ((c) >= '0') && ((c) <= '7') )
 

Definition at line 51 of file is_tar.c.

Referenced by from_oct().


Function Documentation

int file_is_tar struct magic_set ms,
const unsigned char *  buf,
size_t  nbytes
 

Definition at line 59 of file is_tar.c.

References file_printf(), is_tar(), and MAGIC_MIME.

Referenced by file_buffer().

static int from_oct int  ,
const char * 
[static]
 

Definition at line 139 of file is_tar.c.

References isodigit.

Referenced by is_tar().

static int is_tar const unsigned char *  ,
size_t 
[static]
 

Definition at line 94 of file is_tar.c.

References record::header::chksum, from_oct(), and record::header.

Referenced by file_is_tar().

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

Definition at line 48 of file is_tar.c.


Generated on Tue Sep 4 14:27:04 2007 for rpm by  doxygen 1.4.6