version 1.8, 2015/10/11 17:43:03 |
version 1.9, 2016/10/28 07:22:59 |
|
|
#include <err.h> |
#include <err.h> |
#include <errno.h> |
#include <errno.h> |
#include <limits.h> |
#include <limits.h> |
#include <locale.h> |
|
#include <regex.h> |
#include <regex.h> |
#include <signal.h> |
#include <signal.h> |
#include <stdint.h> |
#include <stdint.h> |
|
|
void handlesig(int); |
void handlesig(int); |
FILE *newfile(void); |
FILE *newfile(void); |
void toomuch(FILE *, long); |
void toomuch(FILE *, long); |
void usage(void); |
static void __dead usage(void); |
|
|
/* |
/* |
* Command line options |
* Command line options |
|
|
char *ep, *p; |
char *ep, *p; |
FILE *ofp; |
FILE *ofp; |
|
|
setlocale(LC_ALL, ""); |
|
|
|
if (pledge("stdio rpath wpath cpath", NULL) == -1) |
if (pledge("stdio rpath wpath cpath", NULL) == -1) |
err(1, "pledge"); |
err(1, "pledge"); |
|
|
|
|
break; |
break; |
default: |
default: |
usage(); |
usage(); |
/*NOTREACHED*/ |
|
} |
} |
} |
} |
|
|
|
|
return (0); |
return (0); |
} |
} |
|
|
void |
static void __dead |
usage(void) |
usage(void) |
{ |
{ |
extern char *__progname; |
extern char *__progname; |