install correct aliases file
[unix-history] / usr / src / sbin / restore / restore.h
index 9018e98..34b3fa7 100644 (file)
@@ -1,17 +1,37 @@
-/*     restore.h       3.8     83/08/11        */
+/*
+ * Copyright (c) 1983 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ *     @(#)restore.h   5.3 (Berkeley) %G%
+ */
 
 #include <stdio.h>
 #include <sys/param.h>
 #include <sys/inode.h>
 #include <sys/fs.h>
 
 #include <stdio.h>
 #include <sys/param.h>
 #include <sys/inode.h>
 #include <sys/fs.h>
+#include <sys/dir.h>
 
 /*
  * Flags
  */
 extern int     cvtflag;        /* convert from old to new tape format */
 
 /*
  * Flags
  */
 extern int     cvtflag;        /* convert from old to new tape format */
+extern int     bflag;          /* set input block size */
 extern int     dflag;          /* print out debugging info */
 extern int     hflag;          /* restore heirarchies */
 extern int     mflag;          /* restore by name instead of inode number */
 extern int     dflag;          /* print out debugging info */
 extern int     hflag;          /* restore heirarchies */
 extern int     mflag;          /* restore by name instead of inode number */
+extern int     Nflag;          /* do not write the disk */
 extern int     vflag;          /* print out actions taken */
 extern int     yflag;          /* always try to recover from tape errors */
 /*
 extern int     vflag;          /* print out actions taken */
 extern int     yflag;          /* always try to recover from tape errors */
 /*
@@ -22,6 +42,7 @@ extern char   *clrimap;       /* map of inodes to be deleted */
 extern ino_t   maxino;         /* highest numbered inode in this file system */
 extern long    dumpnum;        /* location of the dump on this tape */
 extern long    volno;          /* current volume being read */
 extern ino_t   maxino;         /* highest numbered inode in this file system */
 extern long    dumpnum;        /* location of the dump on this tape */
 extern long    volno;          /* current volume being read */
+extern long    ntrec;          /* number of TP_BSIZE records per tape block */
 extern time_t  dumptime;       /* time that this dump begins */
 extern time_t  dumpdate;       /* time that this dump was made */
 extern char    command;        /* opration being performed */
 extern time_t  dumptime;       /* time that this dump begins */
 extern time_t  dumpdate;       /* time that this dump was made */
 extern char    command;        /* opration being performed */
@@ -53,6 +74,7 @@ struct entry {
 #define KEEP           0x0004  /* entry is not to change */
 #define REMOVED                0x0010  /* entry has been removed */
 #define TMPNAME                0x0020  /* entry has been given a temporary name */
 #define KEEP           0x0004  /* entry is not to change */
 #define REMOVED                0x0010  /* entry has been removed */
 #define TMPNAME                0x0020  /* entry has been given a temporary name */
+#define EXISTED                0x0040  /* directory already existed during extract */
 /*
  * functions defined on entry structs
  */
 /*
  * functions defined on entry structs
  */
@@ -66,6 +88,8 @@ extern char *gentempname();
 extern char *flagvalues();
 extern ino_t lowerbnd();
 extern ino_t upperbnd();
 extern char *flagvalues();
 extern ino_t lowerbnd();
 extern ino_t upperbnd();
+extern DIR *rst_opendir();
+extern struct direct *rst_readdir();
 #define NIL ((struct entry *)(0))
 /*
  * Constants associated with entry structs
 #define NIL ((struct entry *)(0))
 /*
  * Constants associated with entry structs