home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip531.zip / aosvs / README < prev   
INI File  |  1996-04-26  |  7KB  |  146 lines

  1. [e-mail excerpt from Dave Lovelace explaining AOS/VS port, compiler, etc.]
  2.  
  3. > From: Dave Lovelace <davel@cyberspace.org>
  4. > Subject: Re: zip on Data General AOS/VS
  5. > Date: Wed, 17 May 1995 11:02:03 -0400 (EDT)
  6. > The diffs for zip & unzip are both in the same file.  I've also included the
  7. > extra source files which I wrote, the CLI macros which I used to compile
  8. > & link the things, & my own history of what I did.  Note that some of the
  9. > changes I made reversed earlier changes, & this was written for my own
  10. > use (or for others here if I leave or die or something).  I hope it will help.
  11. > This was compiled using DG's C compiler for AOS/VS, rev 4.10.  It has been
  12. > compiled only on an MV-5500 running AOS/VS rev 7.70, but the resulting
  13. > programs have been distributed & run on several different MVs running various
  14. > versions of AOS/VS, so it should be fairly independent of at least minor rev
  15. > variations.  To the best of my knowledge it has *not* been tested under
  16. > AOS/VS II, & I really don't know anything about that environment; possibly
  17. > the special AOS/VS file info I'm storing in the extra field will have some
  18. > different format there.
  19.  
  20.  
  21.  
  22. [README/history info from Dave Lovelace]
  23.  
  24. In modifying this for use on AOS/VS, I found only a few changes
  25. were needed for DG C 4.10:
  26.  
  27. 2. There was a bug in the inflate() code, because memset()
  28.    was being called with a non-char pointer.  Pretty obviously
  29.    the other systems where this was used do not have char pointers
  30.    different from other pointers.  IT IS QUITE POSSIBLE THAT OTHER
  31.    BUGS OF THIS SORT EXIST.  Testing did not uncover any.
  32. 3. In fileio.c, it appears that utime() is being called correctly,
  33.    but it does not set the file's time and always returns failure.
  34.    Since the AOS/VS tar and cpio programs provided by DG also suffer
  35.    from the fault of not setting file times, I must conclude that
  36.    this is by design.  At any rate, I modified the code (with
  37.    compilation conditional on a macro AOS_VS) to not say "error"
  38.    when this occurs.
  39.  
  40. One change which I think would be desirable: if the filename isn't
  41. already a relative or absolute pathname (specifying a unique location),
  42. the program follows the searchlist under AOS/VS.  It will unexpectedly
  43. replace files anywhere in your searchlist.  (If you don't use the
  44. -o option, it will ask you first, but not tell you where the file
  45. to be replaced resides.)  I suspect this could be handled by prepending
  46. ./ to any filenames which don't already begin with /.  (I haven't
  47. checked how this would work inside the program.  Possibly this
  48. could be done in every case - I don't think PKZIP ever stores an
  49. absolute pathname.)
  50.  
  51. To see the compile options I used, look at the file MAKE.AOS_VS.CLI
  52. You may of course need to change the searchlist to use that macro.
  53.  
  54.  ------------------------------------------------------------------
  55. 15-dec-93
  56. I fixed some of the above things, introducing new problems.  It now
  57. won't follow the searchlist - but the logic prevents it from creating
  58. directories (if they aren't explicitly in the ZIP, anyway).  But
  59. UNZIP now sets the creation time to the time stored in the ZIP, and
  60. ZIP now stores that instead of the TLM.  I had to introduce an
  61. extra module, with some code of my own and some other public domain
  62. code, to accomplish this.
  63.  
  64.  ------------------------------------------------------------------
  65.  1-jun-94
  66. I found an additional bug: the header was causing void to be #define'd
  67. as int, and prototypes weren't being used.  I changed UNZIP.H and
  68. added a define of PROTO to the MAKE.AOS_VS.CLI and REMAKE.CLI macros.
  69.  
  70. I found and fixed the bug that prevented the (creation) times from
  71. being set on files with explicit paths.  (The Unix-style paths didn't
  72. work as inputs to the AOS/VS ?CREATE system call.)  
  73.  
  74. Additional known bugs:
  75.  
  76. 1. I have not yet located the source of the bug that prevents the
  77.    date/time from being set (also ACLs etc.) when an existing file
  78.    is overwritten.  For some reason the call to delete & recreate
  79.    the file is not being reached.
  80.  
  81. 2. We need to do something in ZIP to store (as comments?) the file's
  82.    type and ACL, and then here in UNZIP extract these and apply
  83.    them.  This is not going to be trivial to make foolproof, but
  84.    it's badly needed.
  85.  
  86.  ------------------------------------------------------------------
  87.  2-jun-94
  88. I fixed #1 above.  The compiler was checking whether UNIX was defined,
  89. and it wasn't.  It appears that *some* of the places UNIX is used are
  90. things we can't get along with, so I changed the code to check for
  91. AOS_VS as well.  It seems to work just fine.
  92.  
  93. I also introduced a function zvs_credir() to create a directory
  94. (as opposed to a CPD, though it can create CPDs to with the proper
  95. file-type parameter).  Directories in a path which are being created
  96. will now be directories instead of CPDs.
  97.  
  98. The big change that's needed now is to have ZIP store (somehow)
  99. the file's ACL and file type, and then to have UNZIP use this
  100. information to recreate the file as it was before ZIPping.  Ideally,
  101. ZIP should also store links and CPD max-block info as well.  Planned
  102. strategy: either in the name field but after the name, or in a comment,
  103. store the packet returned by ?FSTAT (using sys_fstat()), and then
  104. use this packet for the ?CREATE call in zvs_create().
  105.  
  106.  ------------------------------------------------------------------
  107. 22-Jul-94
  108. The changes to use the extra-field field for AOS/VS file info are in
  109. place.  In general, if a ZIPfile was created with the current rev of
  110. ZIP.PR, the files should be restored with file type, ACL, etc. OK.
  111. I didn't test to make sure element size & max index levels come
  112. through OK, but I think they should.
  113.  
  114. Unix symbolic links are now UNZIPped OK, but ZIP.PR isn't yet able
  115. to ZIP links.  When it is, UNZIP should be ready.
  116.  
  117. In general UNZIP now ignores the searchlist fairly well, but not
  118. perfectly.  If the directory of a file you're UNZIPping can be
  119. referenced elsewhere in the searchlist, UNZIP will find the file
  120. there.  (For example, if the file UDD/BBASIC/ZZPGSUBSET.SR is in
  121. the ZIPfile, and : is in your searchlist, then UDD and UDD:BBASIC
  122. will be created under your current directory, but UNZIP will still
  123. find :UDD:BBASIC:ZZPGSUBSET.SR instead of =UDD:BBASIC:ZZPGSUBSET.SR.
  124.  
  125. Filenames (which are now stored in uppercase by ZIP.PR) must be
  126. matched exactly if specified.  This applies to Unix path structure
  127. as well as case.
  128.  
  129.  ------------------------------------------------------------------
  130.  4-Aug-94
  131. I fixed a bug which caused (for links only) the Unix pathname to
  132. be put through ux_to_vs_name twice.  The result was that a path
  133. such as    dir1/dir2/fname    went first to    :dir1:dir2:fname    and
  134. then to    dir1?dir2?fname.
  135.  
  136. I also added the /NOSEA switch to the cc/link lines in the macros
  137. MAKE.AOS_VS.CLI and REMAKE.CLI.  This should prevent any confusion
  138. over whether a file exists somewhere other than relative to the current
  139. dir.  This would disable calls to system() from using the searchlist,
  140. but in this program I think they're all useless & hopefully inactive
  141. anyway.
  142.  
  143.  ------------------------------------------------------------------
  144.