annotate src/zlib-1.2.7/as400/readme.txt @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 8a15ff55d9af
children
rev   line source
cannam@89 1 ZLIB version 1.2.7 for AS400 installation instructions
cannam@89 2
cannam@89 3 I) From an AS400 *SAVF file:
cannam@89 4
cannam@89 5 1) Unpacking archive to an AS400 save file
cannam@89 6
cannam@89 7 On the AS400:
cannam@89 8
cannam@89 9 _ Create the ZLIB AS400 library:
cannam@89 10
cannam@89 11 CRTLIB LIB(ZLIB) TYPE(*PROD) TEXT('ZLIB compression API library')
cannam@89 12
cannam@89 13 _ Create a work save file, for example:
cannam@89 14
cannam@89 15 CRTSAVF FILE(ZLIB/ZLIBSAVF)
cannam@89 16
cannam@89 17 On a PC connected to the target AS400:
cannam@89 18
cannam@89 19 _ Unpack the save file image to a PC file "ZLIBSAVF"
cannam@89 20 _ Upload this file into the save file on the AS400, for example
cannam@89 21 using ftp in BINARY mode.
cannam@89 22
cannam@89 23
cannam@89 24 2) Populating the ZLIB AS400 source library
cannam@89 25
cannam@89 26 On the AS400:
cannam@89 27
cannam@89 28 _ Extract the saved objects into the ZLIB AS400 library using:
cannam@89 29
cannam@89 30 RSTOBJ OBJ(*ALL) SAVLIB(ZLIB) DEV(*SAVF) SAVF(ZLIB/ZLIBSAVF) RSTLIB(ZLIB)
cannam@89 31
cannam@89 32
cannam@89 33 3) Customize installation:
cannam@89 34
cannam@89 35 _ Edit CL member ZLIB/TOOLS(COMPILE) and change parameters if needed,
cannam@89 36 according to the comments.
cannam@89 37
cannam@89 38 _ Compile this member with:
cannam@89 39
cannam@89 40 CRTCLPGM PGM(ZLIB/COMPILE) SRCFILE(ZLIB/TOOLS) SRCMBR(COMPILE)
cannam@89 41
cannam@89 42
cannam@89 43 4) Compile and generate the service program:
cannam@89 44
cannam@89 45 _ This can now be done by executing:
cannam@89 46
cannam@89 47 CALL PGM(ZLIB/COMPILE)
cannam@89 48
cannam@89 49
cannam@89 50
cannam@89 51 II) From the original source distribution:
cannam@89 52
cannam@89 53 1) On the AS400, create the source library:
cannam@89 54
cannam@89 55 CRTLIB LIB(ZLIB) TYPE(*PROD) TEXT('ZLIB compression API library')
cannam@89 56
cannam@89 57 2) Create the source files:
cannam@89 58
cannam@89 59 CRTSRCPF FILE(ZLIB/SOURCES) RCDLEN(112) TEXT('ZLIB library modules')
cannam@89 60 CRTSRCPF FILE(ZLIB/H) RCDLEN(112) TEXT('ZLIB library includes')
cannam@89 61 CRTSRCPF FILE(ZLIB/TOOLS) RCDLEN(112) TEXT('ZLIB library control utilities')
cannam@89 62
cannam@89 63 3) From the machine hosting the distribution files, upload them (with
cannam@89 64 FTP in text mode, for example) according to the following table:
cannam@89 65
cannam@89 66 Original AS400 AS400 AS400 AS400
cannam@89 67 file file member type description
cannam@89 68 SOURCES Original ZLIB C subprogram sources
cannam@89 69 adler32.c ADLER32 C ZLIB - Compute the Adler-32 checksum of a dta strm
cannam@89 70 compress.c COMPRESS C ZLIB - Compress a memory buffer
cannam@89 71 crc32.c CRC32 C ZLIB - Compute the CRC-32 of a data stream
cannam@89 72 deflate.c DEFLATE C ZLIB - Compress data using the deflation algorithm
cannam@89 73 gzclose.c GZCLOSE C ZLIB - Close .gz files
cannam@89 74 gzlib.c GZLIB C ZLIB - Miscellaneous .gz files IO support
cannam@89 75 gzread.c GZREAD C ZLIB - Read .gz files
cannam@89 76 gzwrite.c GZWRITE C ZLIB - Write .gz files
cannam@89 77 infback.c INFBACK C ZLIB - Inflate using a callback interface
cannam@89 78 inffast.c INFFAST C ZLIB - Fast proc. literals & length/distance pairs
cannam@89 79 inflate.c INFLATE C ZLIB - Interface to inflate modules
cannam@89 80 inftrees.c INFTREES C ZLIB - Generate Huffman trees for efficient decode
cannam@89 81 trees.c TREES C ZLIB - Output deflated data using Huffman coding
cannam@89 82 uncompr.c UNCOMPR C ZLIB - Decompress a memory buffer
cannam@89 83 zutil.c ZUTIL C ZLIB - Target dependent utility functions
cannam@89 84 H Original ZLIB C and ILE/RPG include files
cannam@89 85 crc32.h CRC32 C ZLIB - CRC32 tables
cannam@89 86 deflate.h DEFLATE C ZLIB - Internal compression state
cannam@89 87 gzguts.h GZGUTS C ZLIB - Definitions for the gzclose module
cannam@89 88 inffast.h INFFAST C ZLIB - Header to use inffast.c
cannam@89 89 inffixed.h INFFIXED C ZLIB - Table for decoding fixed codes
cannam@89 90 inflate.h INFLATE C ZLIB - Internal inflate state definitions
cannam@89 91 inftrees.h INFTREES C ZLIB - Header to use inftrees.c
cannam@89 92 trees.h TREES C ZLIB - Created automatically with -DGEN_TREES_H
cannam@89 93 zconf.h ZCONF C ZLIB - Compression library configuration
cannam@89 94 zlib.h ZLIB C ZLIB - Compression library C user interface
cannam@89 95 as400/zlib.inc ZLIB.INC RPGLE ZLIB - Compression library ILE RPG user interface
cannam@89 96 zutil.h ZUTIL C ZLIB - Internal interface and configuration
cannam@89 97 TOOLS Building source software & AS/400 README
cannam@89 98 as400/bndsrc BNDSRC Entry point exportation list
cannam@89 99 as400/compile.clp COMPILE CLP Compile sources & generate service program
cannam@89 100 as400/readme.txt README TXT Installation instructions
cannam@89 101
cannam@89 102 4) Continue as in I)3).
cannam@89 103
cannam@89 104
cannam@89 105
cannam@89 106
cannam@89 107 Notes: For AS400 ILE RPG programmers, a /copy member defining the ZLIB
cannam@89 108 API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC).
cannam@89 109 Please read comments in this member for more information.
cannam@89 110
cannam@89 111 Remember that most foreign textual data are ASCII coded: this
cannam@89 112 implementation does not handle conversion from/to ASCII, so
cannam@89 113 text data code conversions must be done explicitely.
cannam@89 114
cannam@89 115 Mainly for the reason above, always open zipped files in binary mode.