File: arcdata.c

package info (click to toggle)
arc 5.21p-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 456 kB
  • sloc: ansic: 4,124; makefile: 85
file content (60 lines) | stat: -rw-r--r-- 2,095 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * $Header: /cvsroot/arc/arc/arcdata.c,v 1.2 2003/10/31 02:22:36 highlandsun Exp $
 */

/*  ARC - Archive utility - ARCDATA

    Version 2.17, created on 04/22/87 at 13:09:43

(C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED

    By:	 Thom Henderson

    Description: 
	 This file defines the external data storage used by the ARC
	 archive utility.


    Language:
	 Computer Innovations Optimizing C86
*/
#include <stdio.h>

#define DONT_DEFINE
#include "arc.h"

int             keepbak = 0;	/* true if saving the old archive */
#if	UNIX
int		image = 1;	/* true to suppress CRLF/LF x-late */
#endif
#if	_MTS
int             image = 0;	/* true to suppress EBCDIC/ASCII x-late */
char            sepchr[2] = ":";/* Shared file separator */
char            tmpchr[2] = "-";/* Temporary file prefix */
#endif
#if	GEMDOS
int		hold = 0;	/* true to pause before exit */
#endif
int             warn = 1;	/* true to print warnings */
int             note = 1;	/* true to print comments */
int             bose = 0;	/* true to be verbose */
int             nocomp = 0;	/* true to suppress compression */
int             overlay = 0;	/* true to overlay on extract */
int             kludge = 0;	/* kludge flag */
char           *arctemp = NULL;	/* arc temp file prefix */
char           *password = NULL;/* encryption password pointer */
int             nerrs = 0;	/* number of errors encountered */
int		changing = 0;	/* true if archive being modified */

char            hdrver;		/* header version */

FILE           *arc;		/* the old archive */
FILE           *new;		/* the new archive */
char            arcname[STRLEN];	/* storage for archive name */
char            bakname[STRLEN];	/* storage for backup copy name */
char            newname[STRLEN];	/* storage for new archive name */
unsigned short  arcdate = 0;	/* archive date stamp */
unsigned short  arctime = 0;	/* archive time stamp */
unsigned short  olddate = 0;	/* old archive date stamp */
unsigned short  oldtime = 0;	/* old archive time stamp */
int		dosquash = 0;	/* true to squash instead of crunch */