summaryrefslogtreecommitdiffstats
path: root/sbin/vinum/vext.h
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-05-02 08:02:48 +0000
committergrog <grog@FreeBSD.org>1999-05-02 08:02:48 +0000
commit6a5cc575dfab873bf7ab0b196a40cf5794f2df4c (patch)
tree0a17c182b0364626e143357fec7020da1b77cd14 /sbin/vinum/vext.h
parent6817ec0781bfd9c802ec52bbb802bd87949995cf (diff)
downloadFreeBSD-src-6a5cc575dfab873bf7ab0b196a40cf5794f2df4c.zip
FreeBSD-src-6a5cc575dfab873bf7ab0b196a40cf5794f2df4c.tar.gz
Add definitions for history functions and printconfig split.
Diffstat (limited to 'sbin/vinum/vext.h')
-rw-r--r--sbin/vinum/vext.h8
1 files changed, 8 insertions, 0 deletions
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 */
OpenPOWER on IntegriCloud