file.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

Include dependency graph for file.c:

Go to the source code of this file.

Data Structures

struct  info

Defines

#define BLOCK_SIZE   1024
#define XBITS   00111
#define ENGLISH   25

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (void file,(char *name))
 _PROTOTYPE (void do_strip,(int type))
 _PROTOTYPE (void usage,(void))
int main (int argc, argv)
void file (char *name)
void do_strip (int type)
void usage ()

Variables

unsigned char buf [BLOCK_SIZE]
info table []
int tabsize = sizeof(table) / sizeof(struct info)
int L_flag


Define Documentation

#define BLOCK_SIZE   1024
 

Definition at line 11 of file file.c.

#define ENGLISH   25
 

Definition at line 14 of file file.c.

#define XBITS   00111
 

Definition at line 13 of file file.c.


Function Documentation

_PROTOTYPE void  usage,
(void) 
 

_PROTOTYPE void  do_strip,
(int type
 

_PROTOTYPE void  file,
(char *name
 

_PROTOTYPE int  main,
(int argc, char **argv) 
 

void do_strip int  type  ) 
 

Definition at line 231 of file file.c.

References printf.

Referenced by file().

void file char *  name  ) 
 

Definition at line 99 of file file.c.

References BLOCK_SIZE, c, close, do_strip(), execflag, i, j, lstat, magic, n, nonascii, O_RDONLY, open, printf, read, readlink, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISREG, special(), stat::st_mode, stat, and tabsize.

int main int  argc,
argv 
 

Definition at line 70 of file file.c.

References c, exit(), file, fprintf(), getopt(), i, optind, stderr, and usage.

void usage void   ) 
 

Definition at line 274 of file file.c.

References exit(), and printf.


Variable Documentation

unsigned char buf[BLOCK_SIZE]
 

Definition at line 15 of file file.c.

int L_flag
 

Definition at line 63 of file file.c.

struct info table[]
 

int tabsize = sizeof(table) / sizeof(struct info)
 

Definition at line 62 of file file.c.


Generated on Fri Apr 14 23:03:17 2006 for minix by  doxygen 1.4.6