Archive-Unzip-Burst

 view release on metacpan or  search on metacpan

unzip-6.0/History.600  view on Meta::CPAN

 - unix/zipgrep - add additional information to top.  Clean up some lines and
    add commments.  Added code to handle backslashes in archive file names,
    and shell-special characters in the pattern. Changed to use "sed" for all
    escaping of shell-special characters. Tried to get the exit status to
    follow the status of egrep in the complex (default) situation, using only
    standard Bourne shell features, and to exit early if egrep returns
    status 2 (error).  [SMS]
 - vms/unzip_cli.help - VMS help updates.  [SMS]
 - vms/unzip_def.rnh - synchronized option description with unzip_cli.help.
    [Chr. Spieler]
 - fileio.c: extend backup number range from 65535 to 99999 on 32-bit systems;
    fixed limit detection on 16-bit systems.  [Chr. Spieler]
 - zipinfo.c: changed date layout of "short" (one-line) zipinfo modes to always
    use ISO-style YMD order.  [Chr. Spieler]
 - unix/configure: added a simple compiler test to check for a working C
    compiler setup.  [Steven M. Schweda]
 - cmsmvs/vmmvs.h: removed __EBCDIC preprocessor symbol definition (not used
    anywhere in UnZip, breaks compilation on Z-OS).  ["Lutz", Chr. Spieler]
 - unix/makefile - moved -L link option earlier in unzip$E rule.  [Lutz]
 - unzip.c - Remove "s" from "permits" in SYMLINKS feature message.  [SMS]
 - vms/vms.c: simplified the scheme to escape non-last dots, for compatibility

unzip-6.0/README  view on Meta::CPAN

   - On VMS (only 8.x or better), support symbolic link creation.
   - On VMS, support option to create converted text files in Stream_LF format.
   - New -D option to suppress restoration of timestamps for extracted
     directory entries (on those ports that support setting of directory
     timestamps).  By specifying "-DD", this new option also allows to suppress
     timestamp restoration for ALL extracted files on all UnZip ports which
     support restoration of timestamps.
     On VMS, the default behaviour is now to skip restoration of directory
     timestamps; here, "--D" restores ALL timestamps, "-D" restores none.
   - On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP
     to allow saving backup copies of overwritten files on extraction is now
     enabled by default.

For the UnZip 6.0 release, we want to give special credit to Myles Bennet,
who started the job of supporting ZIP64 extensions and Large-File (> 2GiB)
and provided a first (alpha-state) port.

The 5.52 maintenance release fixes a few minor problems found in the 5.51
release, closes some more security holes, adds a new AtheOS port, and
contains a Win32 extra-field code cleanup that was not finished earlier.
The most important changes are:

unzip-6.0/WHERE  view on Meta::CPAN

   unz###dN.zip      NT4/W2K/XP/2K3/W9x (32-bit Intel) DLL, header files, docs
   unz###xN.exe      NT/2K/XP/2K3/W9x self-extracting i386 executables and docs
   unz###xN-axp.exe  WinNT (Alpha AXP) self-extracting executables and docs
   unz###xN-mip.exe  WinNT (MIPS R4000) self-extracting executables and docs
   unz###xN-ppc.exe  WinNT (PowerPC) self-extracting executables and docs
   unz###xQ.sfx      SMS/QDOS self-extracting executables and docs
   unz###xO.tar.Z    IBM OS/390 Open edition (Unix-like), exes and docs
   unz###xR.exe      Acorn RISC OS self-extracting executables and docs
   unz###xR.spk      Acorn RISC OS Spark'd executables and docs
   unz###xT.tos      Atari TOS self-extracting executables and docs
   unz###x-vms-axp-obj.bck    VMS backup saveset,
                     contains UnZip (Alpha) obj libs, link procedure, docs
   unz###x-vms-axp-obj.exe    VMS (Alpha AXP) SFX archive (statically linked),
                     contains UnZip (Alpha) obj libs, link procedure, docs
   unz###x-vms-axp-exe.exe    VMS (Alpha AXP) SFX archive (dynamically linked),
                     contains UnZip (Alpha AXP, DEC C) executables and docs,
                     smaller than object archive, but requires VMS 6.1
   unz###x-vms-vax-decc-obj.bck   VMS backup saveset,
                     contains UnZip (new DEC C) obj libs, link procedure, docs
   unz###x-vms-vax-decc-obj.exe   VMS (VAX) SFX archive (statically linked),
                     contains UnZip (new DEC C) obj libs, link procedure, docs
   unz###x-vms-vax-decc-exe.exe   VMS (VAX) SFX archive (dynamically linked),
                     contains UnZip (new DEC C) executables and docs,
                     smaller than object archive, but requires VMS 6.1
   unz###x-vms-vax-vaxc-obj.bck   VMS backup saveset,
                     contains UnZip (old VAX C) obj libs, link procedure, docs
   unz###x-vms-vax-vaxc-obj.exe   VMS (VAX) SFX archive (statically linked),
                     contains UnZip (old VAX C) obj libs, link procedure, docs
   unz###x.hqx       Macintosh BinHex'd executables and docs for unzip
  (unz###x.tar.{Z,gz}  Unix exes/docs for Solaris 2.x, SCO Unix, Linux, etc.,
                     depending on directory/location; generally only provided
                     in cases where the OS does *not* ship with a bundled C
                     compiler)

   MacZip106nc.hqx   Macintosh combined Zip&UnZip application with GUI,

unzip-6.0/fileio.c  view on Meta::CPAN

#ifdef SYMLINKS
    if (SSTAT(G.filename, &G.statbuf) == 0 ||
        lstat(G.filename, &G.statbuf) == 0)
#else
    if (SSTAT(G.filename, &G.statbuf) == 0)
#endif /* ?SYMLINKS */
    {
        Trace((stderr, "open_outfile:  stat(%s) returns 0:  file exists\n",
          FnFilter1(G.filename)));
#ifdef UNIXBACKUP
        if (uO.B_flag) {    /* do backup */
            char *tname;
            z_stat tmpstat;
            int blen, flen, tlen;

            blen = strlen(BackupSuffix);
            flen = strlen(G.filename);
            tlen = flen + blen + 6;    /* includes space for 5 digits */
            if (tlen >= FILNAMSIZ) {   /* in case name is too long, truncate */
                tname = (char *)malloc(FILNAMSIZ);
                if (tname == NULL)
                    return 1;                 /* in case we run out of space */
                tlen = FILNAMSIZ - 1 - blen;
                strcpy(tname, G.filename);    /* make backup name */
                tname[tlen] = '\0';
                if (flen > tlen) flen = tlen;
                tlen = FILNAMSIZ;
            } else {
                tname = (char *)malloc(tlen);
                if (tname == NULL)
                    return 1;                 /* in case we run out of space */
                strcpy(tname, G.filename);    /* make backup name */
            }
            strcpy(tname+flen, BackupSuffix);

            if (IS_OVERWRT_ALL) {
                /* If there is a previous backup file, delete it,
                 * otherwise the following rename operation may fail.
                 */
                if (SSTAT(tname, &tmpstat) == 0)
                    unlink(tname);
            } else {
                /* Check if backupname exists, and, if it's true, try
                 * appending numbers of up to 5 digits (or the maximum
                 * "unsigned int" number on 16-bit systems) to the
                 * BackupSuffix, until an unused name is found.
                 */
                unsigned maxtail, i;
                char *numtail = tname + flen + blen;

                /* take account of the "unsigned" limit on 16-bit systems: */
                maxtail = ( ((~0) >= 99999L) ? 99999 : (~0) );
                switch (tlen - flen - blen - 1) {

unzip-6.0/funzip.txt  view on Meta::CPAN

       dash.  Note that this constitutes a security risk on many systems; cur-
       rently  running  processes are often visible via simple commands (e.g.,
       ps(1) under Unix), and command-line histories  can  be  read.   If  the
       first  entry  of the zip file is encrypted and no password is specified
       on the command line, then the user is prompted for a password  and  the
       password is not echoed on the console.

       Given the limitation on single-member extraction, funzip is most useful
       in conjunction with a secondary archiver program such as  tar(1).   The
       following  section  includes  an example illustrating this usage in the
       case of disk backups to tape.

EXAMPLES
       To use funzip to extract the first member file of the archive  test.zip
       and to pipe it into more(1):

           funzip test.zip | more

       To  use  funzip  to  test the first member file of test.zip (any errors
       will be reported on standard error):

           funzip test.zip > /dev/null

       To use zip and funzip in place of compress(1) and zcat(1) (or  gzip(1L)
       and gzcat(1L)) for tape backups:

           tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
           dd if=/dev/nrst0 ibs=8k | funzip | tar xf -

       (where, for example, nrst0 is a SCSI tape drive).

BUGS
       When  piping  an encrypted file into more and allowing funzip to prompt
       for password, the terminal may sometimes be reset to a  non-echo  mode.
       This  is  apparently  due to a race condition between the two programs;

unzip-6.0/inflate.c  view on Meta::CPAN

      /* fill code-like entries with r */
      f = 1 << (k - w);
      for (j = i >> w; j < z; j += f)
        q[j] = r;

      /* backwards increment the k-bit code i */
      for (j = 1 << (k - 1); i & j; j >>= 1)
        i ^= j;
      i ^= j;

      /* backup over finished tables */
      while ((i & ((1 << w) - 1)) != x[h])
        w -= l[--h];            /* don't need to update q */
    }
  }


  /* return actual size of base table */
  *m = l[0];


unzip-6.0/man/funzip.1  view on Meta::CPAN

password with a dash.  Note that this constitutes a security risk on many
systems; currently running processes are often visible via simple commands
(e.g., \fIps\fP(1) under Unix), and command-line histories can be read.
If the first entry of the zip file is encrypted and
no password is specified on the command line, then the user is prompted for
a password and the password is not echoed on the console.
.PP
Given the limitation on single-member extraction, \fIfunzip\fP is most
useful in conjunction with a secondary archiver program such as \fItar\fP(1).
The following section includes an example illustrating this usage in the
case of disk backups to tape.
.PD
.\" =========================================================================
.SH EXAMPLES
To use \fIfunzip\fP to extract the first member file of the archive test.zip
and to pipe it into \fImore\fP(1):
.PP
.EX
funzip test.zip | more
.EE
.PP
To use \fIfunzip\fP to test the first member file of test.zip (any errors
will be reported on standard error):
.PP
.EX
funzip test.zip > /dev/null
.EE
.PP
To use \fIzip\fP and \fIfunzip\fP in place of \fIcompress\fP(1) and
\fIzcat\fP(1) (or \fIgzip\fP(1L) and \fIgzcat\fP(1L)) for tape backups:
.PP
.EX
tar cf \- . | zip \-7 | dd of=/dev/nrst0 obs=8k
dd if=/dev/nrst0 ibs=8k | funzip | tar xf \-
.EE
.PP
(where, for example, nrst0 is a SCSI tape drive).
.PD
.\" =========================================================================
.SH BUGS

unzip-6.0/man/unzip.1  view on Meta::CPAN

.TP
.B \-b
[VMS] auto-convert binary files (see \fB\-a\fP above) to fixed-length,
512-byte record format.  Doubling the option (\fB\-bb\fP) forces all files
to be extracted in this format. When extracting to standard output
(\fB\-c\fP or \fB\-p\fP option in effect), the default conversion of text
record delimiters is disabled for binary (\fB\-b\fP) resp. all (\fB\-bb\fP)
files.
.TP
.B \-B
[when compiled with UNIXBACKUP defined] save a backup copy of each
overwritten file. The backup file is gets the name of the target file with
a tilde and optionally a unique sequence number (up to 5 digits) appended.
The sequence number is applied whenever another file with the original name
plus tilde already exists.  When used together with the "overwrite all"
option \fB\-o\fP, numbered backup files are never created. In this case,
all backup files are named as the original file with an appended tilde,
existing backup files are deleted without notice.
This feature works similarly to the default behavior of \fIemacs\fP(1)
in many locations.
.IP
Example: the old copy of ``\fCfoo\fR'' is renamed to ``\fCfoo~\fR''.
.IP
Warning: Users should be aware that the \fB-B\fP option does not prevent
loss of existing data under all circumstances.  For example, when
\fIunzip\fP is run in overwrite-all mode, an existing ``\fCfoo~\fR'' file
is deleted before \fIunzip\fP attempts to rename ``\fCfoo\fR'' to
``\fCfoo~\fR''.  When this rename attempt fails (because of a file locks,
insufficient privileges, or ...), the extraction of ``\fCfoo~\fR'' gets
cancelled, but the old backup file is already lost.  A similar scenario
takes place when the sequence number range for numbered backup files gets
exhausted (99999, or 65535 for 16-bit systems).  In this case, the backup
file with the maximum sequence number is deleted and replaced by the new
backup version without notice.
.TP
.B \-C
use case-insensitive matching for the selection of archive entries
from the command-line list of extract selection patterns.
\fIunzip\fP's philosophy is ``you get what you ask for'' (this is
also responsible for the \fB\-L\fP/\fB\-U\fP change; see the relevant
options below).  Because some file systems are fully case-sensitive
(notably those under the Unix operating system) and because
both ZIP archives and \fIunzip\fP itself are portable across platforms,
\fIunzip\fP's default behavior is to match both wildcard and literal

unzip-6.0/proginfo/extrafld.txt  view on Meta::CPAN

                fdXFlags        Byte        More flag bits
                fdComment       Short       Comment ID
                fdPutAway       Long        Home Dir ID

          FVersNum      Byte        file version number
                                    may be not used by MacOS
          ACUser        Byte        directory access rights

          FlCrDat       ULong       date and time of creation
          FlMdDat       ULong       date and time of last modification
          FlBkDat       ULong       date and time of last backup
            These time numbers are original Mac FileTime values (local time!).
            Currently, date-time width is 32-bit, but future version may
            support be 64-bit times (see flags)

          CrGMTOffs     Long(signed!)   difference "local Creat. time - UTC"
          MdGMTOffs     Long(signed!)   difference "local Modif. time - UTC"
          BkGMTOffs     Long(signed!)   difference "local Backup time - UTC"
            These "local time - UTC" differences (stored in seconds) may be
            used to support timestamp adjustment after inter-timezone transfer.
            These fields are optional; bit 4 of the flags word controls their

unzip-6.0/proginfo/extrafld.txt  view on Meta::CPAN


          d_length      beLong          file length
          d_access      byte            file access type
          d_type        byte            file type
          d_datalen     beLong          data length
          d_reserved    beLong          unused
          d_szname      beShort         size of filename
          d_name        36 bytes        filename
          d_update      beLong          time of last update
          d_refdate     beLong          file version number
          d_backup      beLong          time of last backup (archive date)


         -AOS/VS Extra Field:
          ==================

          The following is the layout of the extra block for Data General
          AOS/VS.  The local-header and central-header versions are identical.
          (Last Revision 19961125)

          Value         Size        Description

unzip-6.0/proginfo/nt.sd  view on Meta::CPAN

"unzip -t" will test the integrity of stored security descriptors when
present and the operating system is Windows NT.

ZipInfo (unzip -Z) will display information on stored security descriptor
when "unzip -Zv" is specifed.


Potential uses
==============

The obvious use for this new support is to better support backup and restore
operations in a Windows NT environment where NTFS file security is utilized.
This allows individuals and organizations to archive files in a portable
fashion and transport these files across the organization.

Another potential use of this support is setup and installation.  This
allows for distribution of Windows NT based applications that have preset
security on files and directories.  For example, prior to creation of the
.zip file, the user can set file security via File Manager or Explorer on
the files to be contained in the .zip file.  In many cases, it is appropriate
to only grant Everyone Read access to .exe and .dll files, while granting

unzip-6.0/qdos/makesfx.c  view on Meta::CPAN

struct qdirect  {
    long            d_length __attribute__ ((packed));  /* file length */
    unsigned char   d_access __attribute__ ((packed));  /* file access type */
    unsigned char   d_type __attribute__ ((packed));    /* file type */
    long            d_datalen __attribute__ ((packed)); /* data length */
    long            d_reserved __attribute__ ((packed));/* Unused */
    short           d_szname __attribute__ ((packed));  /* size of name */
    char            d_name[36] __attribute__ ((packed));/* name area */
    long            d_update __attribute__ ((packed));  /* last update */
    long            d_refdate __attribute__ ((packed));
    long            d_backup __attribute__ ((packed));   /* EOD */
} ;

int fs_headr (int fd, long t, struct qdirect *qs, short size)
{
    NTC ntc;
    int r = -1;
    struct stat s;

    fstat(fd, &s);
    qs->d_length = s.st_size;

unzip-6.0/unix/unix.c  view on Meta::CPAN

struct qdirect  {
    long            d_length __attribute__ ((packed));  /* file length */
    unsigned char   d_access __attribute__ ((packed));  /* file access type */
    unsigned char   d_type __attribute__ ((packed));    /* file type */
    long            d_datalen __attribute__ ((packed)); /* data length */
    long            d_reserved __attribute__ ((packed));/* Unused */
    short           d_szname __attribute__ ((packed));  /* size of name */
    char            d_name[36] __attribute__ ((packed));/* name area */
    long            d_update __attribute__ ((packed));  /* last update */
    long            d_refdate __attribute__ ((packed));
    long            d_backup __attribute__ ((packed));   /* EOD */
};

#define LONGID  "QDOS02"
#define EXTRALEN (sizeof(struct qdirect) + 8)
#define JBLONGID    "QZHD"
#define JBEXTRALEN  (sizeof(jbextra)  - 4 * sizeof(char))

typedef struct {
    char        eb_header[4] __attribute__ ((packed));  /* place_holder */
    char        longid[8] __attribute__ ((packed));

unzip-6.0/unzip.c  view on Meta::CPAN

  "  -v   Use verbose list format.  If given alone as unzip -v show version",
  "         information.  Also can be added to other list commands for more",
  "         verbose output.",
  "  -z   Display only archive comment.",
  "",
  "unzip modifiers:",
  "  -a   Convert text files to local OS format.  Convert line ends, EOF",
  "         marker, and from or to EBCDIC character set as needed.",
  "  -b   Treat all files as binary.  [Tandem] Force filecode 180 ('C').",
  "         [VMS] Autoconvert binary files.  -bb forces convert of all files.",
  "  -B   [UNIXBACKUP compile option enabled] Save a backup copy of each",
  "         overwritten file in foo~ or foo~99999 format.",
  "  -C   Use case-insensitive matching.",
  "  -D   Skip restoration of timestamps for extracted directories.  On VMS this",
  "         is on by default and -D essentially becames -DD.",
  "  -DD  Skip restoration of timestamps for all entries.",
  "  -E   [MacOS (not Unix Apple)]  Display contents of MacOS extra field during",
  "         restore.",
  "  -F   [Acorn] Suppress removal of NFS filetype extension.  [Non-Acorn if",
  "         ACORN_FTYPE_NFS] Translate filetype and append to name.",
  "  -i   [MacOS] Ignore filenames in MacOS extra field.  Instead, use name in",

unzip-6.0/unzip.txt  view on Meta::CPAN

              when extracting Zip entries marked as "text". (On Tandem, -a  is
              enabled by default, see above).

       -b     [VMS]  auto-convert binary files (see -a above) to fixed-length,
              512-byte record format.  Doubling the option  (-bb)  forces  all
              files  to  be extracted in this format. When extracting to stan-
              dard output (-c or -p option in effect), the default  conversion
              of  text record delimiters is disabled for binary (-b) resp. all
              (-bb) files.

       -B     [when compiled with UNIXBACKUP defined] save a  backup  copy  of
              each  overwritten  file. The backup file is gets the name of the
              target file with a tilde and optionally a unique sequence number
              (up to 5 digits) appended.  The sequence number is applied when-
              ever another file with the  original  name  plus  tilde  already
              exists.   When used together with the "overwrite all" option -o,
              numbered backup files are  never  created.  In  this  case,  all
              backup  files  are  named  as the original file with an appended
              tilde, existing backup files are deleted without  notice.   This
              feature  works  similarly to the default behavior of emacs(1) in
              many locations.

              Example: the old copy of ``foo'' is renamed to ``foo~''.

              Warning: Users should be aware that the -B option does not  pre-
              vent  loss  of existing data under all circumstances.  For exam-
              ple, when unzip  is  run  in  overwrite-all  mode,  an  existing
              ``foo~'' file is deleted before unzip attempts to rename ``foo''
              to ``foo~''.  When this rename attempt fails (because of a  file
              locks,  insufficient  privileges,  or  ...),  the  extraction of
              ``foo~'' gets cancelled, but the  old  backup  file  is  already
              lost.   A  similar scenario takes place when the sequence number
              range for numbered backup files gets exhausted (99999, or  65535
              for  16-bit  systems).   In  this case, the backup file with the
              maximum sequence number is  deleted  and  replaced  by  the  new
              backup version without notice.

       -C     use  case-insensitive  matching  for  the  selection  of archive
              entries from the command-line list  of  extract  selection  pat-
              terns.  unzip's philosophy is ``you get what you ask for'' (this
              is also responsible for  the  -L/-U  change;  see  the  relevant
              options below).  Because some file systems are fully case-sensi-
              tive (notably those under the Unix operating system) and because
              both  ZIP  archives  and  unzip itself are portable across plat-
              forms, unzip's default behavior is to match  both  wildcard  and
              literal filenames case-sensitively.  That is, specifying ``make-

unzip-6.0/vms/vmsdefs.h  view on Meta::CPAN

      unsigned fch$$_fill_31 : 8;
      unsigned fch$v_vcc_state : 3;    /* VCC state bits              */
      unsigned fch$$_fill_32 : 7;
      unsigned fch$$_alm_state : 2;
      unsigned fch$v_associated : 1;   /* ISO 9660 Associated file    */
      unsigned fch$v_existence : 1;    /* ISO 9660 Existence file     */
      unsigned fch$v_fill_6 : 2;
    } fch$r_fill_1_chunks;
    __struct  {
      unsigned fch$v_wascontig : 1;
      unsigned fch$v_nobackup : 1 ;
      unsigned fch$v_writeback : 1;
      unsigned fch$v_readcheck : 1;
      unsigned fch$v_writcheck : 1;
      unsigned fch$v_contigb : 1;
      unsigned fch$v_locked : 1;
      unsigned fch$v_contig : 1;
      unsigned fch$$_fill_3 : 3;
      unsigned fch$v_badacl : 1;
      unsigned fch$v_spool : 1;
      unsigned fch$v_directory : 1;

unzip-6.0/vms/vmsdefs.h  view on Meta::CPAN

      unsigned fch$v_noshelvable : 1;
    } fch$r_fill_1_bits;
  } fch$r_fch_union;
};

#if !(defined(__VAXC) || defined(VAXC)) || defined(__GNUC__)
#define fch$v_vcc_state fch$r_fch_union.fch$r_fill_1_chunks.fch$v_vcc_state
#define fch$v_associated fch$r_fch_union.fch$r_fill_1_chunks.fch$v_associated
#define fch$v_existence fch$r_fch_union.fch$r_fill_1_chunks.fch$v_existence
#define fch$v_wascontig fch$r_fch_union.fch$r_fill_1_bits.fch$v_wascontig
#define fch$v_nobackup fch$r_fch_union.fch$r_fill_1_bits.fch$v_nobackup
#define fch$v_writeback fch$r_fch_union.fch$r_fill_1_bits.fch$v_writeback
#define fch$v_readcheck fch$r_fch_union.fch$r_fill_1_bits.fch$v_readcheck
#define fch$v_writcheck fch$r_fch_union.fch$r_fill_1_bits.fch$v_writcheck
#define fch$v_contigb fch$r_fch_union.fch$r_fill_1_bits.fch$v_contigb
#define fch$v_locked fch$r_fch_union.fch$r_fill_1_bits.fch$v_locked
#define fch$v_contig fch$r_fch_union.fch$r_fill_1_bits.fch$v_contig
#define fch$v_badacl fch$r_fch_union.fch$r_fill_1_bits.fch$v_badacl
#define fch$v_spool fch$r_fch_union.fch$r_fill_1_bits.fch$v_spool
#define fch$v_directory fch$r_fch_union.fch$r_fill_1_bits.fch$v_directory
#define fch$v_badblock fch$r_fch_union.fch$r_fill_1_bits.fch$v_badblock

unzip-6.0/windll/csharp/Unzip.cs  view on Meta::CPAN

      public int fQuiet;              //2 = No Messages, 1 = Less, 0 = All
      public int ncflag;              //1 = Write To Stdout, Else 0
      public int ntflag;              //1 = Test Zip File, Else 0
      public int nvflag;              //0 = Extract, 1 = List Zip Contents
      public int nfflag;              //1 = Extract Only Newer Over Existing, Else 0
      public int nzflag;              //1 = Display Zip File Comment, Else 0
      public int ndflag;              //1 = Honor Directories, Else 0
      public int noflag;              //1 = Overwrite Files, Else 0
      public int naflag;              //1 = Convert CR To CRLF, Else 0
      public int nZIflag;             //1 = Zip Info Verbose, Else 0
      public int B_flag;              //1 = backup existing files
      public int C_flag;              //1 = Case Insensitivity, 0 = Case Sensitivity
      public int D_flag;              //controls restoration of timestamps
                                      //0 = restore all timestamps (default)
                                      //1 = skip restoration of timestamps for folders
                                      //    created on behalf of directory entries in the
                                      //    Zip archive
                                      //2 = no restoration of timestamps; extracted files
                                      //    and dirs get stamped with current time */
      public int U_flag;              // controls UTF-8 filename coding support
                                      //0 = automatic UTF-8 translation enabled (default)

unzip-6.0/windll/structs.h  view on Meta::CPAN

  int nfflag;             /* "freshen" (replace existing files by newer versions) */
  int nzflag;             /* display zip file comment */
  int ndflag;             /* controls (sub)dir recreation during extraction
                             0 = junk paths from filenames
                             1 = "safe" usage of paths in filenames (skip ../)
                             2 = allow unsafe path components (dir traversal)
                           */
  int noflag;             /* always overwriting existing files if TRUE */
  int naflag;             /* do end-of-line translation */
  int nZIflag;            /* get ZipInfo output if TRUE */
  int B_flag;             /* backup existing files if TRUE */
  int C_flag;             /* be case insensitive if TRUE */
  int D_flag;             /* controls restoration of timestamps
                             0 = restore all timestamps (default)
                             1 = skip restoration of timestamps for folders
                                 created on behalf of directory entries in the
                                 Zip archive
                             2 = no restoration of timestamps; extracted files
                                 and dirs get stamped with current time */
  int U_flag;             /* controls UTF-8 filename coding support
                             0 = automatic UTF-8 translation enabled (default)

unzip-6.0/windll/uzexampl.c  view on Meta::CPAN

                                   2 = no messages */
lpDCL->ntflag = 0;              /* test zip file if true */
lpDCL->nvflag = 0;              /* give a verbose listing if true */
lpDCL->nzflag = 0;              /* display zip file comment if true */
lpDCL->ndflag = 1;              /* recreate directories != 0,
                                   skip "../" if < 2 */
lpDCL->naflag = 0;              /* do not convert CR to CRLF */
lpDCL->nfflag = 0;              /* do not freshen existing files only */
lpDCL->noflag = 1;              /* over-write all files if true */
lpDCL->nZIflag = 0;             /* no ZipInfo output mode */
lpDCL->B_flag = 0;              /* do not backup existing files */
lpDCL->C_flag = 0;              /* do not match case-insensitive */
lpDCL->D_flag = 0;              /* restore all timestamps */
lpDCL->U_flag = 0;              /* do not disable UTF-8 support */
lpDCL->ExtractOnlyNewer = 0;    /* do not extract only newer */
lpDCL->SpaceToUnderscore = 0;   /* do not convert space to '_' in filenames */
lpDCL->PromptToOverwrite = 0;   /* "overwrite all" selected -> no query mode */
lpDCL->lpszZipFN = argv[1];     /* the archive name */
lpDCL->lpszExtractDir = NULL;   /* the directory to extract to.
                                   This is set to NULL if you are extracting
                                   to the current directory.

unzip-6.0/windll/windll.c  view on Meta::CPAN

    nvflag            = verbose listing
    nfflag            = "freshen" (replace existing files by newer versions)
    nzflag            = display zip file comment
    ndflag            = controls (sub)directory recreation during extraction
                        0 = junk paths from filenames
                        1 = "safe" usage of paths in filenames (skip "../")
                        2 = allow also unsafe path components (dir traversal)
    noflag            = always overwriting existing files if TRUE
    naflag            = do end-of-line translation
    nZIflag           = get ZipInfo if TRUE
    B_flag            = backup existing files if TRUE
    C_flag            = be case insensitive if TRUE
    D_flag            = controls restoration of timestamps
                        0 = restore all timestamps (default)
                        1 = skip restoration of timestamps for folders
                            created on behalf of directory entries in the
                            Zip archive
                        2 = do not restore any timestamps; extracted files
                            and directories get stamped with the current time
    U_flag            = controls UTF-8 filename coding support
                        0 = automatic UTF-8 translation enabled (default)

unzip-6.0/windll/windll.txt  view on Meta::CPAN

 int nvflag             = verbose listing
 int nfflag             = "freshen" (replace existing files by newer versions)
 int nzflag             = display zip file comment
 int ndflag             = controls (sub)directory recreation during extraction
                          0 = junk paths from filenames
                          1 = "safe" usage of paths in filenames (skip "../")
                          2 = allow also unsafe path components (dir traversal)
 int noflag             = always overwriting existing files if TRUE
 int naflag             = do end-of-line translation
 int nZIflag            = get ZipInfo if TRUE
 int B_flag             = backup existing files if TRUE
 int C_flag             = be case insensitive if TRUE
 int D_flag             = controls restoration of timestamps
                          0 = restore all timestamps (default)
                          1 = skip restoration of timestamps for folders
                              created on behalf of directory entries in the
                              Zip archive
                          2 = do not restore any timestamps; extracted files
                              and directories get stamped with the current time
 int U_flag             = controls UTF-8 filename coding support
                          0 = automatic UTF-8 translation enabled (default)



( run in 0.816 second using v1.01-cache-2.11-cpan-49f99fa48dc )