file/src/file.c File Reference
#include "file.h"
#include "magic.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <locale.h>
#include <getopt.h>
#include <netinet/in.h>
#include "patchlevel.h"
Go to the source code of this file.
Define Documentation
| #define OPTSTRING "bcCdf:F:ikLm:nNprsvz" |
| #define USAGE "Usage: %s [-bcik" SYMLINKFLAG "nNsvz] [-f namefile] [-F separator] [-m magicfiles] file...\n %s -C -m magicfiles\n" |
Function Documentation
| size_t file_mbswidth |
( |
const char * |
s |
) |
|
| FILE_RCSID |
( |
"@(#)$Id: file. |
c, |
|
|
v 1.96 2005/03/06 05:58:22 christos Exp $" |
| |
|
) |
| | [pure virtual] |
| private void load |
( |
const char * |
m, |
|
|
int |
flags | |
|
) |
| | |
| int main |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |
Definition at line 140 of file file.c.
References magic_set::c, errno, FILE_CHECK, FILE_COMPILE, file_mbswidth(), magic_set::flags, getenv, getopt, load(), nobuffer, nopad, OPTSTRING, process(), unwrap(), and usage().
| private void process |
( |
const char * |
inname, |
|
|
int |
wid | |
|
) |
| | |
| private void unwrap |
( |
char * |
fn |
) |
|
Variable Documentation