version 1.24, 2015/01/16 05:46:44 |
version 1.25, 2015/01/16 08:24:04 |
|
|
*/ |
*/ |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/param.h> /* for MAXPATHLEN */ |
|
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include "file.h" |
#include "file.h" |
|
|
# define USAGE "Usage: %s [-bcik" SYMLINKFLAG "nNprsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...\n" \ |
# define USAGE "Usage: %s [-bcik" SYMLINKFLAG "nNprsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...\n" \ |
" %s -C -m magicfiles\n" |
" %s -C -m magicfiles\n" |
|
|
#ifndef MAXPATHLEN |
#ifndef PATH_MAX |
#define MAXPATHLEN 1024 |
#define PATH_MAX 1024 |
#endif |
#endif |
|
|
private int /* Global command-line options */ |
private int /* Global command-line options */ |
|
|
private void |
private void |
unwrap(char *fn) |
unwrap(char *fn) |
{ |
{ |
char buf[MAXPATHLEN]; |
char buf[PATH_MAX]; |
FILE *f; |
FILE *f; |
int wid = 0, cwid; |
int wid = 0, cwid; |
|
|