53#if (defined(USE_ZLIB) && !defined(HAVE_ZL_INFLAT64) && !defined(NO_DEFLATE64))
65# if (!defined(USE_DEFLATE64) && !defined(SFX))
71#if (defined(SFX) && !defined(BZIP2_SFX) && defined(USE_BZIP2))
75#if (defined(NO_VMS_TEXT_CONV) || defined(VMS))
80# if (!defined(VMS_TEXT_CONV) && !defined(SFX))
90#if (!defined(NO_UNIXBACKUP) && !defined(UNIXBACKUP))
91# if defined(UNIX) || defined(OS2) || defined(WIN32)
96#if (defined(DLL) && !defined(REENTRANT))
100#if (!defined(DYNAMIC_CRC_TABLE) && !defined(FUNZIP))
101# define DYNAMIC_CRC_TABLE
104#if (defined(DYNAMIC_CRC_TABLE) && !defined(REENTRANT))
105# ifndef DYNALLOC_CRCTAB
106# define DYNALLOC_CRCTAB
117#if (defined(WIN32) && defined(UNIX))
119# if (defined(FORCE_WIN32_OVER_UNIX) && defined(FORCE_UNIX_OVER_WIN32))
121# undef FORCE_UNIX_OVER_WIN32
123# ifdef FORCE_WIN32_OVER_UNIX
133#if (defined(M_XENIX) || defined(DNIX))
137#if (defined(M_XENIX) && !defined(M_UNIX))
149#if (defined(_AIX) && !defined(_ALL_SOURCE))
161# define FILENAME_MAX NAME_MAX
164#if (defined(SYSTEM_FIVE) || defined(__SYSTEM_FIVE))
169#if (defined(M_SYSV) || defined(M_SYS5))
175#if (defined(__SVR4) || defined(__svr4__) || defined(sgi) || defined(__hpux))
180#if (defined(LINUX) || defined(__QNX__))
186#if (defined(ultrix) || defined(__ultrix) || defined(bsd4_2))
187# if (!defined(BSD) && !defined(SYSV))
191#if (defined(sun) || defined(pyr) || defined(CONVEX))
192# if (!defined(BSD) && !defined(SYSV))
200# define USE_STRINGS_H
203# define DECLARE_ERRNO
211#if (defined(__TURBOC__) && !defined(WIN32))
214#if (defined(VMS) || defined(__MINT__))
215# define WILD_STAT_BUG
228# define MAIN UZ_EXP UzpMain
231# define REDIRECTC(c) varputchar(__G__ c)
232# define REDIRECTPRINT(buf,size) varmessage(__G__ buf, size)
233# define FINISH_REDIRECT() finish_REXX_redirect(__G)
236# define REDIRECTPRINT(buf,size) 0
237# define FINISH_REDIRECT() close_redirect(__G)
246# include "acorn/riscos.h"
254# include "amiga/amiga.h"
263# include "aosvs/aosvs.h"
277# define EXE_EXTENSION ".tos"
279# define DATE_FORMAT DF_DMY
283# define timezone _timezone
285# define PutNativeEOL {*q++ = native(CR); *q++ = native(LF);}
287# if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
297# include "atheos/athcfg.h"
305# include "beos/beocfg.h"
315# if (!defined(_MBCS) && !defined(NO_MBCS))
319# if (defined(_MBCS) && defined(NO_MBCS))
327# include <sys/stat.h>
328# ifdef HAVE_MBSTRING_H
329# include <mbstring.h>
331# ifdef HAVE_MBCTYPE_H
335# define _ismbblead(c) (0x80 <= (c) && ((c) < 0xa0 || 0xe0 <= (c)))
339# define DATE_FORMAT DF_YMD
342# define PutNativeEOL *q++ = native(LF);
346# define MAIN main_sfx
371#if (defined(_MSC_VER) || (defined(M_I86) && !defined(__WATCOMC__)))
377#if (defined(MSDOS) || defined(OS2) || defined(FLEXOS))
378# include <sys/types.h>
379# include <sys/stat.h>
385# include "os2/os2cfg.h"
388# include "flexos/flxcfg.h"
390# include "msdos/doscfg.h"
394# if (defined(_MSC_VER) && (_MSC_VER == 700) && !defined(GRR))
403# define TIMET_TO_NATIVE(x) (x) += (ulg)2209075200L;
404# define NATIVE_TO_TIMET(x) (x) -= (ulg)2209075200L;
406# if (defined(__BORLANDC__) && (__BORLANDC__ >= 0x0450))
407# define timezone _timezone
409# if (defined(__GO32__) || defined(FLEXOS))
418# define DATE_FORMAT dateformat()
420# define PutNativeEOL {*q++ = native(CR); *q++ = native(LF);}
421# if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
422# define USE_EF_UT_TIME
431# include <sys/types.h>
432# include <sys/stat.h>
433# include <sys/file.h>
437# define mkdir(s,n) (-1)
441# define close_outfile() fclose(G.outfile)
445# define DATE_FORMAT DF_MDY
448# define PutNativeEOL *q++ = native(LF);
456# include "netware/nlmcfg.h"
467# include <sys/stat.h>
469# include "qdos/izqdos.h"
471# define DATE_FORMAT DF_MDY
474# define PutNativeEOL *q++ = native(LF);
476# define RETURN QReturn
479# if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
482# define SCREENSIZE(ttrows, ttcols) screensize(ttrows, ttcols)
483# define SCREENWIDTH 80
501# define INBUFSIZ 8192
505# define PutNativeEOL *q++ = native(LF);
508# define DATE_FORMAT DF_DMY
510# define SCREENLINES 25
512# define RESTORE_UIDGID
521# include "theos/thscfg.h"
529# include <sys/types.h>
530# include <sys/stat.h>
531# include <sys/param.h>
532# include <sys/time.h>
533# include <sys/timeb.h>
534# include <sys/file.h>
537 extern int open(), close(),
read();
538 extern int stat(), unlink(), jsys(), fcntl();
539 extern long lseek(), dup(), creat();
541# define strrchr rindex
542# define REALLY_SHORT_SYMS
544# ifndef HAVE_STRNICMP
549# define DIR_EXT ".directory"
551# define DATE_FORMAT DF_MDY
553# define EXE_EXTENSION ".exe"
570# define CLOSE_INFILE() close_infile(__G)
578# include "vms/vmscfg.h"
585#if (defined(WIN32) && !defined(POCKET_UNZIP) && !defined(_WIN32_WCE))
593#if (defined(_WIN32_WCE) || defined(POCKET_UNZIP))
594# include "wince/wcecfg.h"
615# define Z_OFF_T off_t
617#if (defined(UNIX) && defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64))
618# define Z_OFF_T off_t
620# define Z_OFF_T long long
624#ifndef ZOFF_T_DEFINED
626# define ZOFF_T_DEFINED
628#ifndef Z_STAT_DEFINED
629 typedef struct stat
z_stat;
630# define Z_STAT_DEFINED
644#if (defined(MODERN) && !defined(NO_LIMITS_H))
679#define UNZIP_BZ2VERS 46
682# define UNZIP_VERSION UNZIP_BZ2VERS
684# define UNZIP_VERSION 45
688# define UNZIP_VERSION 21
690# define UNZIP_VERSION 20
693#define VMS_UNZIP_VERSION 42
695#if (defined(MSDOS) || defined(OS2))
699#if (defined(OS2) || defined(WIN32))
703#if (defined(DOS_OS2) || defined(WIN32))
708#if (defined(DOS_OS2_W32) || defined(__human68k__))
709# define DOS_H68_OS2_W32
712#if (defined(DOS_OS2) || defined(FLEXOS))
716#if (defined(DOS_OS2_W32) || defined(FLEXOS))
717# define DOS_FLX_OS2_W32
720#if (defined(DOS_H68_OS2_W32) || defined(FLEXOS))
721# define DOS_FLX_H68_OS2_W32
724#if (defined(DOS_FLX_OS2) || defined(NLM))
725# define DOS_FLX_NLM_OS2
728#if (defined(DOS_FLX_OS2_W32) || defined(NLM))
729# define DOS_FLX_NLM_OS2_W32
732#if (defined(DOS_FLX_H68_OS2_W32) || defined(NLM))
733# define DOS_FLX_H68_NLM_OS2_W32
736#if (defined(TOPS20) || defined(VMS))
740#if (defined(MSDOS) || defined(T20_VMS))
744#if (defined(__ATHEOS__) || defined(__BEOS__))
748#if (defined(ATH_BEO) || defined(UNIX))
752#if (defined(ATH_BEO_UNX) || defined(THEOS))
753# define ATH_BEO_THS_UNX
761# ifdef DATEFMT_ISO_DEFAULT
762# define DATE_FORMAT DF_YMD
764# define DATE_FORMAT DF_MDY
768# define DATE_SEPCHAR '-'
771# define CLOSE_INFILE() close(G.zipfd)
774# define RETURN return
780# define USAGE(ret) usage(__G__ (ret))
782#ifndef TIMET_TO_NATIVE
783# define TIMET_TO_NATIVE(x)
784# define NATIVE_TO_TIMET(x)
788# define STRNICMP zstrnicmp
790# define STRNICMP strnicmp
795#if (defined(DOS_FLX_NLM_OS2_W32) || defined(ATH_BEO_UNX) || defined(RISCOS))
800#if (defined(AOS_VS) || defined(ATARI))
808#if (!defined(PCHAR_SPRINTF) && !defined(INT_SPRINTF))
809# if (defined(SYSV) || defined(CONVEX) || defined(NeXT) || defined(BSD4_4))
812# if (defined(DOS_FLX_NLM_OS2_W32) || defined(VMS) || defined(AMIGA))
815# if (defined(ultrix) || defined(__ultrix))
816# if (defined(POSIX) || defined(__POSIX))
820# define PCHAR_SPRINTF
823# if (defined(__osf__) || defined(_AIX) || defined(CMS_MVS) || defined(THEOS))
827# define PCHAR_SPRINTF
833#if (!defined(PCHAR_SPRINTF) && !defined(INT_SPRINTF))
838# define PCHAR_SPRINTF
842#define MSG_STDERR(f) (f & 1)
843#define MSG_INFO(f) ((f & 6) == 0)
844#define MSG_WARN(f) ((f & 6) == 2)
845#define MSG_ERROR(f) ((f & 6) == 4)
846#define MSG_FATAL(f) ((f & 6) == 6)
847#define MSG_ZFN(f) (f & 0x0008)
848#define MSG_FN(f) (f & 0x0010)
849#define MSG_LNEWLN(f) (f & 0x0020)
850#define MSG_TNEWLN(f) (f & 0x0040)
851#define MSG_MNEWLN(f) (f & 0x0080)
853#define MSG_NO_WGUI(f) (f & 0x0100)
854#define MSG_NO_AGUI(f) (f & 0x0200)
855#define MSG_NO_DLL2(f) (f & 0x0400)
856#define MSG_NO_NDLL(f) (f & 0x0800)
857#define MSG_NO_WDLL(f) (f & 0x1000)
859#if (defined(MORE) && !defined(SCREENLINES))
860# ifdef DOS_FLX_NLM_OS2_W32
861# define SCREENLINES 25
863# define SCREENLINES 24
866#if (defined(MORE) && !defined(SCREENSIZE))
868# define SCREENSIZE(scrrows, scrcols) { \
869 if ((scrrows) != NULL) *(scrrows) = SCREENLINES; }
871# define SCREENSIZE(scrrows, scrcols) { \
872 if ((scrrows) != NULL) *(scrrows) = SCREENLINES; \
873 if ((scrcols) != NULL) *(scrcols) = SCREENWIDTH; }
877#if (defined(__16BIT__) || defined(MED_MEM) || defined(SMALL_MEM))
878# define DIR_BLKSIZ 64
881# define DIR_BLKSIZ 16384
897# define nearmalloc malloc
898# define nearfree free
899# if (!defined(__IBMC__) || !defined(OS2))
909#if (defined(DYNALLOC_CRCTAB) && !defined(DYNAMIC_CRC_TABLE))
910# undef DYNALLOC_CRCTAB
913#if (defined(DYNALLOC_CRCTAB) && defined(REENTRANT))
914# undef DYNALLOC_CRCTAB
917#if (defined(USE_ZLIB) && !defined(USE_OWN_CRCTAB))
918# ifdef DYNALLOC_CRCTAB
919# undef DYNALLOC_CRCTAB
923#if (defined(USE_ZLIB) && defined(ASM_CRC))
928# ifdef IZ_CRC_BE_OPTIMIZ
929# undef IZ_CRC_BE_OPTIMIZ
931# ifdef IZ_CRC_LE_OPTIMIZ
932# undef IZ_CRC_LE_OPTIMIZ
935#if (!defined(IZ_CRC_BE_OPTIMIZ) && !defined(IZ_CRC_LE_OPTIMIZ))
936# ifdef IZ_CRCOPTIM_UNFOLDTBL
937# undef IZ_CRCOPTIM_UNFOLDTBL
942# if (defined(MED_MEM) || defined(SMALL_MEM))
943# define INBUFSIZ 2048
945# define INBUFSIZ 8192
949#if (defined(INT_16BIT) && (defined(USE_DEFLATE64) || lenEOL > 1))
957# if (!defined(SMALL_MEM) && !defined(MED_MEM))
970# define LoadFarString(x) fLoadFarString(__G__ (x))
971# define LoadFarStringSmall(x) fLoadFarStringSmall(__G__ (x))
972# define LoadFarStringSmall2(x) fLoadFarStringSmall2(__G__ (x))
973# if (defined(_MSC_VER) && (_MSC_VER >= 600))
974# define zfstrcpy(dest, src) _fstrcpy((dest), (src))
975# define zfstrcmp(s1, s2) _fstrcmp((s1), (s2))
977# if !(defined(SFX) || defined(FUNZIP))
978# if (defined(_MSC_VER))
979# define zfmalloc(sz) _fmalloc((sz))
980# define zffree(x) _ffree(x)
982# if (defined(__TURBOC__))
984# define zfmalloc(sz) farmalloc((unsigned long)(sz))
985# define zffree(x) farfree(x)
991# define OUTBUFSIZ INBUFSIZ
993# define RAWBUFSIZ (OUTBUFSIZ>>1)
995# define RAWBUFSIZ ((OUTBUFSIZ>>1) - (OUTBUFSIZ>>7))
997# define TRANSBUFSIZ (OUTBUFSIZ-RAWBUFSIZ)
1000# define zfstrcpy(dest, src) strcpy((dest), (src))
1001# define zfstrcmp(s1, s2) strcmp((s1), (s2))
1002# define zfmalloc malloc
1003# define zffree(x) free(x)
1005# define LoadFarString(x) Qstrfix(x)
1006# define LoadFarStringSmall(x) Qstrfix(x)
1007# define LoadFarStringSmall2(x) Qstrfix(x)
1009# define LoadFarString(x) (char *)(x)
1010# define LoadFarStringSmall(x) (char *)(x)
1011# define LoadFarStringSmall2(x) (char *)(x)
1014# define OUTBUFSIZ 0xFF80
1015# define TRANSBUFSIZ 0xFF80
1018# define OUTBUFSIZ (lenEOL*WSIZE)
1019# define TRANSBUFSIZ (lenEOL*OUTBUFSIZ)
1026# define RAWBUFSIZ OUTBUFSIZ
1051# ifdef CHEAP_SFX_AUTORUN
1052# ifndef NO_SFX_EXDIR
1053# define NO_SFX_EXDIR
1056# ifndef NO_SFX_EXDIR
1068#if (defined(TIMESTAMP) && defined(NOTIMESTAMP))
1072#if (!defined(COPYRIGHT_CLEAN) && !defined(USE_SMITH_CODE))
1073# define COPYRIGHT_CLEAN
1079#if (!defined(LZW_CLEAN) && !defined(USE_UNSHRINK))
1080# define USE_UNSHRINK
1091# define PIPE_ERROR (errno == EPIPE)
1096# define FOPR "r","ctx=stm"
1097# define FOPM "r+","ctx=stm","rfm=fix","mrs=512"
1098# define FOPW "w","ctx=stm","rfm=fix","mrs=512"
1099# define FOPWR "w+","ctx=stm","rfm=fix","mrs=512"
1105# define FOPR "rb,byteseek"
1106# define FOPM "r+b,byteseek"
1108# define FOPW "wb,recfm=u,lrecl=32760,byteseek"
1110# define FOPWT "w,lrecl=133"
1113# define FOPW "wb,recfm=v,lrecl=32760"
1162#ifdef DOS_FLX_NLM_OS2_W32
1180# define PATH_MAX MAXPATHLEN
1183# define PATH_MAX _MAX_PATH
1185# if FILENAME_MAX > 255
1186# define PATH_MAX FILENAME_MAX
1188# define PATH_MAX 1024
1198#define FILNAMSIZ PATH_MAX
1200#ifdef UNICODE_SUPPORT
1201# if !(defined(UTF8_MAYBE_NATIVE) || defined(UNICODE_WCHAR))
1202# undef UNICODE_SUPPORT
1210#ifdef UNICODE_SUPPORT
1211# ifdef UNICODE_WCHAR
1212# if !(defined(_WIN32_WCE) || defined(POCKET_UNZIP))
1219# define SETLOCALE(category, locale) setlocale(category, locale)
1230# define ___MBS_TMP_DEF char *___tmp_ptr;
1231# define ___TMP_PTR ___tmp_ptr
1233# define NEED_UZMBCLEN
1234# define CLEN(ptr) (int)uzmbclen((ZCONST unsigned char *)(ptr))
1237# define PREINCSTR(ptr) (ptr += CLEN(ptr))
1239# define POSTINCSTR(ptr) (___TMP_PTR=(char *)(ptr), PREINCSTR(ptr),___TMP_PTR)
1241# define lastchar(ptr, len) ((int)(unsigned)*plastchar(ptr, len))
1243# define NEED_UZMBSCHR
1244# define MBSCHR(str,c) (char *)uzmbschr((ZCONST unsigned char *)(str), c)
1247# define NEED_UZMBSRCHR
1248# define MBSRCHR(str,c) (char *)uzmbsrchr((ZCONST unsigned char *)(str), c)
1251# define SETLOCALE(category, locale) setlocale(category, locale)
1254# define ___MBS_TMP_DEF
1257# define PREINCSTR(ptr) (++(ptr))
1258# define POSTINCSTR(ptr) ((ptr)++)
1259# define plastchar(ptr, len) (&ptr[(len)-1])
1260# define lastchar(ptr, len) (ptr[(len)-1])
1261# define MBSCHR(str, c) strchr(str, c)
1262# define MBSRCHR(str, c) strrchr(str, c)
1264# define SETLOCALE(category, locale)
1267#define INCSTR(ptr) PREINCSTR(ptr)
1270#if (defined(MALLOC_WORK) && !defined(MY_ZCALLOC))
1273# define zcalloc(items, size) \
1274 (zvoid far *)calloc((unsigned)(items), (unsigned)(size))
1281#if (defined(CRAY) && defined(ZMEM))
1287# define memcmp(b1,b2,len) bcmp(b2,b1,len)
1288# define memcpy(dest,src,len) bcopy(src,dest,len)
1289# define memzero bzero
1291# define memzero(dest,len) memset(dest,0,len)
1307#if (!defined(S_IEXEC) && defined(S_IXUSR))
1308# define S_IEXEC S_IXUSR
1311#if (defined(UNIX) && defined(S_IFLNK) && !defined(MTS))
1314# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
1320# define S_ISDIR(m) (FALSE)
1322# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
1327# define IS_VOLID(m) ((m) & 0x08)
1347#ifdef LARGE_FILE_SUPPORT
1352# if defined(UNIX) || defined(VMS)
1356# define zfstat fstat
1359# define zlseek lseek
1360# define zfseeko fseeko
1363# define zftello ftello
1366# define zfopen fopen
1367# define zfdopen fdopen
1375# if defined(_MSC_VER) || defined(__MINGW32__) || defined(__LCC__)
1379# define zstat _stati64
1380# define zfstat _fstati64
1383# define zlseek _lseeki64
1385# if defined(_MSC_VER) && (_MSC_VER >= 1400)
1390# define zfseeko _fseeki64
1392# define zftello _ftelli64
1396# if defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ >= 0x800)
1402# define zfseeko _fseeki64
1404# define zftello _ftelli64
1422# define zfopen fopen
1423# define zfdopen fdopen
1432# define zstat _stati64
1433# define zfstat _fstati64
1436# define zlseek _lseeki64
1439# define zfseeko fseeko
1442# define zftello ftello
1445# define zfopen fopen
1446# define zfdopen fdopen
1449# if defined(__WATCOMC__) || defined(__BORLANDC__)
1454# define zstat _stati64
1455# define zfstat _fstati64
1459# define zlseek _lseeki64
1469# define zfopen fopen
1470# define zfdopen fdopen
1494# define zfstat fstat
1495# define zlseek lseek
1496# define zfseeko fseek
1497# define zftello ftell
1498# define zfopen fopen
1499# define zfdopen fdopen
1501# if defined(UNIX) || defined(VMS) || defined(WIN32)
1503# ifndef DO_SAFECHECK_2GB
1504# define DO_SAFECHECK_2GB
1511#if (defined(DO_SAFECHECK_2GB) && defined(SFX))
1512# undef DO_SAFECHECK_2GB
1516# ifdef WILD_STAT_BUG
1517# define SSTAT(path,pbuf) (iswild(path) || zstat(path,pbuf))
1528# ifdef LARGE_FILE_SUPPORT
1529# define FZOFFT_FMT "ll"
1530# define FZOFFT_HEX_WID_VALUE "16"
1532# define FZOFFT_FMT "l"
1533# define FZOFFT_HEX_WID_VALUE "8"
1538#define FZOFFT_HEX_WID ((char *) -1)
1539#define FZOFFT_HEX_DOT_WID ((char *) -2)
1542#define FZOFFT_LEN 24
1546# define extract_or_test_files xtr_or_tst_files
1547# define extract_or_test_member xtr_or_tst_member
1550#ifdef REALLY_SHORT_SYMS
1551# define process_cdir_file_hdr XXpcdfh
1552# define process_local_file_hdr XXplfh
1553# define extract_or_test_files XXxotf
1554# define extract_or_test_member XXxotm
1555# define check_for_newer XXcfn
1556# define overwrite_all XXoa
1557# define process_all_files XXpaf
1558# define extra_field XXef
1559# define explode_lit8 XXel8
1560# define explode_lit4 XXel4
1561# define explode_nolit8 XXnl8
1562# define explode_nolit4 XXnl4
1563# define cpdist8 XXcpdist8
1564# define inflate_codes XXic
1565# define inflate_stored XXis
1566# define inflate_fixed XXif
1567# define inflate_dynamic XXid
1568# define inflate_block XXib
1569# define maxcodemax XXmax
1573# define S_TIME_T_MAX ((time_t)(ulg)0x7fffffffL)
1576# define U_TIME_T_MAX ((time_t)(ulg)0xffffffffL)
1578#ifdef DOSTIME_MINIMUM
1579# undef DOSTIME_MINIMUM
1581#define DOSTIME_MINIMUM ((ulg)0x00210000L)
1582#ifdef DOSTIME_2038_01_18
1583# undef DOSTIME_2038_01_18
1585#define DOSTIME_2038_01_18 ((ulg)0x74320000L)
1588# define ZSUFX "_zip"
1589# define ALT_ZSUFX ".zip"
1592# define ZSUFX "/zip"
1594# define ZSUFX ".zip"
1596# define ALT_ZSUFX ".ZIP"
1599#define CENTRAL_HDR_SIG "\001\002"
1600#define LOCAL_HDR_SIG "\003\004"
1601#define END_CENTRAL_SIG "\005\006"
1602#define EXTD_LOCAL_SIG "\007\010"
1608#define MPN_INF_TRUNC (1<<8)
1609#define MPN_INF_SKIP (2<<8)
1610#define MPN_ERR_SKIP (3<<8)
1611#define MPN_ERR_TOOLONG (4<<8)
1612#define MPN_NOMEM (10<<8)
1613#define MPN_CREATED_DIR (16<<8)
1614#define MPN_VOL_LABEL (17<<8)
1615#define MPN_INVALID (99<<8)
1617#define MPN_MASK 0x7F00
1619#define IZ_EF_TRUNC 79
1628#define EXTRA_FIELD 3
1633#if (defined(SFX) && defined(CHEAP_SFX_AUTORUN))
1634# define CHECK_AUTORUN 7
1635# define CHECK_AUTORUN_Q 8
1638#define DOES_NOT_EXIST -1
1639#define EXISTS_AND_OLDER 0
1640#define EXISTS_AND_NEWER 1
1642#define OVERWRT_QUERY 0
1643#define OVERWRT_ALWAYS 1
1644#define OVERWRT_NEVER 2
1646#define IS_OVERWRT_ALL (G.overwrite_mode == OVERWRT_ALWAYS)
1647#define IS_OVERWRT_NONE (G.overwrite_mode == OVERWRT_NEVER)
1651# define OPENOUT_OK 0
1652# define OPENOUT_FAILED 1
1653# define OPENOUT_SKIPOK 2
1654# define OPENOUT_SKIPWARN 3
1660#define APPEND_NAME 3
1699#define ENHDEFLATED 9
1700#define DCLIMPLODED 10
1707#define NUM_METHODS 17
1721#define EF_PKSZ64 0x0001
1723#define EF_EFS 0x0008
1724#define EF_OS2 0x0009
1725#define EF_PKW32 0x000a
1726#define EF_PKVMS 0x000c
1727#define EF_PKUNIX 0x000d
1728#define EF_PKFORK 0x000e
1729#define EF_PKPATCH 0x000f
1730#define EF_PKPKCS7 0x0014
1731#define EF_PKFX509 0x0015
1732#define EF_PKCX509 0x0016
1733#define EF_PKENCRHD 0x0017
1734#define EF_PKRMCTL 0x0018
1735#define EF_PKLSTCS7 0x0019
1736#define EF_PKIBM 0x0065
1737#define EF_PKIBM2 0x0066
1738#define EF_IZVMS 0x4d49
1739#define EF_IZUNIX 0x5855
1740#define EF_IZUNIX2 0x7855
1741#define EF_IZUNIX3 0x7875
1742#define EF_TIME 0x5455
1743#define EF_UNIPATH 0x7075
1744#define EF_UNICOMNT 0x6375
1745#define EF_MAC3 0x334d
1746#define EF_JLMAC 0x07c8
1747#define EF_ZIPIT 0x2605
1748#define EF_ZIPIT2 0x2705
1749#define EF_SMARTZIP 0x4d63
1750#define EF_VMCMS 0x4704
1751#define EF_MVS 0x470f
1752#define EF_ACL 0x4c41
1753#define EF_NTSD 0x4453
1754#define EF_ATHEOS 0x7441
1755#define EF_BEOS 0x6542
1756#define EF_QDOS 0xfb4a
1757#define EF_AOSVS 0x5356
1758#define EF_SPARK 0x4341
1759#define EF_TANDEM 0x4154
1760#define EF_THEOS 0x6854
1761#define EF_THEOSO 0x4854
1762#define EF_MD5 0x4b46
1763#define EF_ASIUNIX 0x756e
1765#define EB_HEADSIZE 4
1768#define EB_UCSIZE_P 0
1769#define EB_CMPRHEADLEN 6
1771#define EB_UX_MINLEN 8
1772#define EB_UX_FULLSIZE 12
1773#define EB_UX_ATIME 0
1774#define EB_UX_MTIME 4
1778#define EB_UX2_MINLEN 4
1781#define EB_UX2_VALID (1 << 8)
1783#define EB_UX3_MINLEN 7
1785#define EB_UT_MINLEN 1
1786#define EB_UT_FLAGS 0
1787#define EB_UT_TIME1 1
1788#define EB_UT_FL_MTIME (1 << 0)
1789#define EB_UT_FL_ATIME (1 << 1)
1790#define EB_UT_FL_CTIME (1 << 2)
1792#define EB_FLGS_OFFS 4
1794#define EB_OS2_HLEN 4
1795#define EB_BEOS_HLEN 5
1796#define EB_BE_FL_UNCMPR 0x01
1797#define EB_MAC3_HLEN 14
1798#define EB_SMARTZIP_HLEN 64
1799#define EB_M3_FL_DATFRK 0x01
1800#define EB_M3_FL_UNCMPR 0x04
1801#define EB_M3_FL_TIME64 0x08
1802#define EB_M3_FL_NOUTC 0x10
1804#define EB_NTSD_C_LEN 4
1805#define EB_NTSD_L_LEN 5
1806#define EB_NTSD_VERSION 4
1807#define EB_NTSD_MAX_VER (0)
1809#define EB_ASI_CRC32 0
1810#define EB_ASI_MODE 4
1812#define EB_IZVMS_HLEN 12
1813#define EB_IZVMS_FLGS 4
1814#define EB_IZVMS_UCSIZ 6
1815#define EB_IZVMS_BCMASK 07
1816#define EB_IZVMS_BCSTOR 0
1817#define EB_IZVMS_BC00 1
1818#define EB_IZVMS_BCDEFL 2
1836#define ECREC_SIZE 18
1837#define ECLOC64_SIZE 16
1838#define ECREC64_SIZE 52
1841#define HSIZE (1 << MAX_BITS)
1848# define foreign(c) ascii[(uch)(c)]
1849# define native(c) ebcdic[(uch)(c)]
1850# define NATIVE "EBCDIC"
1855# define ENV_UNZIP "UNZIP_OPTS"
1856# define ENV_ZIPINFO "ZIPINFO_OPTS"
1859# define ENV_UNZIP "Unzip$Options"
1860# define ENV_ZIPINFO "Zipinfo$Options"
1861# define ENV_UNZIPEXTS "Unzip$Exts"
1864# define ENV_UNZIP "UNZIP"
1865# define ENV_ZIPINFO "ZIPINFO"
1867#define ENV_UNZIP2 "UNZIPOPT"
1868#define ENV_ZIPINFO2 "ZIPINFOOPT"
1870#if (!defined(QQ) && !defined(NOQQ))
1875# define QCOND (!uO.qflag)
1877# define QCOND (longhdr)
1881# define QCOND2 (uO.qflag < 2)
1883# define QCOND2 (!uO.qflag)
1886#ifdef WILD_STOP_AT_DIR
1887# define __WDLPRO , int sepc
1888# define __WDL , sepc
1889# define __WDLDEF int sepc;
1890# define WISEP , (uO.W_flag ? '/' : '\0')
1906# ifndef Z_UINT8_DEFINED
1907# if (defined(__GNUC__) || defined(__hpux) || defined(__SUNPRO_C))
1908 typedef unsigned long long z_uint8;
1910 typedef unsigned __int64 z_uint8;
1912# define Z_UINT8_DEFINED
1915#ifndef Z_UINT4_DEFINED
1916# if (defined(MODERN) && !defined(NO_LIMITS_H))
1917# if (defined(UINT_MAX) && (UINT_MAX == 0xffffffffUL))
1919# define Z_UINT4_DEFINED
1921# if (defined(ULONG_MAX) && (ULONG_MAX == 0xffffffffUL))
1922 typedef unsigned long z_uint4;
1923# define Z_UINT4_DEFINED
1925# if (defined(USHRT_MAX) && (USHRT_MAX == 0xffffffffUL))
1926 typedef unsigned short z_uint4;
1927# define Z_UINT4_DEFINED
1933#ifndef Z_UINT4_DEFINED
1935# define Z_UINT4_DEFINED
1954# define MASK_ZUCN64 (~(zucn_t)0)
1964# define MASK_ZUCN64 (~(zucn_t)0)
1966#define MASK_ZUCN16 ((zucn_t)0xFFFF)
1970 typedef unsigned short uid_t;
1971 typedef unsigned short gid_t;
1973 typedef unsigned int uid_t;
1974 typedef unsigned int gid_t;
1978#if (defined(GOT_UTIMBUF) || defined(sgi) || defined(ATARI))
1979 typedef struct utimbuf
ztimbuf;
1993#ifdef SET_DIR_ATTRIB
1994 typedef struct direntry {
1995 struct direntry *next;
2002 typedef struct slinkentry {
2003 struct slinkentry *next;
2028 unsigned symlink : 1;
2031#ifdef UNICODE_SUPPORT
2032 unsigned GPFIsUTF8: 1;
2068#define slide G.area.Slide
2070#if (defined(DLL) && !defined(NO_SLIDE_REDIR))
2071# define redirSlide G.redirect_sldptr
2073# define redirSlide G.area.Slide
2082# define L_VERSION_NEEDED_TO_EXTRACT_0 0
2083# define L_VERSION_NEEDED_TO_EXTRACT_1 1
2084# define L_GENERAL_PURPOSE_BIT_FLAG 2
2085# define L_COMPRESSION_METHOD 4
2086# define L_LAST_MOD_DOS_DATETIME 6
2088# define L_COMPRESSED_SIZE 14
2089# define L_UNCOMPRESSED_SIZE 18
2090# define L_FILENAME_LENGTH 22
2091# define L_EXTRA_FIELD_LENGTH 24
2094# define C_VERSION_MADE_BY_0 0
2095# define C_VERSION_MADE_BY_1 1
2096# define C_VERSION_NEEDED_TO_EXTRACT_0 2
2097# define C_VERSION_NEEDED_TO_EXTRACT_1 3
2098# define C_GENERAL_PURPOSE_BIT_FLAG 4
2099# define C_COMPRESSION_METHOD 6
2100# define C_LAST_MOD_DOS_DATETIME 8
2102# define C_COMPRESSED_SIZE 16
2103# define C_UNCOMPRESSED_SIZE 20
2104# define C_FILENAME_LENGTH 24
2105# define C_EXTRA_FIELD_LENGTH 26
2106# define C_FILE_COMMENT_LENGTH 28
2107# define C_DISK_NUMBER_START 30
2108# define C_INTERNAL_FILE_ATTRIBUTES 32
2109# define C_EXTERNAL_FILE_ATTRIBUTES 34
2110# define C_RELATIVE_OFFSET_LOCAL_HEADER 38
2114# define NUMBER_THIS_DISK 4
2115# define NUM_DISK_WITH_START_CEN_DIR 6
2116# define NUM_ENTRIES_CEN_DIR_THS_DISK 8
2117# define TOTAL_ENTRIES_CENTRAL_DIR 10
2118# define SIZE_CENTRAL_DIRECTORY 12
2119# define OFFSET_START_CENTRAL_DIRECTORY 16
2120# define ZIPFILE_COMMENT_LENGTH 20
2123# define NUM_DISK_START_EOCDR64 4
2124# define OFFSET_START_EOCDR64 8
2125# define NUM_THIS_DISK_LOC64 16
2128# define ECREC64_LENGTH 4
2129# define EC_VERSION_MADE_BY_0 12
2130# define EC_VERSION_NEEDED_0 14
2131# define NUMBER_THIS_DSK_REC64 16
2132# define NUM_DISK_START_CEN_DIR64 20
2133# define NUM_ENTRIES_CEN_DIR_THS_DISK64 24
2134# define TOTAL_ENTRIES_CENTRAL_DIR64 32
2135# define SIZE_CENTRAL_DIRECTORY64 40
2136# define OFFSET_START_CENTRAL_DIRECT64 48
2223#if (defined(OS2) && !defined(FUNZIP))
2224# include "os2/os2data.h"
2259#ifdef UNICODE_SUPPORT
2264 int ef_is_c,
ulg dos_mdatetime,
2266#if (defined(RISCOS) || defined(ACORN_FTYPE_NFS))
2294 int get_time_stamp
OF((
__GPRO__ time_t *last_modtime,
2329#if (!defined(STR_TO_ISO) || defined(NEED_STR2ISO))
2330 char *str2iso
OF((
char *dst,
ZCONST char *src));
2332#if (!defined(STR_TO_OEM) || defined(NEED_STR2OEM))
2333 char *str2oem
OF((
char *dst,
ZCONST char *src));
2336 int zstrnicmp
OF((
register ZCONST char *s1,
2337 register ZCONST char *s2,
2338 register unsigned n));
2344 zvoid *memset
OF((
register zvoid *,
register int,
register unsigned int));
2346 register unsigned int));
2348 register unsigned int));
2354 unsigned char *uzmbschr
OF((
ZCONST unsigned char *str,
unsigned int c));
2356#ifdef NEED_UZMBSRCHR
2357 unsigned char *uzmbsrchr
OF((
ZCONST unsigned char *str,
unsigned int c));
2361 char *fLoadFarStringSmall
OF((
__GPRO__ const char Far *sz));
2362 char *fLoadFarStringSmall2
OF((
__GPRO__ const char Far *sz));
2366 #if (!defined(SFX) && !defined(zfstrcmp))
2388#if (defined(VMS) || defined(VMS_TEXT_CONV))
2400#if (!defined(SFX) && !defined(FUNZIP))
2406 struct huft **
t,
unsigned *
m));
2409# define inflate_free(x) inflateEnd(&((Uz_Globs *)(&G))->dstrm)
2414#if (!defined(SFX) && !defined(FUNZIP))
2415#ifndef COPYRIGHT_CLEAN
2427 void bz_internal_error
OF((
int bzerrcode));
2447 int finish_REXX_redirect
OF((
__GPRO));
2459#if (!defined(FUNZIP) && !defined(SFX) && !defined(WINDLL))
2460 void check_for_windows
OF((
ZCONST char *app));
2462#if (defined(__GO32__) || defined(__EMX__))
2463 unsigned _dos_getcountryinfo(
void *);
2464#if (!defined(__DJGPP__) || (__DJGPP__ < 2))
2465 unsigned _dos_setftime(
int,
unsigned,
unsigned);
2466 unsigned _dos_setfileattr(
const char *,
unsigned);
2467 unsigned _dos_creat(
const char *,
unsigned,
int *);
2468 void _dos_getdrive(
unsigned *);
2469 unsigned _dos_close(
int);
2479#if (defined(REENTRANT) && defined(USETHREADID))
2480 ulg GetThreadId
OF((
void));
2482 int GetCountryInfo
OF((
void));
2493 int IsUpperNLS
OF((
int nChr));
2494 int ToLowerNLS
OF((
int nChr));
2495 void DebugMalloc
OF((
void));
2505 char *Qstrfix (
char *);
2506 int QReturn (
int zip_error);
2514 int upper
OF((
char *
s));
2515 int enquote
OF((
char *
s));
2516 int dequote
OF((
char *
s));
2526 FILE *vmmvs_open_infile
OF((
__GPRO));
2539 char *vms_msg_text
OF((
void));
2541 void return_VMS
OF((
__GPRO__ int zip_error));
2543 void return_VMS
OF((
int zip_error));
2546 ulg vms_unzip_cmdline
OF((
int *,
char ***));
2558 void process_defer_NT
OF((
__GPRO));
2561# define TEST_NTSD test_NTSD
2563#ifdef W32_STAT_BANDAID
2565 const char *path,
z_stat *buf));
2575int envargs
OF((
int *Pargc,
char ***Pargv,
2578void mksargs
OF((
int *argcp,
char ***argvp));
2597#if (defined(MORE) && (defined(ATH_BEO_UNX) || defined(QDOS) || defined(VMS)))
2600 int screenlinewrap
OF((
void));
2609#ifdef SET_SYMLINK_ATTRIBS
2610 int set_symlnk_attribs
OF((
__GPRO__ slinkentry *slnk_entry));
2612#ifdef SET_DIR_ATTRIB
2613 int defer_dir_attribs
OF((
__GPRO__ direntry **pd));
2619 ZCONST char *fname, time_t modtime));
2621 int stamp_file
OF((
ZCONST char *fname, time_t modtime));
2624#ifdef NEED_ISO_OEM_INIT
2625 void prepare_ISO_OEM_translat
OF((
__GPRO));
2627#if (defined(MALLOC_WORK) && defined(MY_ZCALLOC))
2631#ifdef SYSTEM_SPECIFIC_CTOR
2632 void SYSTEM_SPECIFIC_CTOR
OF((
__GPRO));
2634#ifdef SYSTEM_SPECIFIC_DTOR
2635 void SYSTEM_SPECIFIC_DTOR
OF((
__GPRO));
2647# define MAX(a,b) ((a) > (b) ? (a) : (b))
2650# define MIN(a,b) ((a) < (b) ? (a) : (b))
2654# if (defined(THEOS) && defined(NO_BOGUS_SPC))
2655# define NO_DEBUG_IN_MACROS
2656# define Trace(x) _fprintf x
2658# define Trace(x) fprintf x
2665# define TTrace(x) fprintf x
2670#ifdef NO_DEBUG_IN_MACROS
2673# define MTrace(x) Trace(x)
2676#if (defined(UNIX) || defined(T20_VMS))
2677# define ToLower(x) ((char)(isupper((int)x)? tolower((int)x) : x))
2679# define ToLower tolower
2682#ifdef USE_STRM_INPUT
2686# define read(fd,buf,n) fread((buf),1,(n),(FILE *)(fd))
2690# define zlseek(fd,o,w) zfseeko((FILE *)(fd),(o),(w))
2691# define close(fd) fclose((FILE *)(fd))
2702#define Info(...) noop()
2705# define Info(buf,flag,sprf_arg) \
2706 fputs((char *)(sprintf sprf_arg, (buf)), (flag)&1? stderr : stdout)
2709# define Info(buf,flag,sprf_arg) \
2710 (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)sprintf sprf_arg, (flag))
2712# define Info(buf,flag,sprf_arg) \
2713 (*G.message)((zvoid *)&G, (uch *)(buf), \
2714 (ulg)(sprintf sprf_arg, strlen((char *)(buf))), (flag))
2722#define FmZofft(val, pre, post) fzofft(__G__ val, pre, post)
2730#define FnFilter1(fname) \
2731 fnfilter((fname), slide + (extent)(WSIZE>>1), (extent)(WSIZE>>2))
2732#define FnFilter2(fname) \
2733 fnfilter((fname), slide + (extent)((WSIZE>>1) + (WSIZE>>2)),\
2737# define MESSAGE(str,len,flag) (*G.message)((zvoid *)&G,(str),(len),(flag))
2741# define CRCVAL_INITIAL crc32(0L, NULL, 0)
2743# define CRCVAL_INITIAL 0L
2749# define SYMLINK_HOST(hn) ((hn) == UNIX_ || (hn) == ATARI_ || \
2750 (hn) == ATHEOS_ || (hn) == BEOS_ || (hn) == VMS_)
2754# define TEST_NTSD NULL
2757#define SKIP_(length) if(length&&((error=do_string(__G__ length,SKIP))!=0))\
2758 {error_in_archive=error; if(error>1) return error;}
2778# define FLUSH(w) flush(__G__ (ulg)(w))
2779# define NEXTBYTE getc(G.in)
2781# define FLUSH(w) ((G.mem_mode) ? memflush(__G__ redirSlide,(ulg)(w)) \
2782 : flush(__G__ redirSlide,(ulg)(w),0))
2783# define NEXTBYTE (G.incnt-- > 0 ? (int)(*G.inptr++) : readbyte(__G))
2787#define READBITS(nbits,zdest) {if(nbits>G.bits_left) {int temp; G.zipeof=1;\
2788 while (G.bits_left<=8*(int)(sizeof(G.bitbuf)-1) && (temp=NEXTBYTE)!=EOF) {\
2789 G.bitbuf|=(ulg)temp<<G.bits_left; G.bits_left+=8; G.zipeof=0;}}\
2790 zdest=(shrint)((unsigned)G.bitbuf&mask_bits[nbits]);G.bitbuf>>=nbits;\
2791 G.bits_left-=nbits;}
2823# define STRLOWER(str1, str2) \
2825 char *p, *q, c; unsigned i; \
2826 p = (char *)(str1); \
2827 q = (char *)(str2); \
2828 while ((c = *p) != '\0') { \
2829 if ((i = CLEN(p)) > 1) { \
2830 while (i--) *q++ = *p++; \
2832 *q++ = (char)(isupper((int)(c))? tolower((int)(c)) : c); \
2839# define STRLOWER(str1, str2) \
2842 p = (char *)(str1) - 1; \
2843 q = (char *)(str2); \
2845 *q++ = (char)(isupper((int)(*p))? tolower((int)(*p)) : *p); \
2860# define foreign(c) (c)
2864# define native(c) (c)
2865# define A_TO_N(str1)
2868# define NATIVE "native chars"
2870# define A_TO_N(str1) {register uch *p;\
2871 for (p=(uch *)(str1); *p; p++) *p=native(*p);}
2889#if (!defined(NATIVE) && !defined(CRTL_CP_IS_ISO) && !defined(CRTL_CP_IS_OEM))
2890# define CRTL_CP_IS_ISO
2899# ifdef CRTL_CP_IS_OEM
2900# ifndef IZ_ISO2OEM_ARRAY
2901# define IZ_ISO2OEM_ARRAY
2903# define _ISO_INTERN(str1) if (iso2oem) {register uch *p;\
2904 for (p=(uch *)(str1); *p; p++)\
2905 *p = native((*p & 0x80) ? iso2oem[*p & 0x7f] : *p);}
2907# define _ISO_INTERN(str1) A_TO_N(str1)
2912# ifdef CRTL_CP_IS_OEM
2913# define _OEM_INTERN(str1) A_TO_N(str1)
2915# ifndef IZ_OEM2ISO_ARRAY
2916# define IZ_OEM2ISO_ARRAY
2918# define _OEM_INTERN(str1) if (oem2iso) {register uch *p;\
2919 for (p=(uch *)(str1); *p; p++)\
2920 *p = native((*p & 0x80) ? oem2iso[*p & 0x7f] : *p);}
2925# ifdef CRTL_CP_IS_ISO
2926# define STR_TO_ISO strcpy
2928# define STR_TO_ISO str2iso
2929# define NEED_STR2ISO
2934# ifdef CRTL_CP_IS_OEM
2935# define STR_TO_OEM strcpy
2937# define STR_TO_OEM str2oem
2938# define NEED_STR2OEM
2942#if (!defined(INTERN_TO_ISO) && !defined(ASCII2ISO))
2943# ifdef CRTL_CP_IS_OEM
2945# define ASCII2ISO(c) \
2946 ((((c) & 0x80) && oem2iso) ? oem2iso[(c) & 0x7f] : (c))
2947# if (defined(NEED_STR2ISO) && !defined(CRYP_USES_OEM2ISO))
2948# define CRYP_USES_OEM2ISO
2952# define ASCII2ISO(c) (c)
2956#if (!defined(INTERN_TO_OEM) && !defined(ASCII2OEM))
2957# ifdef CRTL_CP_IS_OEM
2959# define ASCII2OEM(c) (c)
2962# define ASCII2OEM(c) \
2963 ((((c) & 0x80) && iso2oem) ? iso2oem[(c) & 0x7f] : (c))
2964# if (defined(NEED_STR2OEM) && !defined(CRYP_USES_ISO2OEM))
2965# define CRYP_USES_ISO2OEM
2971#ifdef CRTL_CP_IS_ISO
2973# define STR_TO_CP2 STR_TO_OEM
2976# ifdef CRTL_CP_IS_OEM
2978# define STR_TO_CP2 STR_TO_ISO
2982# define STR_TO_CP1 STR_TO_ISO
2985# define STR_TO_CP2 STR_TO_OEM
3007#ifndef Ext_ASCII_TO_Native
3008# define Ext_ASCII_TO_Native(string, hostnum, hostver, isuxatt, islochdr) \
3009 if (((hostnum) == FS_FAT_ && \
3010 !(((islochdr) || (isuxatt)) && \
3011 ((hostver) == 25 || (hostver) == 26 || (hostver) == 40))) || \
3012 (hostnum) == FS_HPFS_ || \
3013 ((hostnum) == FS_NTFS_ && (hostver) == 50)) { \
3014 _OEM_INTERN((string)); \
3016 _ISO_INTERN((string)); \
3032#ifdef IZ_ISO2OEM_ARRAY
3036#ifdef IZ_OEM2ISO_ARRAY
3070#if (defined(UNICODE_SUPPORT) && defined(UNICODE_WCHAR))
3073# define zwchar_to_wchar_t_default_char '_'
3076# define wide_to_mb_default_string "_"
3079 typedef unsigned long zwchar;
3085 int is_ascii_string
OF((
ZCONST char *mbstring));
3089 char *utf8_to_local_string
OF((
ZCONST char *utf8_string,
int escape_all));
3092 zwchar *utf8_to_wide_string
OF((
ZCONST char *utf8_string));
3095 char *wide_to_local_string
OF((
ZCONST zwchar *wide_string,
int escape_all));
3099 char *local_to_display_string
OF((
ZCONST char *local_string));
3103 char *wide_to_escape_string
OF((
unsigned long));
3105# define utf8_to_escaped_string(utf8_string) \
3106 utf8_to_local_string(utf8_string, TRUE)
3110 unsigned long escape_string_to_wide
OF((
ZCONST char *escape_string));
3113 char *local_to_utf8_string
OF ((
ZCONST char *local_string));
3116 zwchar *local_to_wide_string
OF ((
ZCONST char *local_string));
3119 char *wide_to_utf8_string
OF((
ZCONST zwchar *wide_string));
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
#define ZCONST
Definition crc32.h:25
#define OF(a)
Definition crc32.h:22
* e
Definition inflate.c:1404
unsigned * m
Definition inflate.c:1559
struct huft * t
Definition inflate.c:943
int huft_build(__G__ b, n, s, d, e, t, m) __GDEF ZCONST unsigned *b
unsigned v[N_MAX]
Definition inflate.c:1584
unsigned d
Definition inflate.c:940
unsigned s
Definition inflate.c:1555
int inflate_free(__G)
Definition inflate.c:1525
int huft_free(struct huft *t)
Definition inflate.c:1757
static char filename[]
Definition features.c:5
char * argv[]
Definition unzip.c:738
static const char * name
Definition pugl.h:1582
int const JOCTET unsigned int datalen
Definition jpeglib.h:951
int val
Definition jpeglib.h:956
int version
Definition jpeglib.h:901
png_uint_32 length
Definition png.c:2247
Definition unzpriv.h:2208
char * function
Definition unzpriv.h:2210
char * purpose
Definition unzpriv.h:2212
char * compare
Definition unzpriv.h:2209
char * syntax
Definition unzpriv.h:2211
Definition unzpriv.h:2038
char * revdate
Definition unzpriv.h:2039
char * credate
Definition unzpriv.h:2040
Definition unzpriv.h:2177
zucn_t total_entries_central_dir
Definition unzpriv.h:2181
zucn_t num_entries_centrl_dir_ths_disk
Definition unzpriv.h:2180
int have_ecr64
Definition unzpriv.h:2184
zusz_t offset_start_central_directory
Definition unzpriv.h:2179
int is_zip64_archive
Definition unzpriv.h:2185
zusz_t size_central_directory
Definition unzpriv.h:2178
zuvl_t num_disk_start_cdir
Definition unzpriv.h:2183
zuvl_t number_this_disk
Definition unzpriv.h:2182
ush zipfile_comment_length
Definition unzpriv.h:2186
Definition unzpriv.h:2198
ush n
Definition unzpriv.h:2202
uch e
Definition unzpriv.h:2199
uch b
Definition unzpriv.h:2200
struct huft * t
Definition unzpriv.h:2203
Definition unzpriv.h:1986
time_t ctime
Definition unzpriv.h:1989
time_t mtime
Definition unzpriv.h:1988
time_t atime
Definition unzpriv.h:1987
Definition unzpriv.h:2011
unsigned HasUxAtt
Definition unzpriv.h:2029
unsigned vollabel
Definition unzpriv.h:2025
zusz_t compr_size
Definition unzpriv.h:2013
zusz_t uncompr_size
Definition unzpriv.h:2014
unsigned ExtLocHdr
Definition unzpriv.h:2021
uch hostnum
Definition unzpriv.h:2018
unsigned textmode
Definition unzpriv.h:2023
unsigned lcflag
Definition unzpriv.h:2024
zuvl_t diskstart
Definition unzpriv.h:2016
unsigned encrypted
Definition unzpriv.h:2020
unsigned file_attr
Definition unzpriv.h:2019
uch hostver
Definition unzpriv.h:2017
char Far * cfilname
Definition unzpriv.h:2034
ulg crc
Definition unzpriv.h:2015
unsigned textfile
Definition unzpriv.h:2022
zoff_t offset
Definition unzpriv.h:2012
Definition unzpriv.h:1980
time_t modtime
Definition unzpriv.h:1982
time_t actime
Definition unzpriv.h:1981
const char const char const char const char char * fn
Definition swell-functions.h:168
BOOL GetFileTime(int filedes, FILETIME *lpCreationTime, FILETIME *lpLastAccessTime, FILETIME *lpLastWriteTime)
Definition swell.cpp:93
Definition unzpriv.h:2057
uch value[HSIZE]
Definition unzpriv.h:2060
uch Stack[HSIZE]
Definition unzpriv.h:2061
shrint Parent[HSIZE]
Definition unzpriv.h:2059
struct work::@053047201341353061340013311100052036223277157207 shrink
uch Slide[WSIZE]
Definition unzpriv.h:2063
ZCONST char Far CompiledWith[]
Definition consts.h:53
ZCONST unsigned near mask_bits[17]
Definition consts.h:20
ZCONST char Far ReportMsg[]
Definition consts.h:46
ZCONST char Far CentSigMsg[]
Definition consts.h:33
ZCONST char Far ExclFilenameNotMatched[]
Definition consts.h:38
ZCONST char Far VersionDate[]
Definition consts.h:26
ZCONST char Far EndSigMsg[]
Definition consts.h:29
ZCONST char Far FilenameNotMatched[]
Definition consts.h:37
ZCONST char Far SeekMsg[]
Definition consts.h:35
ZCONST char Far Zipnfo[]
Definition consts.h:52
int n
Definition crypt.c:458
uch * p
Definition crypt.c:594
undefer_input(__G)
Definition fileio.c:523
return c
Definition crypt.c:175
defer_leftover_input(__G)
Definition fileio.c:550
memcpy(hh, h, RAND_HEAD_LEN)
#define __GPRO__
Definition crypt.h:79
#define __GPRO
Definition crypt.h:78
ZCONST char * pre
Definition fileio.c:2492
int open_input_file(__G)
Definition fileio.c:219
int seek_zipf(__G__ abs_offset) __GDEF zoff_t abs_offset
ZCONST char * post
Definition fileio.c:2493
unsigned readbuf(__G__ buf, size) __GDEF char *buf
ush makeword(ZCONST uch *b)
Definition fileio.c:2412
int do_string(__G__ length, option) __GDEF unsigned int length
int check_for_newer(__G__ filename) __GDEF char *filename
char * fzofft(__G__ val, pre, post) __GDEF zoff_t val
void handler(int signal)
Definition fileio.c:1632
ulg makelong(ZCONST uch *sig)
Definition fileio.c:2430
int readbyte(__G)
Definition fileio.c:616
int open_outfile(__G)
Definition fileio.c:270
int unshrink
Definition fileio.c:785
zusz_t makeint64(ZCONST uch *sig)
Definition fileio.c:2451
time_t dos_to_unix_time(ulg dosdatetime)
Definition fileio.c:1696
int flush(__G__ rawbuf, size, unshrink) __GDEF uch *rawbuf
Uz_Globs * globalsCtor()
Definition globals.c:159
ZCONST char * fnames[2]
Definition globals.c:37
int iswild(ZCONST char *p)
Definition match.c:380
int match(string, pattern, ignore_case __WDL) ZCONST char *string
int ic
Definition match.c:170
void free_G_buffers(__G)
Definition process.c:575
int process_cdir_file_hdr(__G)
Definition process.c:1695
int process_local_file_hdr(__G)
Definition process.c:1832
int process_zipfiles(__G)
Definition process.c:236
int getZip64Data(__G__ ef_buf, ef_len) __GDEF ZCONST uch *ef_buf
ulg z_uidgid[2]
Definition unix.c:1047
int mapattr(__G)
Definition unix.c:350
void close_outfile(__G)
Definition unix.c:1102
char * do_wild(__G__ wildspec) __GDEF ZCONST char *wildspec
int mapname(__G__ renamed) __GDEF int renamed
checkdir(__G__ pathcomp, APPEND_NAME)
int flag
Definition unix.c:754
off_t zoff_t
Definition unxcfg.h:59
struct stat z_stat
Definition unxcfg.h:62
int unzip(__G__ argc, argv) __GDEF int argc
G wildzipfn
Definition unzip.c:1135
int usage(__G__ error) __GDEF int error
struct _UzpBuffer UzpBuffer
unsigned short ush
Definition unzip.h:402
unsigned long ulg
Definition unzip.h:403
char zvoid
Definition unzip.h:399
unsigned char uch
Definition unzip.h:401
#define Z_OFF_T
Definition unzpriv.h:620
#define far
Definition unzpriv.h:904
static void noop(void)
Definition unzpriv.h:2700
int shrint
Definition unzpriv.h:1023
struct local_file_header local_file_hdr
#define CREC_SIZE
Definition unzpriv.h:1834
#define __WDLPRO
Definition unzpriv.h:1891
#define MAIN
Definition unzpriv.h:1038
#define zstat
Definition unzpriv.h:1492
#define ECLOC64_SIZE
Definition unzpriv.h:1836
ZCONST uch Far oem2iso_850[]
#define near
Definition unzpriv.h:901
#define ECREC64_SIZE
Definition unzpriv.h:1837
#define zfstrcpy(dest, src)
Definition unzpriv.h:1000
#define zfstrcmp(s1, s2)
Definition unzpriv.h:1001
#define WSIZE
Definition unzpriv.h:886
#define zftello
Definition unzpriv.h:1497
#define ECREC_SIZE
Definition unzpriv.h:1835
uch local_byte_hdr[LREC_SIZE]
Definition unzpriv.h:2080
ulg z_uint4
Definition unzpriv.h:1933
#define plastchar(ptr, len)
Definition unzpriv.h:1259
struct end_central_dir_record ecdir_rec
uch cdir_byte_hdr[CREC_SIZE]
Definition unzpriv.h:2092
struct central_directory_file_header cdir_file_hdr
struct _APIDocStruct APIDocStruct
uch ec_byte_rec[ECREC_SIZE+4]
Definition unzpriv.h:2111
#define LREC_SIZE
Definition unzpriv.h:1833
unsigned int zucn_t
Definition unzpriv.h:1961
uch ec_byte_rec64[ECREC64_SIZE+4]
Definition unzpriv.h:2126
uch ec_byte_loc64[ECLOC64_SIZE+4]
Definition unzpriv.h:2121
ulg zusz_t
Definition unzpriv.h:1960
unsigned short zuvl_t
Definition unzpriv.h:1962
unsigned int extent
Definition unzpriv.h:669
#define Far
Definition unzpriv.h:1030
#define zfseeko
Definition unzpriv.h:1496
int screensize(int *tt_rows, int *tt_cols)
Definition win32.c:2655
#define __W32STAT_GLOBALS__
Definition w32cfg.h:356
if pathcomp
Definition win32.c:1891
int IsWinNT(void)
Definition win32.c:491
int dateformat()
Definition win32.c:2495
int SetFileSize(FILE *file, zusz_t filesize)
Definition win32.c:999
struct zdirent * file
Definition win32.c:1500
char dateseparator()
Definition win32.c:2518
char *** pargv
Definition zipinfo.c:451
void zi_end_central(__G)
Definition zipinfo.c:638
* pargc
Definition zipinfo.c:622
int zi_opts(__G__ pargc, pargv) int *pargc
int zipinfo(__G)
Definition zipinfo.c:705
int argc
Definition zipinfo.c:455
#define HSIZE
Definition unzpriv.h:1840
#define Far
Definition unzpriv.h:1030
#define inflate
Definition zconf.h:29
void zcfree(voidpf opaque, voidpf ptr)
Definition zutil.c:305
voidpf zcalloc(voidpf opaque, unsigned items, unsigned size)
Definition zutil.c:298