home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1808 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  7.9 KB

  1. From: rhg@cpsolv.CPS.COM (Richard H. Gumpertz)
  2. Newsgroups: alt.sources,alt.sources.patches
  3. Subject: shar 3.43 patch 3 (to make version 3.47 from 3.46)
  4. Message-ID: <540@cpsolv.CPS.COM>
  5. Date: 10 Sep 90 22:15:26 GMT
  6.  
  7. Submitted-by: rhg@cpsolv.cps.com
  8. Archive-name: shar3.43/patch03
  9.  
  10. I apologize for the frequent patches, but here are a few more minor fixes to
  11. improve compilability of shar 3.4x on BSD systems:
  12.  
  13. *** /tmp/,RCSt1a11918    Mon Sep 10 17:07:53 1990
  14. --- shar.c    Mon Sep 10 17:05:27 1990
  15. ***************
  16. *** 1,5 ****
  17. ! char *revision = "3.46";
  18. ! char RCS_ID[] = "$Header: /u/rhg/src/shar/shar.c,v 3.46 90/09/09 18:51:11 rhg Exp $";
  19.   /*
  20.   ** shar.c
  21.   
  22. --- 1,5 ----
  23. ! char *revision = "3.47";
  24. ! char RCS_ID[] = "$Header: /u/rhg/src/shar/shar.c,v 3.47 90/09/10 16:59:48 rhg Exp $";
  25.   /*
  26.   ** shar.c
  27.   
  28. ***************
  29. *** 16,21 ****
  30. --- 16,22 ----
  31.   
  32.   */
  33.   /*+:EDITS:*/
  34. + /*:09-09-1990-20:12-rhg@cps.com-added CLOSEDIR_VOID */
  35.   /*:09-09-1990-18:42-rhg@cps.com-added check for "From" under OptPREFIX */
  36.   /*:09-09-1990-11:55-rhg@cps.com-modified code under NOT STR(N)CMP_IS_FAST */
  37.   /*:09-08-1990-21:20-rhg@cps.com-added NO_DIRENT for SunOS 3 sys/dir.h */
  38. ***************
  39. *** 602,608 ****
  40.   
  41.   DIR *opendir();
  42.   DIRENTRY *readdir();
  43. - int closedir();
  44.   
  45.   int
  46.   walkdown(rtn,file,filelen,rname)
  47. --- 603,608 ----
  48. ***************
  49. *** 650,660 ****
  50. --- 650,664 ----
  51.               file[filelen] = '\0';    /* in case we print any error messages */
  52.           }
  53.   
  54. + #ifdef CLOSEDIR_VOID
  55. +     closedir(dirp);
  56. + #else /* CLOSEDIR_VOID */
  57.       if(closedir(dirp))
  58.       {
  59.           fprintf(stderr,"shar: unable to close directory %s",file);
  60.           return(1);
  61.       }
  62. + #endif /* CLOSEDIR_VOID */
  63.   }
  64.   
  65.   int
  66. *** /tmp/,RCSt1a11921    Mon Sep 10 17:08:09 1990
  67. --- shar.1    Mon Sep 10 17:03:38 1990
  68. ***************
  69. *** 14,20 ****
  70.   \f2\-o\f1 option is given.  A wide range of features provide extensive
  71.   flexibility in manufacturing shars and in specifying shar "smartness."
  72.   Archives may be "vanilla" or comprehensive.
  73. ! This manual page reflects shar version 3.46.
  74.   .SS OPTIONS
  75.   .PP
  76.   Options can be given in any order. Some options depend on each other:
  77. --- 14,20 ----
  78.   \f2\-o\f1 option is given.  A wide range of features provide extensive
  79.   flexibility in manufacturing shars and in specifying shar "smartness."
  80.   Archives may be "vanilla" or comprehensive.
  81. ! This manual page reflects shar version 3.47.
  82.   .SS OPTIONS
  83.   .PP
  84.   Options can be given in any order. Some options depend on each other:
  85. *** /tmp/,RCSt1a11924    Mon Sep 10 17:08:19 1990
  86. --- unshar.c    Mon Sep 10 17:03:23 1990
  87. ***************
  88. *** 1,5 ****
  89. ! char *revision = "3.46";
  90. ! char RCS_ID[] = "$Header: /u/rhg/src/shar/unshar.c,v 3.46 90/09/09 19:19:10 rhg Exp $";
  91.   /****************************************************************
  92.    * unshar.c: Unpackage one or more shell archive files
  93.    *
  94. --- 1,5 ----
  95. ! char *revision = "3.47";
  96. ! char RCS_ID[] = "$Header: /u/rhg/src/shar/unshar.c,v 3.47 90/09/09 19:51:32 rhg Exp $";
  97.   /****************************************************************
  98.    * unshar.c: Unpackage one or more shell archive files
  99.    *
  100. ***************
  101. *** 36,42 ****
  102.    *        Created.
  103.    ****************************************************************/
  104.   /*+:EDITS:*/
  105. ! /*:08-04-1990-15:54-rhg@cps.com-changes listed above (-c/-C => -e/-E, new -c)
  106.   /*:05-05-1990-01:37-relay.EU.net!rivm!a3-dont assume vax is running BSD */
  107.   /*:04-19-1990-15:20-wht@n4hgf-fix so -d doesnt make argv files unreachable */
  108.   /*:04-19-1990-15:06-wht@n4hgf-colas@mirsa patches had expanded tabs */
  109. --- 36,42 ----
  110.    *        Created.
  111.    ****************************************************************/
  112.   /*+:EDITS:*/
  113. ! /*:08-04-1990-15:54-rhg@cps.com-changes listed above (-c/-C => -e/-E, new -c) */
  114.   /*:05-05-1990-01:37-relay.EU.net!rivm!a3-dont assume vax is running BSD */
  115.   /*:04-19-1990-15:20-wht@n4hgf-fix so -d doesnt make argv files unreachable */
  116.   /*:04-19-1990-15:06-wht@n4hgf-colas@mirsa patches had expanded tabs */
  117. *** /tmp/,RCSt1a11927    Mon Sep 10 17:08:28 1990
  118. --- who@where.c    Mon Sep 10 17:05:42 1990
  119. ***************
  120. *** 1,4 ****
  121. ! /* $Header: /u/rhg/src/shar/who@where.c,v 3.43 90/08/13 07:51:00 rhg Exp $ */
  122.   
  123.   /*+-------------------------------------------------------------------------
  124.       who@where.c - find out who i am & where i am
  125. --- 1,4 ----
  126. ! /* $Header: /u/rhg/src/shar/who@where.c,v 3.47 90/09/09 19:53:44 rhg Exp $ */
  127.   
  128.   /*+-------------------------------------------------------------------------
  129.       who@where.c - find out who i am & where i am
  130. ***************
  131. *** 5,10 ****
  132. --- 5,11 ----
  133.       ...!gatech!kd4nc!n4hgf!wht (wht%n4hgf@gatech.edu)
  134.   --------------------------------------------------------------------------*/
  135.   /*+:EDITS:*/
  136. + /*:09-09-1990-19:49-rhg@cps.com-added explicit return statement to who_where */
  137.   /*:04-03-1990-19:55-wht@n4hgf-get rid of complicated who_am_i */
  138.   /*:04-01-1990-13:30-pat@rwing-use utsname.nodename instead of sysname */
  139.   /*:04-02-1990-12:12-wht@n4hgf-sigh... some pwd.h dont declare functions */
  140. ***************
  141. *** 97,103 ****
  142.           buf = ww;
  143.       strcpy(buf,who_am_i());
  144.       strcat(buf,"@");
  145. !     strcat(buf,where_am_i());
  146.   }    /* end of who_where */
  147.   
  148.   /* vi: set tabstop=4 shiftwidth=4: */
  149. --- 98,104 ----
  150.           buf = ww;
  151.       strcpy(buf,who_am_i());
  152.       strcat(buf,"@");
  153. !     return(strcat(buf,where_am_i()));
  154.   }    /* end of who_where */
  155.   
  156.   /* vi: set tabstop=4 shiftwidth=4: */
  157. *** /tmp/,RCSt1a11930    Mon Sep 10 17:08:36 1990
  158. --- Makefile    Mon Sep 10 17:05:23 1990
  159. ***************
  160. *** 1,8 ****
  161.   #  makefile for shar
  162.   #
  163. ! # $Header: /u/rhg/src/shar/Makefile,v 3.45 90/09/09 16:48:34 rhg Exp $
  164.   #
  165.   #+:EDITS:
  166.   #:09-09-1990-11:31-bill@netagw.com-add SHELL variable/-ldir for XENIX/UNIX 386
  167.   #:08-07-1990-21:25-rhg@cps.com-compress man pages if MANEXT ends with .Z
  168.   #:08-05-1990-23:50-rhg@cps.com-add post and compressed.
  169. --- 1,9 ----
  170.   #  makefile for shar
  171.   #
  172. ! # $Header: /u/rhg/src/shar/Makefile,v 3.47 90/09/10 16:59:43 rhg Exp $
  173.   #
  174.   #+:EDITS:
  175. + #:09-09-1990-20:12-rhg@cps.com-added CLOSEDIR_VOID
  176.   #:09-09-1990-11:31-bill@netagw.com-add SHELL variable/-ldir for XENIX/UNIX 386
  177.   #:08-07-1990-21:25-rhg@cps.com-compress man pages if MANEXT ends with .Z
  178.   #:08-05-1990-23:50-rhg@cps.com-add post and compressed.
  179. ***************
  180. *** 35,41 ****
  181.   # (note by RHG@CPS.COM: I don't know which systems listed below are like that.)
  182.   # Some systems, such as SCO XENIX/UNIX 386 use -ldir instead.
  183.   # Some systems, such as SunOS 3, use <sys/dir.h> instead of <dirent.h>.  For
  184. ! # these systems, add -DNO_DIRENT to CFLAGS.
  185.   
  186.   # For VAX, PYRAMID, SEQUENT, AT&T 3B1/7300
  187.   CFLAGS    = -O 
  188. --- 36,44 ----
  189.   # (note by RHG@CPS.COM: I don't know which systems listed below are like that.)
  190.   # Some systems, such as SCO XENIX/UNIX 386 use -ldir instead.
  191.   # Some systems, such as SunOS 3, use <sys/dir.h> instead of <dirent.h>.  For
  192. ! # these systems, add -DNO_DIRENT to CFLAGS.  Many of these same systems, such
  193. ! # as BSD, have a closedir that has no return value.  For these systems, add
  194. ! # both -DNO_DIRENT and -DCLOSEDIR_VOID to CFLAGS.
  195.   
  196.   # For VAX, PYRAMID, SEQUENT, AT&T 3B1/7300
  197.   CFLAGS    = -O 
  198. ***************
  199. *** 43,54 ****
  200.   LIBS    = -ldirent
  201.   
  202.   # For SUN
  203. ! #CFLAGS    = -O     # add -DNO_DIRENT for SunOS 3.
  204.   #LDFLAGS    =
  205.   #LIBS    =
  206.   
  207.   # For SCO XENIX/UNIX 386
  208. ! #CFLAGS    = -O 
  209.   #LDFLAGS    =
  210.   #LIBS    = -ldir
  211.   
  212. --- 46,57 ----
  213.   LIBS    = -ldirent
  214.   
  215.   # For SUN
  216. ! #CFLAGS    = -O -DNO_DIRENT -DCLOSEDIR_VOID
  217.   #LDFLAGS    =
  218.   #LIBS    =
  219.   
  220.   # For SCO XENIX/UNIX 386
  221. ! #CFLAGS    = -O -DNO_DIRENT -DCLOSEDIR_VOID
  222.   #LDFLAGS    =
  223.   #LIBS    = -ldir
  224.   
  225. ***************
  226. *** 63,69 ****
  227.   #LIBS    = -ldirent
  228.   
  229.   # For other BSD-like systems
  230. ! #CFLAGS    = -O -DBSD42
  231.   #LDFLAGS    =
  232.   #LIBS    =
  233.   
  234. --- 66,72 ----
  235.   #LIBS    = -ldirent
  236.   
  237.   # For other BSD-like systems
  238. ! #CFLAGS    = -O -DBSD42 -DNO_DIRENT -DCLOSEDIR_VOID
  239.   #LDFLAGS    =
  240.   #LIBS    =
  241.   
  242. -- 
  243.   ==========================================================================
  244.   | Richard H. Gumpertz    rhg@CPS.COM    (913) 642-1777 or (816) 891-3561 |
  245.   | Computer Problem Solving, 8905 Mohawk Lane, Leawood, Kansas 66206-1749 |
  246.   ==========================================================================
  247.