1 /***********************************************************************
2   This file is part of HA, a general purpose file archiver.
3   Copyright (C) 1995 Harri Hirvola
4 
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU General Public License as published by
7   the Free Software Foundation; either version 2 of the License, or
8   (at your option) any later version.
9 
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU General Public License for more details.
14 
15   You should have received a copy of the GNU General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 ************************************************************************
19 	HA main include file
20 ***********************************************************************/
21 
22 #include "machine.h"
23 
24 #define VERSION	 "0.999" BETA
25 #define BANNER  "HA " VERSION " Copyright (c) 1995 Harri Hirvola\n"
26 
27 #define CU_CANRELAX    0x01
28 #define CU_RELAXED     0x02
29 #define CU_FUNC        0x04
30 #define CU_RMFILE      0x08
31 #define CU_RMDIR       0x10
32 
33 extern char *myname;			/* Name of this program 	*/
34 extern char **patterns;			/* List of file patterns 	*/
35 extern unsigned patcnt;			/* File pattern count 		*/
36 extern int quiet;			/* Be quiet !			*/
37 extern int useattr;			/* Set/get attributes		*/
38 extern int special;			/* Find special files		*/
39 
40 extern unsigned char infodat[];         /* HA information data          */
41 extern unsigned infolen;                /* HA information data length   */
42 
43 extern int sloppymatch;                 /* How to use path information in archive seeks */
44 extern int skipemptypath;
45 
46 /* Miscalneous routines */
47 
48 void testsizes(void);
49 void *cu_add(unsigned char flags, ...);
50 void *cu_getmark(void);
51 void cu_relax(void *mark);
52 void cu_do(void *mark);
53 char *fullpath(char *path, char *name);
54 char *getpath(char *fullpath);
55 char *getname(char *fullpath);
56 void makepath(char *hapath);
57 int match(char *path, char *name);
58 
59 
60 
61 
62