~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to zip/zip/z_globals.c

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
  Copyright (c) 1990-1999 Info-ZIP.  All rights reserved.
3
 
 
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
8
 
*/
9
 
/*
10
 
 *  globals.c by Mark Adler
11
 
 */
12
 
#define __GLOBALS_C
13
 
 
14
 
#define GLOBALS         /* include definition of errors[] in zip.h */
15
 
#ifndef UTIL
16
 
#define UTIL            /* do not declare the read_buf variable */
17
 
#endif
18
 
 
19
 
#include "zip.h"
20
 
 
21
 
 
22
 
/* Handy place to build error messages */
23
 
char errbuf[FNMAX+81];
24
 
 
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 */
29
 
#ifdef RISCOS
30
 
int scanimage = 1;      /* 1=scan through image files */
31
 
#endif
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 */
39
 
#ifdef VMS
40
 
   int vmsver = 0;      /* 1=append VMS version number to file names */
41
 
   int vms_native = 0;  /* 1=store in VMS format */
42
 
#endif /* VMS */
43
 
#if defined(OS2) || defined(WIN32)
44
 
   int use_longname_ea = 0; /* 1=use the .LONGNAME EA as the file's name */
45
 
#endif
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 */
52
 
#ifdef WIN32
53
 
    int use_privileges = 0; /* 1=use security privilege overrides */
54
 
#endif
55
 
#ifndef RISCOS
56
 
#ifndef QDOS
57
 
#ifndef TANDEM
58
 
char *special = ".Z:.zip:.zoo:.arc:.lzh:.arj"; /* List of special suffixes */
59
 
#else /* TANDEM */
60
 
char *special = " Z: zip: zoo: arc: lzh: arj"; /* List of special suffixes */
61
 
#endif
62
 
#else /* QDOS */
63
 
char *special = "_Z:_zip:_zoo:_arc:_lzh:_arj"; /* List of special suffixes */
64
 
#endif
65
 
#else /* RISCOS */
66
 
char *special = "DDC:D96:68E";
67
 
#endif /* ?RISCOS */
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 */
71
 
 
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 */
82
 
 
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 */
88
 
 
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 */
93
 
 
94
 
#ifdef IZ_CHECK_TZ
95
 
int zp_tz_is_valid;     /* signals "timezone info is available" */
96
 
#endif
97
 
 
98
 
const char *BOINC_RCSID_056e277f7d = "$Id: z_globals.c 4979 2005-01-02 18:29:53Z ballen $";