head	1.1;
branch	1.1.1;
access;
symbols
	ZIP_2_3:1.1.1.2
	NET:1.1.1
	libgcj-2_95_1-release:1.1.1.1
	libgcj-2_95-release:1.1.1.1
	libgcj-2_95-branch:1.1.1.1.0.2
	libgcj-2_95-branchpoint:1.1.1.1
	LIBGCJ_0_1:1.1.1.1
	CYGNUS:1.1.1;
locks; strict;
comment	@# @;


1.1
date	99.04.07.14.52.46;	author tromey;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.04.07.14.52.46;	author tromey;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2000.06.15.00.57.53;	author bryce;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@*****************************************
************ vms/00readme.txt ***********
*****************************************

Additional information for compiling Zip for VMS:

A) Support for storing VMS specific file attributes
   ================================================

The current version of Zip comes with two different types of support
to store VMS file attributes in extra blocks:

  -- the traditional Info-ZIP format in vms/vms_im.c
and

  -- a new PKware (ASI) type extra field structure in vms/vms_pk.c

Both versions should supply exactly the same functionality.
The default configuration is to use the traditional IM style, since it is
well tested and known to be stable.

IMPORTANT: To extract new PK style extra fields, Info-ZIP's
           UnZip version 5.2 or newer is required, previous
           versions will crash with an access violation !!!!
           For this reason, it is strongly discouraged to use
           PK (ASI) style extra fields for distributing VMS Zip
           archives.

If you want to try the new new PK style support (to archive compatibility
with the commercial VMS Zip from PKware), the preprocessor symbol
VMS_PK_EXTRA has to be defined at compile time.

MMS (MMK) users have to edit vms/descrip.mms and add this symbol to
the definition of the COMMON_DEFS macro; for example:

COMMON_DEFS = VMS_PK_EXTRA,

if VMS_PK_EXTRA is the only option. (NOTE the trailing comma!)

Users of the DCL make procedure can select the PK style support by defining
the DCL symbol LOCAL_ZIP as a list of user specific compilation options
(do not forget the trailing comma!!). Example:
$ LOCAL_ZIP == "VMS_PK_EXTRA,"


B) Notes on the compiler switches used on VMS:
   ===========================================

The source has been successfully compiled on VMS 6.1, using
 - DECC 5.0 for Alpha AXP
 - DECC 4.0 for VMS VAX
 - VAXC 3.2

1. Discussion of the /STANDARD switch:

With the exception of some few rough spots in the VMS specific sources,
the code is fully compatible with the "RELAXED_ANSI" mode of the DECC
compilers. The problems found in vmsmunch.c and vms_pk.c are caused
by incompatibles between the system include headers supplied for DECC
(AXP) and DECC (VAX) which cannot get worked around. (Some system
service structure members have type "unsigned int"  in the VAX version,
but "pointer to [miscellanous]" in the AXP headers.)
I consider the AXP headers to show the direction of `future developement'
and have adapted the sources to match the AXP's header files.
This means:
On Alpha AXP, we can equally well use "/STANDARD=RELAXED" instead of
"/STANDARD=VAXC" without getting any warnings.
With the current release of DECC on VAX, the /STANDARD=VAXC switch is
required to suppress the "assignment to incompatible type" warnings.
For the Zip 2.1 release, the compiler mode for Alpha AXP has been changed
to "/STANDARD=RELAX", since the "ANSI mode" executables are slightly smaller.

2. The /PREFIX_LIBRARY_ENTRIES switch:

In (strict and relaxed) ANSI mode on Alpha AXP, only the standard ANSI
RTL function names get prefixed with "DECC$" by the compiler per default.
This results in unresolved references to such functions as "read()", "open()"
"lseek()" at link step. (The same might be true for earlier releases of DECC
on VAX.) To resolve this problem, one has to explicitely request prefixing
of all DECC RTL function by applying the "/PREFIX=ALL" switch.
Although this switch is not needed in "VAXC" mode, it does not hurt either.
Therefore, "/PREFIX=ALL" is applied regardless of the compilation mode,
to avoid any problems when switching over to ANSI standard mode in the future.

C) Support for UX extra field UTC time stamps
   ==========================================
Beginning with Zip 2.1 and UnZip 5.2, the Info-Zip compression utilities
do principally support saving and restoring the modification time of
Zipfile entries as UTC (GMT) universal time. This new information is
stored in an "extra field" labeled "UX" (Unix style GMT modification/access
times, ...).
Previous version of Zip and UnZip used local time, stored in MSDOS compatible
format (as specified by PKware for the Zip file format). This practice caused
a lot of "time synchronization" trouble when transporting Zip archives world
wide between largely different time zones.

Unfortunately, VMS (and the VMS C runtime environment) up to VMS 6.x does not
contain support for timezone handling and assumes "local time == UTC time".
This has changed with the release of VMS 7.0, which does (finally) support
the concept of "universal world time" that is required time synchronization
in intercontinental networks...

For this reason, the UTC time stamp support is disabled in VMS Zip by default,
otherwise users would experience annoying time stamp deviations when
locally transfering Zip archives between VMS nodes and other (UNIX, OS/2,
WinNT/Win95, MSDOS) systems.
But when compiled on a VMS 7.x system, the UTC "UX extra field" support is
automatically enabled.

For users located in the GMT time zone (or a nearby timezone, like CET),
it might be worthwhile to enable UTC support by hand.

The default configuration can be overridden by defining one of the
following preprocessor macro:

  USE_EF_UX_TIME        includes "UX" time stamp support
  NO_EF_UX_TIME         disables "UX" time stamp support

When using MMS/MMK, you should add the appropiate symbol to the "COMMON_DEFS"
list in vms/descrip.mms; if the command procedure is used for compiling,
you can add the macro to the "LOCAL_ZIP" DCL symbol.

04-MAR-1996 Christian Spieler
@


1.1.1.1
log
@Initial import of libgcj
@
text
@@


1.1.1.2
log
@Imported zip 2.3
@
text
@d19 2
a20 7
Up to Zip 2.1, the default configuration was to use the traditional IM style,
since it was well tested and known to be stable.
==> NEW <==
As of Zip 2.2, this default has been changed to use PK style extra field
format. This change is needed to support indexed VMS files. The
IM style code in UnZip (!!) has a known problem that prevents the correct
restoring operation for some (but not all) indexed VMS files.
d25 7
a31 4

If you want to use the old IM style support (to achieve compatibility
with older versions of UnZip), the preprocessor symbol VMS_IM_EXTRA
has to be defined at compile time.
d36 1
a36 1
COMMON_DEFS = VMS_IM_EXTRA,
d38 1
a38 1
if VMS_IM_EXTRA is the only option. (NOTE the trailing comma!)
d43 1
a43 1
$ LOCAL_ZIP == "VMS_IM_EXTRA,"
d49 4
a52 4
The source has been successfully compiled on VMS 6.1 (VMS 6.2 for AXP), using
 - DEC C 5.2 and 5.6 for Alpha AXP
 - DEC C 4.0 for VMS VAX
 - VAX C 3.2
d57 1
a57 1
the code is fully compatible with the "RELAXED_ANSI" mode of the DEC C
d59 2
a60 2
by incompatibles between the system include headers supplied for DEC C
(AXP) and DEC C (VAX) which cannot get worked around. (Some system
d68 1
a68 1
With the current release of DEC C on VAX, the /STANDARD=VAXC switch is
d70 2
a71 3
Beginning with the Zip 2.1 release, the compiler mode for Alpha AXP has
been changed to "/STANDARD=RELAX", since the "ANSI mode" executables are
slightly smaller.
d78 1
a78 1
"lseek()" at link step. (The same might be true for earlier releases of DEC C
d80 1
a80 1
of all DEC C RTL function by applying the "/PREFIX=ALL" switch.
d85 1
a85 1
C) Support for UT extra field UTC time stamps
d87 1
a87 1
Beginning with Zip 2.1 and UnZip 5.2, the Info-ZIP compression utilities
d90 1
a90 1
stored in an "extra field" labeled "UT" (Unix style GMT modification/access
d100 1
a100 1
the concept of "universal world time" that is required for time synchronization
d107 1
a107 1
But when compiled on a VMS 7.x system, the UTC "UT extra field" support is
d116 2
a117 2
  USE_EF_UT_TIME        includes "UT" time stamp support
  NO_EF_UT_TIME         disables "UT" time stamp support
d123 1
a123 1
14-Oct-1997 Christian Spieler
@


