Archive-Unzip-Burst

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

unzip-6.0/win32/win32.c
unzip-6.0/win32/win32i64.c
unzip-6.0/win32/winapp.rc
unzip-6.0/wince/Contents
unzip-6.0/wince/README
unzip-6.0/wince/ilmask.bmp
unzip-6.0/wince/imglist.2bp
unzip-6.0/wince/imglist.bmp
unzip-6.0/wince/inc/conio.h
unzip-6.0/wince/inc/errno.h
unzip-6.0/wince/inc/locale.h
unzip-6.0/wince/inc/signal.h
unzip-6.0/wince/inc/stdio.h
unzip-6.0/wince/intrface.cpp
unzip-6.0/wince/intrface.h
unzip-6.0/wince/punzip.h
unzip-6.0/wince/punzip.htp
unzip-6.0/wince/punzip.ic2
unzip-6.0/wince/punzip.ico
unzip-6.0/wince/punzip.rc
unzip-6.0/wince/punzip.rcv

ppport.h  view on Meta::CPAN

hv_placeholders_get||5.009003|
hv_placeholders_p||5.009003|
hv_placeholders_set||5.009003|
hv_riter_p||5.009003|
hv_riter_set||5.009003|
hv_scalar||5.009001|
hv_store_ent||5.004000|
hv_store_flags||5.008000|
hv_store|||
hv_undef|||
ibcmp_locale||5.004000|
ibcmp_utf8||5.007003|
ibcmp|||
incl_perldb|||
incline|||
incpush|||
ingroup|||
init_argv_symbols|||
init_debugger|||
init_global_struct|||
init_i18nl10n||5.006000|

ppport.h  view on Meta::CPAN

si_dup|||
sighandler|||n
simplify_sort|||
skipspace|||
sortsv||5.007003|
ss_dup|||
stack_grow|||
start_glob|||
start_subparse||5.004000|
stashpv_hvname_match||5.009003|
stdize_locale|||
strEQ|||
strGE|||
strGT|||
strLE|||
strLT|||
strNE|||
str_to_version||5.006000|
strnEQ|||
strnNE|||
study_chunk|||

ppport.h  view on Meta::CPAN

sv_catpvn|||
sv_catpv|||
sv_catsv_flags||5.007002|
sv_catsv_mg|5.006000||p
sv_catsv_nomg|5.007002||p
sv_catsv|||
sv_chop|||
sv_clean_all|||
sv_clean_objs|||
sv_clear|||
sv_cmp_locale||5.004000|
sv_cmp|||
sv_collxfrm|||
sv_compile_2op||5.008001|
sv_copypv||5.007003|
sv_dec|||
sv_del_backref|||
sv_derived_from||5.004000|
sv_dump|||
sv_dup|||
sv_eq|||

ppport.h  view on Meta::CPAN

    if (PL_numeric_radix_sv && IN_LOCALE) {
        STRLEN len;
        char* radix = SvPV(PL_numeric_radix_sv, len);
        if (*sp + len <= send && memEQ(*sp, radix, len)) {
            *sp += len;
            return TRUE;
        }
    }
#else
    /* older perls don't have PL_numeric_radix_sv so the radix
     * must manually be requested from locale.h
     */
#include <locale.h>
    dTHR;  /* needed for older threaded perls */
    struct lconv *lc = localeconv();
    char *radix = lc->decimal_point;
    if (radix && IN_LOCALE) {
        STRLEN len = strlen(radix);
        if (*sp + len <= send && memEQ(*sp, radix, len)) {
            *sp += len;
            return TRUE;
        }
    }
#endif /* PERL_VERSION */
#endif /* USE_LOCALE_NUMERIC */
    /* always try "." if numeric radix didn't match because
     * we may have data from different locales mixed */
    if (*sp < send && **sp == '.') {
        ++*sp;
        return TRUE;
    }
    return FALSE;
}
#endif
#endif

/* grok_number depends on grok_numeric_radix */

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

 - vms/make_unz.com, vms/link_unz.com: removed these obsolete files, they have
    been replaced by vms/build_unzip.com.  [Chr. Spieler]
 - vms/build_unzip.com: added support for compiling bzip2-enabled programs
    in "standalone" source setup, using bzip2/buildbz2.com for creating the
    bz2 object library.  [Chr. Spieler]
 - updated the UNICODE_SUPPORT code from Ed Gordon's work (6.00d05t, excluding
    the win32-wide specific code).  This code is unfinished, besides other
    issues there is a memory leak to be fixed.  [Ed Gordon, Chr. Spieler]
 - unzip.c: Added "static" to test_buf definition in the "NEXTBYTE operation
    test" code block of main function unzip().  [SMS]
 - unzpriv.h: Added <locale.h>-related stuff from 6.00d05t (SMS), with some
    corrections.  [Steven M. Schweda, Chr. Spieler]

6.00d09 (06 Jan 08):
 - unzip.c: corrected parser code for "negated -D" option.  [Steven M. Schweda]
 - man/unzip.1: extended explanation of the VMS-specific differences in the
    "-D" option behaviour for clarity.  [Steven M. Schweda]
 - vms/unzip_cli.cld, vms/cmdline.c: corrections and refinements applied to
    the CLI parsing code for the new "-D" option.  [Steven M. Schweda]
 - vms/INSTALL.VMS: added/updated build description aspects concerning optional
    bzip2 support.  [Steven M. Schweda]

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

    (linking against C rtl dll vs. static C rtl lib) when building the UnZip
    DLL.  [Chr. Spieler]

6.00g (28 Feb 09):
 - unzip.c: cleaned up the UTF-8 check according to the code found in the
    latest Zip 3.1 beta, removed the "switch to UTF-8 codeset" code because
    it proved to not work as expected.  [Ed Gordon, Chr. Spieler]
 - win32/w32cfg.h: use rtl-provided MBCS functions for MinGW32 when compiled
    and linked against msvcrt.dll.  [Chr. Spieler]
 - extract.c - fnfilter(): added "enhanced" non-printable charcode filtering
    when a locale-aware isprint() implementation is available (controlled by
    the preprocessor symbol HAVE_WORKING_ISPRINT).  [Chr. Spieler]
 - win32: enabled "enhanced" fnfilter() filtering for compiler environments
    using MSVC 6.0 (or newer) runtime, and for Borland C.  [Chr. Spieler]
 - vms: enabled "enhanced" fnfilter() filtering using isprint(), may get
   disabled by defining the NO_WORKING_ISPRINT symbol.  [Chr. Spieler]
 - unix/unxcfg.h: enabled "enhanced" fnfilter() filtering when setlocale() is
    available (NO_SETLOCALE is not defined).  [Chr. Spieler]
 - unix/configure: added NO_SETLOCALE define when setlocale() check fails.
    [Chr. Spieler]
 - INSTALL: added documentation of NO_SETLOCALE and HAVE_WORKING_ISPRINT resp.
    NO_WORKING_ISPRINT symbols.  [Chr. Spieler]
 - general: unified spelling of "wildcard".  [Chr. Spieler]

6.00h01 (09 Mar 09):
 - vms/vms.c: added missing case-translation define for sys$getdvi(), for
    support of /NAMES=AS_IS with older DECC distributions.  [Steven M. Schweda]
 - vms/build_unzip.com, vms/descrip.mms, vms/descrip_src.mms: resolved a
    /NAME=AS_IS case issue by changing the linking command for bzip2-enabled

unzip-6.0/INSTALL  view on Meta::CPAN

      DATE_FORMAT=DF_DMY or DF_MDY or DF_YMD
        This option controls the order in which date components are printed
        in non-ZipInfo-mode listings:  day-month-year or month-day-year or
        year-month-day.
        For DOS, FlexOS, OS2, Theos and Win32, the format is automatically
        obtained from the operating system; most others default to DF_MDY.

      DATE_SEPCHAR='-' or '.' or '/' etc.
        This option controls the character that separates the date components
        shown in (non-ZipInfo-mode) listings.  The Win32 port obtains the
        separator automatically from the operating system's locale settings;
        all others default to '-'.

      ACORN_FTYPE_NFS  (needs support for long filenames with embedded commas)
        This option enables a -F option that instructs UnZip to interpret the
        filetype information extracted from Acorn RiscOS extra field blocks.
        The filetype IDs are translated into "NFS filetype extensions" and
        appended to the names of the extracted files. This feature facilitates
        maintenance of Unix-based NFS volumes that are exported to Acorn RiscOS
        systems.

unzip-6.0/INSTALL  view on Meta::CPAN

        This support follows the recent additions to the PKWare AppNote for
        Unicode support, except that Unicode comments on systems where UTF-8
        is not the current character set is not implemented in this release.

        Internally, Unicode support can be achieved by three methods:
        a) The charset encoding used by the system is already UTF-8, so
           the program just has to select the UTF-8 versions of the stored
           filenames for file name handling.
           This method is enabled by setting the symbol UTF8_MAYBE_NATIVE;
           this activates code to check for native UTF-8 encoding in the
           locale settings.
        b) The operating system and the compilation environment support
           "wide character" data in Unicode encoding (UCS-2/UTF-16 or UCS-4),
           which are used to translate between UTF-8 and the native
           extended-ASCII character encoding.
           The code for this method is activated by setting the preprocessor
           symbol UNICODE_WCHAR.
           It may be activated together with UTF8_MAYBE_NATIVE to provide
           more versatile Unicode support and additional "debugging" options
           for checking the correct recognition of non-ASCII Unicode
           characters.

unzip-6.0/INSTALL  view on Meta::CPAN

           of the UnZip code. All internal string handling and text output
           needs to be ported to use wchar_t character storage.
           This porting is still in an experimental stage and not ready
           for general distribution.

        On some ports UNICODE_SUPPORT is set automatically:
        - WIN32 (and WinCE) use method b) by defining UNICODE_SUPPORT and
          UNICODE_WCHAR.
        - On Unix, the automatic configuration script enables UNICODE_WCHAR
          if ISO-10646 compatible wide characters are supported and
          UTF8_MAYBE_NATIVE if the locale detection call is available.
        For these ports, setting NO_UNICODE_SUPPORT forces deactivation of
        the Unicode support.

      NO_SETLOCALE (for Unix)
        On Unix, it is now assumed that <locale.h> and the setlocale function
        are available, to setup locale-aware filtering of displayed filenames.
        The option NO_SETLOCALE allows to disable the dependency on <locale.h>
        and setlocale() on systems where this assumption is invalid (and the
        auto-configuring make target "generic" cannot be used for capabilities
        detection).

      _MBCS
      NO_MBCS
       Enable multi-byte character set support.  This is the default for the
       Human68k system (originated from Japan) and for Win32 (here only DBCS
       "double-byte character set" support).  The MBCS support should also be
       enabled on systems which are capable of using UTF-8 as native charset.
       For MBCS support, the C runtime library must supply implementations

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

            }           /* things like removable cartrige hard drives, or    */
    Permit();           /* any unusual kind of floppy device driver.         */
    return okay;
}
#endif /* AMIGA_VOLUME_LABELS */


#ifndef SFX

# if 0
/* As far as I can tell, all the locales AmigaDOS 2.1 knows about all */
/* happen to use DF_MDY ordering, so there's no point in using this.  */

/*************************/
/* Function dateformat() */
/*************************/

#include <clib/locale_protos.h>
#ifdef AZTEC_C
#  include <pragmas/locale_lib.h>
#endif

int dateformat()
{
/*---------------------------------------------------------------------------
    For those operating systems which support it, this function returns a
    value which tells how national convention says that numeric dates are
    displayed.  Return values are DF_YMD, DF_DMY and DF_MDY (the meanings
    should be fairly obvious).
  ---------------------------------------------------------------------------*/
    struct Library *LocaleBase;
    struct Locale *ll;
    int result = DF_MDY;        /* the default */

    if ((LocaleBase = OpenLibrary("locale.library", 0))) {
        if (ll = OpenLocale(NULL)) {
            uch *f = ll->loc_ShortDateFormat;
            /* In this string, %y|%Y is year, %b|%B|%h|%m is month, */
            /* %d|%e is day day, and %D|%x is short for mo/da/yr.   */
            if (!strstr(f, "%D") && !strstr(f, "%x")) {
                uch *da, *mo, *yr;
                if (!(mo = strstr(f, "%b")) && !(mo = strstr(f, "%B"))
                                    && !(mo = strstr(f, "%h")))
                    mo = strstr(f, "%m");
                if (!(da = strstr(f, "%d")))

unzip-6.0/amiga/amiga.h  view on Meta::CPAN

#  include <sys/dir.h>
#  include <dos.h>
#  include <exec/memory.h>
#  include <exec/execbase.h>
#  if (defined(_M68020) && (!defined(__USE_SYSBASE)))
                            /* on 68020 or higher processors it is faster   */
#    define __USE_SYSBASE   /* to use the pragma libcall instead of syscall */
#  endif                    /* to access functions of the exec.library      */
#  include <proto/exec.h>   /* see SAS/C manual:part 2,chapter 2,pages 6-7  */
#  include <proto/dos.h>
#  include <proto/locale.h>

#  ifdef DEBUG
#    include <sprof.h>      /* profiler header file */
#  endif
#  if ( (!defined(O_BINARY)) && defined(O_RAW))
#    define O_BINARY O_RAW
#  endif
#  if (defined(_SHORTINT) && !defined(USE_FWRITE))
#    define USE_FWRITE      /* define if write() returns 16-bit int */
#  endif

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

 * 26 Jul 97, Chr. Spieler, old mkgmtime() fixed (ydays[] def, sign vs unsign).
 * 30 Dec 97, Haidinger Walter, adaptation for SAS/C using z-stat.h functions.
 * 19 Feb 98, Haidinger Walter, removed alloc_remember, more SAS.C fixes.
 * 23 Apr 98, Chr. Spieler, removed mkgmtime(), changed FileDate to convert to
 *            Amiga file-time directly.
 * 24 Apr 98, Paul Kienitz, clip Unix dates earlier than 1978 in FileDate().
 * 02 Sep 98, Paul Kienitz, C. Spieler, always include zip.h to get a defined
 *            header inclusion sequence that resolves all header dependencies.
 * 06 Jun 00, Paul Kienitz, removed time_lib.c due to its incompatible license,
 *            moved set_TZ() back here, replaced minimal tzset() and localtime()
 *            with new versions derived from GNU glibc source.  Gave locale_TZ()
 *            reasonable European defaults for daylight savings.
 * 17 Jun 00, Paul Kienitz, threw out GNU code because of objections to the GPL
 *            virus, replaced with similar functions based on the public domain
 *            timezone code at ftp://elsie.nci.nih.gov/pub.  As with the GNU
 *            stuff, support for timezone files and leap seconds was removed.
 * 23 Aug 00, Paul Kienitz, moved timezone code out from here into separate
 *            platform-independent module 'timezone.c'.
 * 31 Dec 00, Christian Spieler, moved system-specific timezone help funcions
 *            back in here, from 'timezone.c'.
 * 07 Jan 01, Paul Kienitz, Chr. Spieler, added missing #include "timezone.h"

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

#include <exec/types.h>
#include <exec/execbase.h>
#include <exec/memory.h>
#include <dos/dosextens.h>

#ifdef AZTEC_C
#  include <libraries/dos.h>
#  include <libraries/dosextens.h>
#  include <clib/exec_protos.h>
#  include <clib/dos_protos.h>
#  include <clib/locale_protos.h>
#  include <pragmas/exec_lib.h>
#  include <pragmas/dos_lib.h>
#  include <pragmas/locale_lib.h>
#  define ESRCH  ENOENT
#  define EOSERR EIO
#endif

#ifdef __SASC
#  include <stdlib.h>
#  if (defined(_M68020) && (!defined(__USE_SYSBASE)))
                            /* on 68020 or higher processors it is faster   */
#    define __USE_SYSBASE   /* to use the pragma libcall instead of syscall */
#  endif                    /* to access functions of the exec.library      */
#  include <proto/exec.h>   /* see SAS/C manual:part 2,chapter 2,pages 6-7  */
#  include <proto/dos.h>
#  include <proto/locale.h>
#  ifdef DEBUG
#     include <sprof.h>
#  endif
#  ifdef MWDEBUG
#    include <stdio.h>      /* include both before memwatch.h again just */
#    include <stdlib.h>     /* to be safe */
#    include "memwatch.h"
#  endif /* MWDEBUG */
#endif /* __SASC */

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

            if (offset % 60)
                sprintf(put_tz + strlen(put_tz), ":%02d", offset % 60);
        }
        if (day_light)
            strcat(put_tz,"DST");
        setenv(TZ_ENVVAR, put_tz, 1);
    }
}
#endif /* __SASC */

/* set state as well as possible from settings found in locale.library */
int GetPlatformLocalTimezone(sp, fill_tzstate_from_rules)
     register struct state * ZCONST sp;
     void (*fill_tzstate_from_rules)(struct state * ZCONST sp_res,
                                     ZCONST struct rule * ZCONST start,
                                     ZCONST struct rule * ZCONST end);
{
    struct Library *LocaleBase;
    struct Locale *ll;
    struct Process *me = (void *) FindTask(NULL);
    void *old_window = me->pr_WindowPtr;
    BPTR eh;
    int z, valid = FALSE;

    /* read timezone from locale.library if TZ envvar missing */
    me->pr_WindowPtr = (void *) -1;   /* suppress any "Please insert" popups */
    if (LocaleBase = OpenLibrary("locale.library", 0)) {
        if (ll = OpenLocale(NULL)) {
            z = ll->loc_GMTOffset;    /* in minutes */
            if (z == -300) {
                if (eh = Lock("ENV:sys/locale.prefs", ACCESS_READ)) {
                    UnLock(eh);
                    valid = TRUE;
                } else
                    z = 300; /* bug: locale not initialized, default bogus! */
            } else
                valid = TRUE;
            if (valid) {
                struct rule startrule, stoprule;

                sp->timecnt = 0;
                sp->typecnt = 1;
                sp->charcnt = 2;
                sp->chars[0] = sp->chars[1] = '\0';
                sp->ttis[0].tt_abbrind = 0;

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

                stoprule.r_week = 5;
                stoprule.r_mon = 10;
                stoprule.r_time = 2 * SECSPERHOUR;
                startrule = stoprule;
                startrule.r_mon = 4;
                startrule.r_week = 1;
                if (z >= -180 && z < 150) {
                    /* At this point we make a really gratuitous assumption: */
                    /* if the time zone could be Europe, we use the European */
                    /* Union rules without checking what country we're in.   */
                    /* The AmigaDOS locale country codes do not, at least in */
                    /* 2.x versions of the OS, recognize very many countries */
                    /* outside of Europe and North America.                  */
                    sp->typecnt = 2;
                    startrule.r_mon = 3;   /* one week earlier than US DST */
                    startrule.r_week = 5;
                } else if (z >= 150 && z <= 480 &&
                           /* no DST in alaska, hawaii */
                           (ll->loc_CountryCode == 0x55534100 /*"USA"*/ ||
                            ll->loc_CountryCode == 0x43414E00 /*"CAN"*/))
                    sp->typecnt = 2;

unzip-6.0/atheos/athcfg.h  view on Meta::CPAN


#define GOT_UTIMBUF
#define DIRENT
#if (!defined(HAVE_STRNICMP) & !defined(NO_STRNICMP))
#  define NO_STRNICMP
#endif
#define INT_SPRINTF
#define SYMLINKS

#ifndef DATE_FORMAT
#  define DATE_FORMAT DF_MDY    /* GRR:  customize with locale.h somehow? */
#endif
#define lenEOL          1
#define PutNativeEOL    *q++ = native(LF);
#define SCREENSIZE(ttrows, ttcols)  screensize(ttrows, ttcols)
#define SCREENWIDTH     80
#define SCREENLWRAP     1
#if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
#  define USE_EF_UT_TIME
#endif
#define SET_SYMLINK_ATTRIBS

unzip-6.0/beos/beocfg.h  view on Meta::CPAN

#include <sys/types.h>          /* [cjh]:  This is pretty much a generic  */
#include <sys/stat.h>           /* POSIX 1003.1 system; see beos/ for     */
#include <fcntl.h>              /* extra code to deal with our extra file */
#include <sys/param.h>          /* attributes. */
#include <unistd.h>
#include <utime.h>
#define GOT_UTIMBUF
#define DIRENT
#include <time.h>
#ifndef DATE_FORMAT
#  define DATE_FORMAT DF_MDY    /* GRR:  customize with locale.h somehow? */
#endif
#define lenEOL          1
#define PutNativeEOL    *q++ = native(LF);
#define SCREENSIZE(ttrows, ttcols)  screensize(ttrows, ttcols)
#define SCREENWIDTH     80
#if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
#  define USE_EF_UT_TIME
#endif
#define SET_SYMLINK_ATTRIBS
#define SET_DIR_ATTRIB

unzip-6.0/flexos/README  view on Meta::CPAN

 should interrogate stdin and if it's a FlexOS console use special code
 to turn off echo and just read one char.
)Only the basic MSDOS FAT file attributes are saved/restored.  There is
 currently no support for the FlexOS extended file attributes.
)There is some code that should attempt to do the correct thing when a
 pathspec with a logical name definition is used (e.g., "system:path/to/it");
 however it again has not been stress-tested.
)There is no special handling for floppy drives, there probably should
 be.
)The dateformat is compiled in as DMY (shoot me I'm British),  I'm not
 sure if there is actually a way to get locale info.
)The assembler speedups haven't yet been ported to ASM86 (should simply
 be a change of syntax)

 --
 D.Fawcus  17 July 1997

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

} /* end function close_outfile() */

#ifndef SFX

/*************************/
/* Function dateformat() */
/*************************/

int dateformat()
{
    return DF_DMY;   /* default for systems without locale info */
}

/************************/
/*  Function version()  */
/************************/

void version(__G)
    __GDEF
{
    int len;

unzip-6.0/macos/README.TXT  view on Meta::CPAN




Hints for proper restoration of file-time stamps:
-------------------------------------------------

UnZip requires the host computer to have proper time zone
information in order to handle certain tasks correctly (see
unzip.txt).  To set the time zone on the Macintosh, go to
the Map Control Panel and enter the correct number of hours
(and, in a few locales, minutes) offset from Universal
Time/Greenwich Mean Time.  For example, the US Pacific time
zone is -8 hours from UTC/GMT during standard (winter) time
and -7 hours from UTC/GMT during Daylight Savings Time.  The
US Eastern time zone is -5 hours during the winter and -4
hours during the summer.

Discussion of Daylight Savings Time
-----------------------------------
The setting in the Date & Time control panel for Daylight
Savings time is a universal setting. That is, it assumes

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

    switch(CountryInfo[0]) {
        case 0:
            return DF_MDY;
        case 1:
            return DF_DMY;
        case 2:
            return DF_YMD;
    }
#endif /* !WINDLL */

    return DF_MDY;   /* default for systems without locale info */

} /* end function dateformat() */




#ifndef WINDLL

/**************************************/
/*  Function is_running_on_windows()  */

unzip-6.0/proginfo/CONTRIBS  view on Meta::CPAN

  Carlton Brewster       mapname bugfix
  Marcus Brinkmann       Unix configuration fix for GNU/Hurd
  Rodney Brown           stdin-/dev/null bugfix; VMS error levels; CRC optimiz.
  Stan Brown             "zipinfo -M"/isatty(1) bugfix
  Jens von Buelow        port to MPE/iX, a Unix variant running on HP 3000
  John Bush              first full Amiga port; FileDate; Amiga fixes; etc.
  Christian Carey        Unix makefile bugfix for install target (create dirs)
  Valter Cavecchia       Unix makefile entry
  Rudolf Cejka           Unix UID/GID extraction bugfix
  Peter Chang            optional UNIXBACKUP option (-B)
  Kevin Cheng            windll MBCS fix (setlocale initialization)
  Andrey Chernov         BSD 4.4 utime fix
  Brad Clarke            Win32 XX_flag bugfix; Borland debug code removal
  Mark Clayton           LynxOS (unix/Makefile update)
  John Cowan             mods to original match.c; other stuff?
  Frank da Cruz          xxu.c, on which original mapname.c was based
  Bill Davidsen          -q(q); mapname stuff; envargs; Xenix stuff; opts; etc.
  Karl Davis             Acorn RISC OS port
  Jim Delahanty          NTSD fixes
  Harald Denker          major Atari update/fixes
  Matt "Doc" D'Errico    AIX stuff, Unix makefile entry

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

across systems, it is important to take into account the relevance of
access control entries and the associated Sid of each entry.  For example,
if a .zip file is created on a Windows NT workstation, and file security
references local workstation user accounts (like an account named Fred),
this access entry will not be relevant if the .zip file is transported to
another machine.  Where possible, take advantage of the built-in well-known
groups, like Administrators, Everyone, Network, Guests, etc.  These groups
have the same meaning on any Windows NT machine.  Note that the names of
these groups may differ depending on the language of the installed Windows
NT, but this isn't a problem since each name has well-known ID that, upon
restore, translates to the correct group name regardless of locale.

When access control entries contain Sid entries that reference Domain
accounts, these entries will only be relevant on systems that recognize
the referenced domain.  Generally speaking, the only side effects of
irrelevant access control entries is wasted space in the stored security
descriptor and loss of complete intended access control.  Such irrelevant
access control entries will show up as "Account Unknown" when viewing file
security with File Manager or Explorer.

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

closely follows the XPG3 specification, except for the paragraphs starting
**CLARIFICATION**.

<std><offset>[<dst>[<offset>],<start>[/<time>],<end>[/<time>]]

Where:
<std> and <dst>
      Are each three or more bytes that are the designation for the
      standard (<std>) and daylight savings time (<dst>) timezones.
      Only <std> is required - if <dst> is missing, then daylight
      savings time does not apply in this locale.  Upper- and
      lower-case letters are allowed.  Any characters except a
      leading colon (:), digits, a comma (,), a minus (-) or a plus
      (+) are allowed.
      **CLARIFICATION**  The two-byte designation `UT' is permitted.
<offset>
      Indicates the value one must add to the local time to arrive
      at Coordinated Universal Time.  The offset has the form:
      <hh>[:<mm>[:<ss>]]
      The minutes <mm> and seconds <ss> are optional.  The hour <hh>
      is required and may be a single digit.  The offset following

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

 */

/* HISTORY/CHANGES
 * 17 Jun 00, Paul Kienitz, added the PD-based tzset(), localtime(), and so on
 *            to amiga/filedate.c, replacing GNU-based functions which had
 *            replaced time_lib.c, both having been rejected for licensing
 *            reasons.  Support for timezone files and leap seconds was removed.
 *
 * 23 Aug 00, Paul Kienitz, split into separate timezone.c file, made platform
 *            independent, copied in mktime() and mkgmtime() from Zip, renamed
 *            locale_TZ as GetPlatformLocalTimezone(), for use as a generic
 *            hook by other platforms.
 */

#ifndef __timezone_c
#define __timezone_c


#include "zip.h"
#include "timezone.h"
#include <ctype.h>

unzip-6.0/unix/configure  view on Meta::CPAN

  elif [ $r -eq 1 ]; then
    echo -- no Unicode support - wchar_t encoding unspecified
  elif [ $r -eq 2 ]; then
    echo -- have wchar_t with known UCS encoding - enabling Unicode support!
    CFLAGSR="${CFLAGSR} -DUNICODE_SUPPORT -DUNICODE_WCHAR"
  else
    echo "-- no Unicode (wchar_t) support - conftest returned $r"
  fi
fi

echo "Check for setlocale support (needed for UNICODE Native check)"
cat > conftest.c << _EOF_
#include <locale.h>
int main()
{
  char *loc = setlocale(LC_CTYPE, "");
  return 0;
}
_EOF_
$CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
  echo "-- have setlocale, can check for charset type"
  echo "--  - enabling UTF8-native support!"
  CFLAGSR="${CFLAGSR} -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE"
else
  echo "-- no Unicode (UTF-8 native) support!"
  CFLAGSR="${CFLAGSR} -DNO_SETLOCALE"
fi

# from configure 2.4i (Onno) 12/5/04
echo Check for gcc no-builtin flag
# -fno-builtin since version 2

unzip-6.0/unix/unxcfg.h  view on Meta::CPAN

#  undef UNICODE_SUPPORT
#endif

#if (defined(_MBCS) && defined(NO_MBCS))
   /* disable MBCS support when requested */
#  undef _MBCS
#endif

#if (!defined(NO_SETLOCALE) && !defined(_MBCS))
# if (!defined(UNICODE_SUPPORT) || !defined(UTF8_MAYBE_NATIVE))
   /* enable setlocale here, unless this happens later for UTF-8 and/or
    * MBCS support */
#  include <locale.h>
#  ifndef SETLOCALE
#    define SETLOCALE(category, locale) setlocale(category, locale)
#  endif
# endif
#endif
#ifndef NO_SETLOCALE
# if (!defined(NO_WORKING_ISPRINT) && !defined(HAVE_WORKING_ISPRINT))
   /* enable "enhanced" unprintable chars detection in fnfilter() */
#  define HAVE_WORKING_ISPRINT
# endif
#endif

#ifdef MINIX
#  include <stdio.h>
#endif
#if (!defined(HAVE_STRNICMP) & !defined(NO_STRNICMP))
#  define NO_STRNICMP
#endif
#ifndef DATE_FORMAT
#  define DATE_FORMAT DF_MDY    /* GRR:  customize with locale.h somehow? */
#endif
#define lenEOL          1
#ifdef EBCDIC
#  define PutNativeEOL  *q++ = '\n';
#else
#  define PutNativeEOL  *q++ = native(LF);
#endif
#define SCREENSIZE(ttrows, ttcols)  screensize(ttrows, ttcols)
#define SCREENWIDTH     80
#define SCREENLWRAP     1

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

#else
#   define SET_SIGHANDLER(sigtype, newsighandler) \
      signal((sigtype), (newsighandler))
#endif
#endif /* NO_EXCEPT_SIGNALS */

    /* initialize international char support to the current environment */
    SETLOCALE(LC_CTYPE, "");

#ifdef UNICODE_SUPPORT
    /* see if can use UTF-8 Unicode locale */
# ifdef UTF8_MAYBE_NATIVE
    {
        char *codeset;
#  if !(defined(NO_NL_LANGINFO) || defined(NO_LANGINFO_H))
        /* get the codeset (character set encoding) currently used */
#       include <langinfo.h>

        codeset = nl_langinfo(CODESET);
#  else /* NO_NL_LANGINFO || NO_LANGINFO_H */
        /* query the current locale setting for character classification */
        codeset = setlocale(LC_CTYPE, NULL);
        if (codeset != NULL) {
            /* extract the codeset portion of the locale name */
            codeset = strchr(codeset, '.');
            if (codeset != NULL) ++codeset;
        }
#  endif /* ?(NO_NL_LANGINFO || NO_LANGINFO_H) */
        /* is the current codeset UTF-8 ? */
        if ((codeset != NULL) && (strcmp(codeset, "UTF-8") == 0)) {
            /* successfully found UTF-8 char coding */
            G.native_is_utf8 = TRUE;
        } else {
            /* Current codeset is not UTF-8 or cannot be determined. */

unzip-6.0/unzpriv.h  view on Meta::CPAN

 * (including the trailing '\0')
 */
#define FILNAMSIZ  PATH_MAX

#ifdef UNICODE_SUPPORT
# if !(defined(UTF8_MAYBE_NATIVE) || defined(UNICODE_WCHAR))
#  undef UNICODE_SUPPORT
# endif
#endif
/* 2007-09-18 SMS.
 * Include <locale.h> here if it will be needed later for Unicode.
 * Otherwise, SETLOCALE may be defined here, and then defined again
 * (differently) when <locale.h> is read later.
 */
#ifdef UNICODE_SUPPORT
# ifdef UNICODE_WCHAR
#  if !(defined(_WIN32_WCE) || defined(POCKET_UNZIP))
#   include <wchar.h>
#  endif
# endif
# ifndef _MBCS  /* no need to include <locale.h> twice, see below */
#   include <locale.h>
#   ifndef SETLOCALE
#     define SETLOCALE(category, locale) setlocale(category, locale)
#   endif
# endif
#endif /* UNICODE_SUPPORT */

/* DBCS support for Info-ZIP  (mainly for japanese (-: )
 * by Yoshioka Tsuneo (QWF00133@nifty.ne.jp,tsuneo-y@is.aist-nara.ac.jp)
 */
#ifdef _MBCS
#  include <locale.h>
   /* Multi Byte Character Set */
#  define ___MBS_TMP_DEF  char *___tmp_ptr;
#  define ___TMP_PTR      ___tmp_ptr
#  ifndef CLEN
#    define NEED_UZMBCLEN
#    define CLEN(ptr) (int)uzmbclen((ZCONST unsigned char *)(ptr))
#  endif
#  ifndef PREINCSTR
#    define PREINCSTR(ptr) (ptr += CLEN(ptr))
#  endif

unzip-6.0/unzpriv.h  view on Meta::CPAN

#  define lastchar(ptr, len) ((int)(unsigned)*plastchar(ptr, len))
#  ifndef MBSCHR
#    define NEED_UZMBSCHR
#    define MBSCHR(str,c) (char *)uzmbschr((ZCONST unsigned char *)(str), c)
#  endif
#  ifndef MBSRCHR
#    define NEED_UZMBSRCHR
#    define MBSRCHR(str,c) (char *)uzmbsrchr((ZCONST unsigned char *)(str), c)
#  endif
#  ifndef SETLOCALE
#    define SETLOCALE(category, locale) setlocale(category, locale)
#  endif
#else /* !_MBCS */
#  define ___MBS_TMP_DEF
#  define ___TMP_PTR
#  define CLEN(ptr) 1
#  define PREINCSTR(ptr) (++(ptr))
#  define POSTINCSTR(ptr) ((ptr)++)
#  define plastchar(ptr, len) (&ptr[(len)-1])
#  define lastchar(ptr, len) (ptr[(len)-1])
#  define MBSCHR(str, c) strchr(str, c)
#  define MBSRCHR(str, c) strrchr(str, c)
#  ifndef SETLOCALE
#    define SETLOCALE(category, locale)
#  endif
#endif /* ?_MBCS */
#define INCSTR(ptr) PREINCSTR(ptr)


#if (defined(MALLOC_WORK) && !defined(MY_ZCALLOC))
   /* Any system without a special calloc function */
# ifndef zcalloc
#  define zcalloc(items, size) \
          (zvoid far *)calloc((unsigned)(items), (unsigned)(size))

unzip-6.0/unzpriv.h  view on Meta::CPAN


/* Convert filename (and file comment string) into "internal" charset.
 * This macro assumes that Zip entry filenames are coded in OEM (IBM DOS)
 * codepage when made on
 *  -> DOS (this includes 16-bit Windows 3.1)  (FS_FAT_)
 *  -> OS/2                                    (FS_HPFS_)
 *  -> Win95/WinNT with Nico Mak's WinZip      (FS_NTFS_ && hostver == "5.0")
 * EXCEPTIONS:
 *  PKZIP for Windows 2.5, 2.6, and 4.0 flag their entries as "FS_FAT_", but
 *  the filename stored in the local header is coded in Windows ANSI (CP 1252
 *  resp. ISO 8859-1 on US and western Europe locale settings).
 *  Likewise, PKZIP for UNIX 2.51 flags its entries as "FS_FAT_", but the
 *  filenames stored in BOTH the local and the central header are coded
 *  in the local system's codepage (usually ANSI codings like ISO 8859-1).
 *
 * All other ports are assumed to code zip entry filenames in ISO 8859-1.
 */
#ifndef Ext_ASCII_TO_Native
#  define Ext_ASCII_TO_Native(string, hostnum, hostver, isuxatt, islochdr) \
    if (((hostnum) == FS_FAT_ && \
         !(((islochdr) || (isuxatt)) && \

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

#    undef IZ_CRC_BE_OPTIMIZ
#  endif
#  if !defined(IZ_CRC_LE_OPTIMIZ) && !defined(NO_CRC_OPTIMIZ)
#    define IZ_CRC_LE_OPTIMIZ
#  endif
#  if !defined(IZ_CRCOPTIM_UNFOLDTBL) && !defined(NO_CRC_OPTIMIZ)
#    define IZ_CRCOPTIM_UNFOLDTBL
#  endif
   /* Enable "better" unprintable charcodes filtering in fnfilter().
    * (On VMS, the isprint() implementation seems to detect 8-bit printable
    * characters even for the default "C" locale. A previous localization
    * setup by calling setlocale() is not neccessary.) */
#  if (!defined(NO_WORKING_ISPRINT) && !defined(HAVE_WORKING_ISPRINT))
#    define HAVE_WORKING_ISPRINT
#  endif

#ifdef NO_OFF_T
  typedef long zoff_t;
#else
  typedef off_t zoff_t;
#endif
#define ZOFF_T_DEFINED

unzip-6.0/win32/w32cfg.h  view on Meta::CPAN

#  define UNICODE_SUPPORT       /* enable UTF-8 filename support by default */
#endif
#if (defined(UNICODE_SUPPORT) && !defined(UNICODE_WCHAR))
#  define UNICODE_WCHAR         /* wchar_t is UTF-16 encoded on WIN32 */
#endif
#ifdef UTF8_MAYBE_NATIVE
#  undef UTF8_MAYBE_NATIVE      /* UTF-8 cannot be system charset on WIN32 */
#endif

/* The following compiler systems provide or use a runtime library with a
 * locale-aware isprint() implementation.  For these systems, the "enhanced"
 * unprintable charcode detection in fnfilter() gets enabled.
 */
#if (!defined(HAVE_WORKING_ISPRINT) && !defined(NO_WORKING_ISPRINT))
#  if defined(MSC) || defined(__BORLANDC__)
#    define HAVE_WORKING_ISPRINT
#  endif
#  if defined(__MINGW32__) && defined(__MSVCRT__)
#    define HAVE_WORKING_ISPRINT
#  endif
#endif

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

      wc = zwchar_to_wchar_t_default_char;
    } else {
      wc = (wchar_t)wide_string[i];
    }
    /* Unter some vendor's C-RTL, the Wide-to-MultiByte conversion functions
     * (like wctomb() et. al.) do not use the same codepage as the other
     * string arguments I/O functions (fopen, mkdir, rmdir etc.).
     * Therefore, we have to fall back to the underlying Win32-API call to
     * achieve a consistent behaviour for all supported compiler environments.
     * Failing RTLs are for example:
     *   Borland (locale uses OEM-CP as default, but I/O functions expect ANSI
     *            names)
     *   Watcom  (only "C" locale, wctomb() always uses OEM CP)
     * (in other words: all supported environments except the Microsoft RTLs)
     */
    bytes_char = WideCharToMultiByte(
                          CP_ACP, WC_COMPOSITECHECK,
                          &wc, 1,
                          (LPSTR)buf, sizeof(buf),
                          NULL, &default_used);
    if (default_used)
      bytes_char = -1;
    if (escape_all) {

unzip-6.0/wince/wince.h  view on Meta::CPAN

#else
   // do not use import linkage specifier either; symbols are provided locally
#  define ZCRTIMP
#endif

#ifndef ZeroMemory
#define ZeroMemory(Destination,Length) memset(Destination, 0, Length)
#endif

#ifdef _MBCS
   // WinCE C RTL does not provide the setlocale function
#  define setlocale(category, locale)
#endif

// A few forgotten defines in Windows CE's TCHAR.H
#ifndef _stprintf
#define _stprintf wsprintf
#endif

#if _WIN32_WCE < 211 //sr551b functions in stdlib CE300
#ifndef _vsntprintf
#define _vsntprintf(d,c,f,a) wvsprintf(d,f,a)



( run in 1.953 second using v1.01-cache-2.11-cpan-5a3173703d6 )