xref: /original-bsd/sbin/restore/extern.h (revision c3e32dec)
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.1 (Berkeley) 06/05/93
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		 err __P((const char *, ...));
25 void	 	 extractdirs __P((int));
26 int		 extractfile __P((char *));
27 void		 findunreflinks __P((void));
28 char		*flagvalues __P((struct entry *));
29 void		 freeentry __P((struct entry *));
30 void		 freename __P((char *));
31 int	 	 genliteraldir __P((char *, ino_t));
32 char		*gentempname __P((struct entry *));
33 void		 getfile __P((void (*)(char *, long), void (*)(char *, long)));
34 void		 getvol __P((long));
35 void		 initsymtable __P((char *));
36 int	 	 inodetype __P((ino_t));
37 int		 linkit __P((char *, char *, int));
38 struct entry	*lookupino __P((ino_t));
39 struct entry	*lookupname __P((char *));
40 long		 listfile __P((char *, ino_t, int));
41 ino_t		 lowerbnd __P((ino_t));
42 void		 mktempname __P((struct entry *));
43 void		 moveentry __P((struct entry *, char *));
44 void		 msg __P((const char *, ...));
45 char		*myname __P((struct entry *));
46 void		 newnode __P((struct entry *));
47 void		 newtapebuf __P((long));
48 long		 nodeupdates __P((char *, ino_t, int));
49 void	 	 onintr __P((int));
50 void		 panic __P((const char *, ...));
51 void		 pathcheck __P((char *));
52 struct direct	*pathsearch __P((const char *));
53 void		 printdumpinfo __P((void));
54 void		 removeleaf __P((struct entry *));
55 void		 removenode __P((struct entry *));
56 void		 removeoldleaves __P((void));
57 void		 removeoldnodes __P((void));
58 void		 renameit __P((char *, char *));
59 int		 reply __P((char *));
60 RST_DIR		*rst_opendir __P((const char *));
61 struct direct	*rst_readdir __P((RST_DIR *));
62 void		 rst_closedir __P((RST_DIR *dirp));
63 void	 	 runcmdshell __P((void));
64 char		*savename __P((char *));
65 void	 	 setdirmodes __P((int));
66 void		 setinput __P((char *));
67 void		 setup __P((void));
68 void	 	 skipdirs __P((void));
69 void		 skipfile __P((void));
70 void		 skipmaps __P((void));
71 void		 swabst __P((u_char *, u_char *));
72 void	 	 treescan __P((char *, ino_t, long (*)(char *, ino_t, int)));
73 ino_t		 upperbnd __P((ino_t));
74 long		 verifyfile __P((char *, ino_t, int));
75 void		 xtrnull __P((char *, long));
76 
77 /* From ../dump/dumprmt.c */
78 void		rmtclose __P((void));
79 int		rmthost __P((char *));
80 int		rmtioctl __P((int, int));
81 int		rmtopen __P((char *, int));
82 int		rmtread __P((char *, int));
83 int		rmtseek __P((int, int));
84