file/src/fsmagic.c File Reference

#include "file.h"
#include "magic.h"
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>

Go to the source code of this file.

Defines

#define major(dev)   (((dev) >> 8) & 0xff)
#define minor(dev)   ((dev) & 0xff)

Functions

static const char * rcsid (const char *p)
int file_fsmagic (struct magic_set *ms, const char *fn, struct stat *sb)


Define Documentation

#define major ( dev   )     (((dev) >> 8) & 0xff)

Definition at line 54 of file fsmagic.c.

#define minor ( dev   )     ((dev) & 0xff)

Definition at line 55 of file fsmagic.c.


Function Documentation

int file_fsmagic ( struct magic_set ms,
const char *  fn,
struct stat *  sb 
)

Definition at line 64 of file fsmagic.c.

References errno, file_error(), file_printf(), magic_set::flags, magic_set::haderr, major, minor, S_IFSOCK, and strerror.

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

Definition at line 60 of file fsmagic.c.


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2