2
Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
4
See the accompanying file LICENSE, version 1999-Oct-05 or later
5
(the contents of which are also included in zip.h) for terms of use.
6
If, for some reason, both of these files are missing, the Info-ZIP license
7
also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html
10
* globals.c by Mark Adler
14
#define GLOBALS /* include definition of errors[] in zip.h */
16
#define UTIL /* do not declare the read_buf variable */
22
/* Handy place to build error messages */
23
char errbuf[FNMAX+81];
25
/* Argument processing globals */
26
int recurse = 0; /* 1=recurse into directories encountered */
27
int dispose = 0; /* 1=remove files after put in zip file */
28
int pathput = 1; /* 1=store path with name */
30
int scanimage = 1; /* 1=scan through image files */
32
int method = BEST; /* one of BEST, DEFLATE (only), or STORE (only) */
33
int dosify = 0; /* 1=make new entries look like MSDOS */
34
int verbose = 0; /* 1=report oddities in zip file structure */
35
int fix = 0; /* 1=fix the zip file */
36
int adjust = 0; /* 1=adjust offsets for sfx'd file (keep preamble) */
37
int level = 6; /* 0=fastest compression, 9=best compression */
38
int translate_eol = 0; /* Translate end-of-line LF -> CR LF */
40
int vmsver = 0; /* 1=append VMS version number to file names */
41
int vms_native = 0; /* 1=store in VMS format */
43
#if defined(OS2) || defined(WIN32)
44
int use_longname_ea = 0; /* 1=use the .LONGNAME EA as the file's name */
46
int hidden_files = 0; /* process hidden and system files */
47
int volume_label = 0; /* add volume label */
48
int dirnames = 1; /* include directory entries by default */
49
int linkput = 0; /* 1=store symbolic links as such */
50
int noisy = 1; /* 0=quiet operation */
51
int extra_fields = 1; /* 0=do not create extra fields */
53
int use_privileges = 0; /* 1=use security privilege overrides */
58
char *special = ".Z:.zip:.zoo:.arc:.lzh:.arj"; /* List of special suffixes */
60
char *special = " Z: zip: zoo: arc: lzh: arj"; /* List of special suffixes */
63
char *special = "_Z:_zip:_zoo:_arc:_lzh:_arj"; /* List of special suffixes */
66
char *special = "DDC:D96:68E";
68
char *key = NULL; /* Scramble password if scrambling */
69
char *tempath = NULL; /* Path for temporary files */
70
FILE *mesg; /* stdout by default, stderr for piping */
72
/* Zip file globals */
73
char *zipfile; /* New or existing zip archive (zip file) */
74
ulg zipbeg; /* Starting offset of zip structures */
75
ulg cenbeg; /* Starting offset of central directory */
76
struct zlist far *zfiles = NULL; /* Pointer to list of files in zip file */
77
extent zcount; /* Number of files in zip file */
78
extent zcomlen; /* Length of zip file comment */
79
char *zcomment = NULL; /* Zip file comment (not zero-terminated) */
80
struct zlist far **zsort; /* List of files sorted by name */
81
ulg tempzn; /* Count of bytes written to output zip file */
83
/* Files to operate on that are not in zip file */
84
struct flist far *found = NULL; /* List of names found */
85
struct flist far * far *fnxt = &found;
86
/* Where to put next name in found list */
87
extent fcount; /* Count of files in list */
89
/* Patterns to be matched */
90
struct plist *patterns = NULL; /* List of patterns to be matched */
91
unsigned pcount = 0; /* number of patterns */
92
unsigned icount = 0; /* number of include only patterns */
95
int zp_tz_is_valid; /* signals "timezone info is available" */
98
const char *BOINC_RCSID_056e277f7d = "$Id: z_globals.c 4979 2005-01-02 18:29:53Z ballen $";