From 895bd9b191d7ebf511cc8301b7af360db7dc901c Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Sun, 2 May 1999 08:02:48 +0000 Subject: [PATCH] Add definitions for history functions and printconfig split. --- sbin/vinum/vext.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sbin/vinum/vext.h b/sbin/vinum/vext.h index e6b365852d32..14685d49b6c4 100644 --- a/sbin/vinum/vext.h +++ b/sbin/vinum/vext.h @@ -39,6 +39,7 @@ #define MAXARGS 64 /* maximum number of args on a line */ #define PLEXINITSIZE 61440 /* this is what the system does somewhere */ +#define MAXDATETEXT 128 /* date text in history (far too much) */ enum { KILOBYTE = 1024, @@ -54,6 +55,8 @@ enum { #define WRONGMOD "Vinum" /* don't want this one */ #endif +#define DEFAULT_HISTORYFILE "/var/tmp/vinum_history" /* default name for history stuff */ + /* Prototype declarations */ void parseline(int c, char *args[]); /* parse a line with c parameters at args */ void checkentry(int index); @@ -89,6 +92,7 @@ void vinum_rename(int argc, char *argv[], char *argv0[]); void vinum_rename_2(char *, char *); void vinum_replace(int argc, char *argv[], char *argv0[]); void vinum_printconfig(int argc, char *argv[], char *argv0[]); +void printconfig(FILE * of, char *comment); void vinum_saveconfig(int argc, char *argv[], char *argv0[]); void vinum_label(int argc, char *argv[], char *arg0[]); void vinum_ld(int argc, char *argv[], char *arg0[]); @@ -115,6 +119,8 @@ int vinum_li(int object, enum objecttype type); char *roughlength(long long bytes, int); u_int64_t sizespec(char *spec); +void timestamp(); + extern int force; /* set to 1 to force some dangerous ops */ extern int verbose; /* set verbose operation */ extern int Verbose; /* very verbose operation */ @@ -122,6 +128,8 @@ extern int recurse; /* set recursion */ extern int stats; /* show statistics */ extern int dowait; /* wait for children to exit */ +extern FILE *history; /* history file */ + /* Structures to read kernel data into */ extern struct _vinum_conf vinum_conf; /* configuration information */