1 /* 2 * $Header: /cvsroot/arc/arc/arcdata.c,v 1.2 2003/10/31 02:22:36 highlandsun Exp $ 3 */ 4 5 /* ARC - Archive utility - ARCDATA 6 7 Version 2.17, created on 04/22/87 at 13:09:43 8 9 (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED 10 11 By: Thom Henderson 12 13 Description: 14 This file defines the external data storage used by the ARC 15 archive utility. 16 17 18 Language: 19 Computer Innovations Optimizing C86 20 */ 21 #include <stdio.h> 22 23 #define DONT_DEFINE 24 #include "arc.h" 25 26 int keepbak = 0; /* true if saving the old archive */ 27 #if UNIX 28 int image = 1; /* true to suppress CRLF/LF x-late */ 29 #endif 30 #if _MTS 31 int image = 0; /* true to suppress EBCDIC/ASCII x-late */ 32 char sepchr[2] = ":";/* Shared file separator */ 33 char tmpchr[2] = "-";/* Temporary file prefix */ 34 #endif 35 #if GEMDOS 36 int hold = 0; /* true to pause before exit */ 37 #endif 38 int arcwarn = 1; /* true to print warnings */ 39 int note = 1; /* true to print comments */ 40 int bose = 0; /* true to be verbose */ 41 int nocomp = 0; /* true to suppress compression */ 42 int overlay = 0; /* true to overlay on extract */ 43 int kludge = 0; /* kludge flag */ 44 char *arctemp = NULL; /* arc temp file prefix */ 45 char *password = NULL;/* encryption password pointer */ 46 int nerrs = 0; /* number of errors encountered */ 47 int changing = 0; /* true if archive being modified */ 48 49 char hdrver; /* header version */ 50 51 FILE *arc; /* the old archive */ 52 FILE *new; /* the new archive */ 53 char arcname[STRLEN]; /* storage for archive name */ 54 char bakname[STRLEN]; /* storage for backup copy name */ 55 char newname[STRLEN]; /* storage for new archive name */ 56 unsigned short arcdate = 0; /* archive date stamp */ 57 unsigned short arctime = 0; /* archive time stamp */ 58 unsigned short olddate = 0; /* old archive date stamp */ 59 unsigned short oldtime = 0; /* old archive time stamp */ 60 int dosquash = 0; /* true to squash instead of crunch */ 61