From 6a5cc575dfab873bf7ab0b196a40cf5794f2df4c Mon Sep 17 00:00:00 2001 From: grog Date: Sun, 2 May 1999 08:02:48 +0000 Subject: Add definitions for history functions and printconfig split. --- sbin/vinum/vext.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sbin/vinum/vext.h') diff --git a/sbin/vinum/vext.h b/sbin/vinum/vext.h index e6b3658..14685d4 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 */ -- cgit v1.1