home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume7 / patch2 / patch12 < prev    next >
Text File  |  1990-09-18  |  8KB  |  282 lines

  1. System: patch version 2.0
  2. Patch #: 12
  3. Priority: LOW
  4. Subject: some faulty declarations
  5.  
  6. Description:
  7.     Certain systems were producing compilation errors and warnings due
  8.     to some faulty declarations.
  9.  
  10. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your patch source
  11.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  12.  
  13.     After patching:
  14.         Configure -d
  15.         make
  16.         make install
  17.  
  18.     If patch indicates that patchlevel is the wrong version, you may need
  19.     to apply one or more previous patches, or the patch may already
  20.     have been applied.  See the patchlevel.h file to find out what has or
  21.     has not been applied.  In any event, don't continue with the patch.
  22.  
  23.     If you are missing previous patches they can be obtained from me:
  24.  
  25.     Larry Wall
  26.     lwall@jpl-devvax.jpl.nasa.gov
  27.  
  28.     If you send a mail message of the following form it will greatly speed
  29.     processing:
  30.  
  31.     Subject: Command
  32.     @SH mailpatch PATH patch 2.0 LIST
  33.            ^ note the c
  34.  
  35.     where PATH is a return path FROM ME TO YOU in Internet notation, and
  36.     LIST is the number of one or more patches you need, separated by spaces,
  37.     commas, and/or hyphens.  Saying 35- says everything from 35 to the end.
  38.  
  39.     You can also get the patches via anonymous FTP from
  40.     jpl-devvax.jpl.nasa.gov (128.149.8.43).
  41.  
  42. Index: patchlevel.h
  43. Prereq: 11
  44. 1c1
  45. < #define PATCHLEVEL 11
  46. ---
  47. > #define PATCHLEVEL 12
  48.  
  49. Index: MANIFEST
  50. 12a13
  51. > config.h.SH              3 Produces config.h.
  52.  
  53. Index: Makefile.SH
  54. Prereq: 2.0.1.1
  55. *** Makefile.SH.old    Wed Jun 22 21:18:32 1988
  56. --- Makefile.SH    Wed Jun 22 21:18:32 1988
  57. ***************
  58. *** 3,11 ****
  59.   esac
  60.   echo "Extracting Makefile (with variable substitutions)"
  61.   cat >Makefile <<!GROK!THIS!
  62. ! # $Header: Makefile.SH,v 2.0.1.1 88/06/03 15:00:48 lwall Locked $
  63.   #
  64.   # $Log:    Makefile.SH,v $
  65.   # Revision 2.0.1.1  88/06/03  15:00:48  lwall
  66.   # patch10: upgraded to match some new metaconfig stuff
  67.   # 
  68. --- 3,14 ----
  69.   esac
  70.   echo "Extracting Makefile (with variable substitutions)"
  71.   cat >Makefile <<!GROK!THIS!
  72. ! # $Header: Makefile.SH,v 2.0.1.2 88/06/22 20:43:40 lwall Locked $
  73.   #
  74.   # $Log:    Makefile.SH,v $
  75. + # Revision 2.0.1.2  88/06/22  20:43:40  lwall
  76. + # patch12: config.h now depends on config.h.SH
  77. + # 
  78.   # Revision 2.0.1.1  88/06/03  15:00:48  lwall
  79.   # patch10: upgraded to match some new metaconfig stuff
  80.   # 
  81. ***************
  82. *** 55,60 ****
  83. --- 58,66 ----
  84.   
  85.   patch: $(obj)
  86.       $(CC) $(LDFLAGS) $(obj) $(libs) -o patch
  87. + config.h: config.h.SH
  88. +     sh config.h.SH
  89.   
  90.   # won't work with csh
  91.   install: patch
  92.  
  93. Index: README
  94. *** README.old    Wed Jun 22 21:18:35 1988
  95. --- README    Wed Jun 22 21:18:36 1988
  96. ***************
  97. *** 1,6 ****
  98.               Patch Kit, Version 2.0
  99.   
  100. !             Copyright (c) 1986, Larry Wall
  101.   
  102.   You may copy the patch kit in whole or in part as long as you don't try to
  103.   make money off it, or pretend that you wrote it.
  104. --- 1,6 ----
  105.               Patch Kit, Version 2.0
  106.   
  107. !             Copyright (c) 1988, Larry Wall
  108.   
  109.   You may copy the patch kit in whole or in part as long as you don't try to
  110.   make money off it, or pretend that you wrote it.
  111. ***************
  112. *** 46,54 ****
  113.   5)  Read the manual entry before running patch.
  114.   
  115.   6)  IMPORTANT!  Help save the world!  Communicate any problems and
  116. !     suggested patches to me, lwall@sdcrdcf.UUCP (Larry Wall), so we can
  117. !     keep the world in sync.  If you have a problem, there's someone else
  118. !     out there who either has had or will have the same problem.
  119.   
  120.       If possible, send in patches such that the patch program will apply them.
  121.       Context diffs are the best, then normal diffs.  Don't send ed scripts--
  122. --- 46,54 ----
  123.   5)  Read the manual entry before running patch.
  124.   
  125.   6)  IMPORTANT!  Help save the world!  Communicate any problems and
  126. !     suggested patches to me, lwall@jpl-devvax.Jpl.Nasa.Gov (Larry Wall),
  127. !     so we can keep the world in sync.  If you have a problem, there's
  128. !     someone else out there who either has had or will have the same problem.
  129.   
  130.       If possible, send in patches such that the patch program will apply them.
  131.       Context diffs are the best, then normal diffs.  Don't send ed scripts--
  132.  
  133. Index: common.h
  134. Prereq: 2.0.1.1
  135. *** common.h.old    Wed Jun 22 21:18:39 1988
  136. --- common.h    Wed Jun 22 21:18:40 1988
  137. ***************
  138. *** 1,6 ****
  139. ! /* $Header: common.h,v 2.0.1.1 88/06/03 15:01:56 lwall Exp $
  140.    *
  141.    * $Log:    common.h,v $
  142.    * Revision 2.0.1.1  88/06/03  15:01:56  lwall
  143.    * patch10: support for shorter extensions.
  144.    * 
  145. --- 1,9 ----
  146. ! /* $Header: common.h,v 2.0.1.2 88/06/22 20:44:53 lwall Locked $
  147.    *
  148.    * $Log:    common.h,v $
  149. +  * Revision 2.0.1.2  88/06/22  20:44:53  lwall
  150. +  * patch12: sprintf was declared wrong
  151. +  * 
  152.    * Revision 2.0.1.1  88/06/03  15:01:56  lwall
  153.    * patch10: support for shorter extensions.
  154.    * 
  155. ***************
  156. *** 151,155 ****
  157.   #ifdef CHARSPRINTF
  158.   char *sprintf();
  159.   #else
  160. ! int *sprintf();
  161.   #endif
  162. --- 154,158 ----
  163.   #ifdef CHARSPRINTF
  164.   char *sprintf();
  165.   #else
  166. ! int sprintf();
  167.   #endif
  168.  
  169. Index: patch.c
  170. Prereq: 2.0.1.5
  171. *** patch.c.old    Wed Jun 22 21:18:46 1988
  172. --- patch.c    Wed Jun 22 21:18:49 1988
  173. ***************
  174. *** 1,5 ****
  175.   char rcsid[] =
  176. !     "$Header: patch.c,v 2.0.1.5 88/06/03 15:09:37 lwall Locked $";
  177.   
  178.   /* patch - a program to apply diffs to original files
  179.    *
  180. --- 1,5 ----
  181.   char rcsid[] =
  182. !     "$Header: patch.c,v 2.0.1.6 88/06/22 20:46:39 lwall Locked $";
  183.   
  184.   /* patch - a program to apply diffs to original files
  185.    *
  186. ***************
  187. *** 9,14 ****
  188. --- 9,17 ----
  189.    * money off of it, or pretend that you wrote it.
  190.    *
  191.    * $Log:    patch.c,v $
  192. +  * Revision 2.0.1.6  88/06/22  20:46:39  lwall
  193. +  * patch12: rindex() wasn't declared
  194. +  * 
  195.    * Revision 2.0.1.5  88/06/03  15:09:37  lwall
  196.    * patch10: exit code improved.
  197.    * patch10: better support for non-flexfilenames.
  198. ***************
  199. *** 288,293 ****
  200. --- 291,297 ----
  201.           Strcpy(rejname, outname);
  202.   #ifndef FLEXFILENAMES
  203.           {
  204. +             char *rindex();
  205.               char *s = rindex(rejname,'/');
  206.   
  207.               if (!s)
  208.  
  209. Index: patch.man
  210. Prereq: 2.0.1.1
  211. *** patch.man.old    Wed Jun 22 21:18:56 1988
  212. --- patch.man    Wed Jun 22 21:18:57 1988
  213. ***************
  214. *** 1,7 ****
  215.   .rn '' }`
  216. ! ''' $Header: patch.man,v 2.0.1.1 88/06/03 15:12:51 lwall Locked $
  217.   ''' 
  218.   ''' $Log:    patch.man,v $
  219.   ''' Revision 2.0.1.1  88/06/03  15:12:51  lwall
  220.   ''' patch10: -B switch was contributed.
  221.   ''' 
  222. --- 1,10 ----
  223.   .rn '' }`
  224. ! ''' $Header: patch.man,v 2.0.1.2 88/06/22 20:47:18 lwall Locked $
  225.   ''' 
  226.   ''' $Log:    patch.man,v $
  227. + ''' Revision 2.0.1.2  88/06/22  20:47:18  lwall
  228. + ''' patch12: now avoids Bell System Logo
  229. + ''' 
  230.   ''' Revision 2.0.1.1  88/06/03  15:12:51  lwall
  231.   ''' patch10: -B switch was contributed.
  232.   ''' 
  233. ***************
  234. *** 47,56 ****
  235.   '''     Bell System Logo is used as a dummy character.
  236.   '''
  237.   .ie n \{\
  238. ! .tr \(bs-\*(Tr
  239. ! .ds -- \(bs-
  240. ! .if (\n(.H=4u)&(1m=24u) .ds -- \(bs\h'-12u'\(bs\h'-12u'-\" diablo 10 pitch
  241. ! .if (\n(.H=4u)&(1m=20u) .ds -- \(bs\h'-12u'\(bs\h'-8u'-\" diablo 12 pitch
  242.   .ds L" ""
  243.   .ds R" ""
  244.   .ds L' '
  245. --- 50,59 ----
  246.   '''     Bell System Logo is used as a dummy character.
  247.   '''
  248.   .ie n \{\
  249. ! .tr \(*W-\*(Tr
  250. ! .ds -- \(*W-
  251. ! .if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  252. ! .if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  253.   .ds L" ""
  254.   .ds R" ""
  255.   .ds L' '
  256.  
  257. Index: util.c
  258. *** util.c.old    Wed Jun 22 21:19:01 1988
  259. --- util.c    Wed Jun 22 21:19:03 1988
  260. ***************
  261. *** 242,251 ****
  262. --- 242,259 ----
  263.       if (!reset) {
  264.       hupval = signal(SIGHUP, SIG_IGN);
  265.       if (hupval != SIG_IGN)
  266. + #ifdef VOIDSIG
  267.           hupval = my_exit;
  268. + #else
  269. +         hupval = (int(*)())my_exit;
  270. + #endif
  271.       intval = signal(SIGINT, SIG_IGN);
  272.       if (intval != SIG_IGN)
  273. + #ifdef VOIDSIG
  274.           intval = my_exit;
  275. + #else
  276. +         intval = (int(*)())my_exit;
  277. + #endif
  278.       }
  279.       Signal(SIGHUP, hupval);
  280.       Signal(SIGINT, intval);
  281.