xref: /original-bsd/sbin/restore/extern.h (revision 333da485)
1 /*-
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)extern.h	8.2 (Berkeley) 01/07/94
8  */
9 
10 struct entry	*addentry __P((char *, ino_t, int));
11 long		 addfile __P((char *, ino_t, int));
12 void		 badentry __P((struct entry *, char *));
13 void	 	 canon __P((char *, char *));
14 void		 checkrestore __P((void));
15 void		 closemt __P((void));
16 void		 createfiles __P((void));
17 void		 createleaves __P((char *));
18 void		 createlinks __P((void));
19 long		 deletefile __P((char *, ino_t, int));
20 void		 deleteino __P((ino_t));
21 ino_t		 dirlookup __P((const char *));
22 __dead void 	 done __P((int));
23 void		 dumpsymtable __P((char *, long));
24 void	 	 extractdirs __P((int));
25 int		 extractfile __P((char *));
26 void		 findunreflinks __P((void));
27 char		*flagvalues __P((struct entry *));
28 void		 freeentry __P((struct entry *));
29 void		 freename __P((char *));
30 int	 	 genliteraldir __P((char *, ino_t));
31 char		*gentempname __P((struct entry *));
32 void		 getfile __P((void (*)(char *, long), void (*)(char *, long)));
33 void		 getvol __P((long));
34 void		 initsymtable __P((char *));
35 int	 	 inodetype __P((ino_t));
36 int		 linkit __P((char *, char *, int));
37 struct entry	*lookupino __P((ino_t));
38 struct entry	*lookupname __P((char *));
39 long		 listfile __P((char *, ino_t, int));
40 ino_t		 lowerbnd __P((ino_t));
41 void		 mktempname __P((struct entry *));
42 void		 moveentry __P((struct entry *, char *));
43 void		 msg __P((const char *, ...));
44 char		*myname __P((struct entry *));
45 void		 newnode __P((struct entry *));
46 void		 newtapebuf __P((long));
47 long		 nodeupdates __P((char *, ino_t, int));
48 void	 	 onintr __P((int));
49 void		 panic __P((const char *, ...));
50 void		 pathcheck __P((char *));
51 struct direct	*pathsearch __P((const char *));
52 void		 printdumpinfo __P((void));
53 void		 removeleaf __P((struct entry *));
54 void		 removenode __P((struct entry *));
55 void		 removeoldleaves __P((void));
56 void		 removeoldnodes __P((void));
57 void		 renameit __P((char *, char *));
58 int		 reply __P((char *));
59 RST_DIR		*rst_opendir __P((const char *));
60 struct direct	*rst_readdir __P((RST_DIR *));
61 void		 rst_closedir __P((RST_DIR *dirp));
62 void	 	 runcmdshell __P((void));
63 char		*savename __P((char *));
64 void	 	 setdirmodes __P((int));
65 void		 setinput __P((char *));
66 void		 setup __P((void));
67 void	 	 skipdirs __P((void));
68 void		 skipfile __P((void));
69 void		 skipmaps __P((void));
70 void		 swabst __P((u_char *, u_char *));
71 void	 	 treescan __P((char *, ino_t, long (*)(char *, ino_t, int)));
72 ino_t		 upperbnd __P((ino_t));
73 long		 verifyfile __P((char *, ino_t, int));
74 void		 xtrnull __P((char *, long));
75 
76 /* From ../dump/dumprmt.c */
77 void		rmtclose __P((void));
78 int		rmthost __P((char *));
79 int		rmtioctl __P((int, int));
80 int		rmtopen __P((char *, int));
81 int		rmtread __P((char *, int));
82 int		rmtseek __P((int, int));
83