#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 isodigit | ( | c | ) | ( ((c) >= '0') && ((c) <= '7') ) |
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] |
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(), GNUTMAGIC, record::header, record::header::magic, and TMAGIC.
Referenced by file_is_tar().