readme.txt 4.9 KB

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