#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 |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 231 of file file.c. References printf. Referenced by file(). |
|
|
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. |
|
||||||||||||
|
Definition at line 70 of file file.c. References c, exit(), file, fprintf(), getopt(), i, optind, stderr, and usage. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6