v17i038: com_err - MIT SIPB Common Error Description Library, Patch04

Jonathan I. Kamens jik at Athena.MIT.EDU
Tue Mar 12 13:52:30 AEST 1991


Submitted-by: Jonathan I. Kamens <jik at Athena.MIT.EDU>
Posting-number: Volume 17, Issue 38
Archive-name: com_err/patch04
Patch-To: com_err: Volume 17, Issue 27-29

  This patch brings the "com_err" package from patchlevel 3 to
patchlevel 4.  Use "patch" in your com_err source directory to apply
it.  However, before applying it, you should rename files in your
source directory as follows:

	Original Filename	New Filename
	----------------------- ---------------------
	com_err.texinfo.Z.uu	c_e.texinfo.Zu
	error_message.c		error_msg.c
	mit-sipb-copyright.h	sipb-copying.h
	texinfo.tex.Z.uu	texinfo.tex.Zu

This change is to accomodate systems that are restricted to
14-character filenames.

  This patch accomplishes the following:

1. I think I've finally got all of the RCS headers in sync, so after
   this patch, I shouldn't have to send out any more patches that
   change the RCS strings in files without changing anything else.

2. I've prevented the Makefile from building profiled libraries.

3. I've added rules to the Makefile to unpack the files that are
   distributed packed.

4. I've added BETA-TESTERS and ARCHIVE SITE sections to the README
   file (please read them).

5. I've made the SysV support a bit more consistent.

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710
--------------------------

*** /tmp/delete/com_err/Makefile	Mon Mar 11 20:22:36 1991
--- Makefile	Mon Mar 11 20:26:32 1991
***************
*** 2,10 ****
  # Makefile for error-table routines
  #
  # Copyright 1987, 1989, 1991 MIT Student Information Processing Board
! # For copyright info, see mit-sipb-copyright.h.
  #
! #	$Header: /afs/athena.mit.edu/user/j/jik/delete/src/et/RCS/Makefile,v 1.10 91/02/22 07:50:07 jik Exp $
  #	$Locker:  $
  #
  
--- 2,10 ----
  # Makefile for error-table routines
  #
  # Copyright 1987, 1989, 1991 MIT Student Information Processing Board
! # For copyright info, see sipb-copying.h.
  #
! #	$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/Makefile,v 1.11 91/02/28 18:45:34 jik Exp $
  #	$Locker:  $
  #
  
***************
*** 13,20 ****
  DEFINES= 
  CFLAGS=		-O $(DEFINES)
  LINTFLAGS= 	-uhvpb
! LINTFILES= 	error_message.c et_name.c init_et.c com_err.c
! LIBOBJS= 	error_message.o et_name.o init_et.o com_err.o
  
  BINDIR=		/usr/bin
  INCDIR=		/usr/include
--- 13,20 ----
  DEFINES= 
  CFLAGS=		-O $(DEFINES)
  LINTFLAGS= 	-uhvpb
! LINTFILES= 	error_msg.c et_name.c init_et.c com_err.c
! LIBOBJS= 	error_msg.o et_name.o init_et.o com_err.o
  
  BINDIR=		/usr/bin
  INCDIR=		/usr/include
***************
*** 22,37 ****
  DOCDIR=		/usr/doc
  DESTDIR=
  
! CFILES=		com_err.c compile_et.c error_message.c et_name.c\
  		init_et.c strcasecmp.c test.c
  HFILES=		com_err.h compiler.h error_table.h internal.h\
! 		mit-sipb-copyright.h 
  MANS=		com_err.3 compile_et.1
  YACCS=		error_table.y
  LEXS=		et_lex.lex.l
  ETS=		test1.et test2.et
  FILES=		Makefile PATCHLEVEL README\
! 		com_err.texinfo.Z.uu texinfo.tex.Z.uu\
  		$(CFILES) $(HFILES) $(MANS) $(YACCS) $(LEXS) $(ETS)
  
  
--- 22,37 ----
  DOCDIR=		/usr/doc
  DESTDIR=
  
! CFILES=		com_err.c compile_et.c error_msg.c et_name.c\
  		init_et.c strcasecmp.c test.c
  HFILES=		com_err.h compiler.h error_table.h internal.h\
! 		sipb-copying.h 
  MANS=		com_err.3 compile_et.1
  YACCS=		error_table.y
  LEXS=		et_lex.lex.l
  ETS=		test1.et test2.et
  FILES=		Makefile PATCHLEVEL README\
! 		c_e.texinfo.Zu texinfo.tex.Zu\
  		$(CFILES) $(HFILES) $(MANS) $(YACCS) $(LEXS) $(ETS)
  
  
***************
*** 76,82 ****
  tags:	TAGS
  
  com_err.ps : com_err.dvi
! com_err.dvi: com_err.texinfo
  
  error_table.o: et_lex.lex.c
  
--- 76,82 ----
  tags:	TAGS
  
  com_err.ps : com_err.dvi
! com_err.dvi: comerr.texinfo
  
  error_table.o: et_lex.lex.c
  
***************
*** 83,99 ****
  install: all
  	install -c -s compile_et ${DESTDIR}${BINDIR}/compile_et
  	install -c -m 444 com_err.h ${DESTDIR}${INCDIR}/com_err.h
! 	install -c -m 444 mit-sipb-copyright.h \
! 				${DESTDIR}${INCDIR}/mit-sipb-copyright.h
  	install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
  	${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err.a
! 	install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
  	install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
  	install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
  
! TAGS:	et_name.c error_message.c compile_et.c error_table.c \
  		lex.yy.c perror.c init_et.c
! 	etags et_name.c error_message.c compile_et.c \
  		error_table.c perror.c init_et.c
  
  libcom_err.a:	$(LIBOBJS)
--- 83,99 ----
  install: all
  	install -c -s compile_et ${DESTDIR}${BINDIR}/compile_et
  	install -c -m 444 com_err.h ${DESTDIR}${INCDIR}/com_err.h
! 	install -c -m 444 sipb-copying.h \
! 				${DESTDIR}${INCDIR}/sipb-copying.h
  	install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
  	${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err.a
! 	install -c comerr.texinfo ${DESTDIR}${DOCDIR}/comerr.texinfo
  	install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
  	install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
  
! TAGS:	et_name.c error_msg.c compile_et.c error_table.c \
  		lex.yy.c perror.c init_et.c
! 	etags et_name.c error_msg.c compile_et.c \
  		error_table.c perror.c init_et.c
  
  libcom_err.a:	$(LIBOBJS)
***************
*** 128,133 ****
--- 128,145 ----
  
  tar: $(FILES)
  	tar cvf - $(FILES) | compress > com_err.tar.Z
+ 
+ comerr.texinfo: c_e.texinfo.Z
+ 	uncompress < c_e.texinfo.Z > comerr.texinfo
+ 
+ c_e.texinfo.Z: c_e.texinfo.Zu
+ 	uudecode c_e.texinfo.Zu
+ 
+ texinfo.tex: texinfo.tex.Z
+ 	uncompress texinfo.tex.Z
+ 
+ texinfo.tex.Z: texinfo.tex.Zu
+ 	uudecode texinfo.tex.Zu
  
  # for testing
  test:	test.o test1.o test2.o libcom_err.a
*** /tmp/delete/com_err/PATCHLEVEL	Mon Mar 11 20:22:37 1991
--- PATCHLEVEL	Mon Mar 11 20:26:33 1991
***************
*** /tmp/delete/com_err/1 ****
! 3
--- 1 ----
! 4
*** README	Mon Mar 11 20:37:36 1991
--- README	Mon Mar 11 20:36:53 1991
***************
*** 35,40 ****
--- 35,59 ----
  After that, you should be all set.
  
  
+ 		     I'M LOOKING FOR BETA-TESTERS
+ 
+ I try to make this package run on as many different platforms as
+ possible.  However, I do not have access to a large variety of
+ platforms, so I can't effectively test all of the changes I make.  I'm
+ therefore looking for people who are willing to beta-test changes
+ before I release them to the general public.  If you are interested in
+ doing this, please let me know.
+ 
+ 
+ 			     ARCHIVE SITE
+ 
+ The most recent version of the com_err package and patches to get from
+ previous versions to the most recent version are archived on
+ pit-manager.mit.edu (18.72.1.58).  You can retrieve them via anonymous
+ ftp in the directory /pub/com_err, or via mail-server (send a message
+ with the subject "help" to "mail-server at pit-manager.mit.edu").
+ 
+ 
  			      QUESTIONS?
  
    I didn't write com_err, but I'm willing to answer questions and/or
***************
*** 41,47 ****
  direct them to someone who can.  See my signature to find out how to
  contact me.
  
!   See the file mit-sipb-copyright.h for copyright and distribution
  information.
  
  Jonathan Kamens			              USnail:
--- 60,66 ----
  direct them to someone who can.  See my signature to find out how to
  contact me.
  
!   See the file sipb-copying.h for copyright and distribution
  information.
  
  Jonathan Kamens			              USnail:
*** /tmp/delete/com_err/com_err.3	Mon Mar 11 20:22:40 1991
--- com_err.3	Mon Mar 11 20:26:34 1991
***************
*** /tmp/delete/com_err/1,7 ****
  .\" Copyright (c) 1988 Massachusetts Institute of Technology,
  .\" Student Information Processing Board.  All rights reserved.
  .\"
! .\" $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/com_err.3,v 1.1 89/11/07 19:05:23 jik Exp $
  .\"
  .TH COM_ERR 3 "22 Nov 1988" SIPB
  .SH NAME
--- 1,7 ----
  .\" Copyright (c) 1988 Massachusetts Institute of Technology,
  .\" Student Information Processing Board.  All rights reserved.
  .\"
! .\" $Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/com_err.3,v 1.1 89/11/07 19:05:23 jik Exp $
  .\"
  .TH COM_ERR 3 "22 Nov 1988" SIPB
  .SH NAME
*** com_err.c	Mon Mar 11 20:22:41 1991
--- com_err.c	Mon Mar 11 20:26:36 1991
***************
*** 1,11 ****
  /*
   * Copyright 1987, 1988 by MIT Student Information Processing Board.
   *
!  * For copyright info, see mit-sipb-copyright.h.
   */
  
  #include <stdio.h>
! #include "mit-sipb-copyright.h"
  
  /*
   * Our environment only provides for ANSI's <stdarg.h> when using GNU
--- 1,11 ----
  /*
   * Copyright 1987, 1988 by MIT Student Information Processing Board.
   *
!  * For copyright info, see sipb-copying.h.
   */
  
  #include <stdio.h>
! #include "sipb-copying.h"
  
  /*
   * Our environment only provides for ANSI's <stdarg.h> when using GNU
***************
*** 46,52 ****
  
  #if ! lint
  static const char rcsid[] =
!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/com_err.c,v 1.2 89/11/07 18:57:42 jik Exp $";
  #endif	/* ! lint */
  
  static void
--- 46,52 ----
  
  #if ! lint
  static const char rcsid[] =
!     "$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/com_err.c,v 1.3 91/02/28 18:45:53 jik Exp $";
  #endif	/* ! lint */
  
  static void
*** /tmp/delete/com_err/compile_et.1	Mon Mar 11 20:22:42 1991
--- compile_et.1	Mon Mar 11 20:26:39 1991
***************
*** /tmp/delete/com_err/1,7 ****
  .\" Copyright (c) 1988 Massachusetts Institute of Technology,
  .\" Student Information Processing Board.  All rights reserved.
  .\"
! .\" $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/compile_et.1,v 1.1 89/11/07 19:05:47 jik Exp $
  .\"
  .TH COMPILE_ET 1 "22 Nov 1988" SIPB
  .SH NAME
--- 1,7 ----
  .\" Copyright (c) 1988 Massachusetts Institute of Technology,
  .\" Student Information Processing Board.  All rights reserved.
  .\"
! .\" $Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/compile_et.1,v 1.1 89/11/07 19:05:47 jik Exp $
  .\"
  .TH COMPILE_ET 1 "22 Nov 1988" SIPB
  .SH NAME
*** compile_et.c	Mon Mar 11 20:22:44 1991
--- compile_et.c	Mon Mar 11 20:26:40 1991
***************
*** /tmp/delete/com_err/3,9 ****
   * Copyright 1986, 1987, 1988
   * by MIT Student Information Processing Board.
   *
!  * For copyright info, see "mit-sipb-copyright.h".
   *
   */
  
--- 3,9 ----
   * Copyright 1986, 1987, 1988
   * by MIT Student Information Processing Board.
   *
!  * For copyright info, see "sipb-copying.h".
   *
   */
  
***************
*** 15,21 ****
  #include <sys/file.h>
  #include <string.h>
  #include <sys/param.h>
! #include "mit-sipb-copyright.h"
  #include "compiler.h"
  
  #ifndef __STDC__
--- 15,21 ----
  #include <sys/file.h>
  #include <string.h>
  #include <sys/param.h>
! #include "sipb-copying.h"
  #include "compiler.h"
  
  #ifndef __STDC__
***************
*** 27,33 ****
      "Copyright 1987,1988 by MIT Student Information Processing Board";
  
  static const char rcsid_compile_et_c[] =
!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/compile_et.c,v 1.2 90/06/07 21:48:57 jik Exp $";
  #endif
  
  extern char *gensym();
--- 27,33 ----
      "Copyright 1987,1988 by MIT Student Information Processing Board";
  
  static const char rcsid_compile_et_c[] =
!     "$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/compile_et.c,v 1.3 91/02/28 18:45:57 jik Exp $";
  #endif
  
  extern char *gensym();
*** error_msg.c	Mon Mar 11 20:22:45 1991
--- error_msg.c	Mon Mar 11 20:26:41 1991
***************
*** /tmp/delete/com_err/1,21 ****
  /*
!  * $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/error_message.c,v 1.1 89/11/07 19:05:30 jik Exp $
!  * $Source: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/error_message.c,v $
   * $Locker:  $
   *
   * Copyright 1987 by the Student Information Processing Board
   * of the Massachusetts Institute of Technology
   *
!  * For copyright info, see "mit-sipb-copyright.h".
   */
  
  #include <stdio.h>
  #include "error_table.h"
! #include "mit-sipb-copyright.h"
  #include "internal.h"
  
  static const char rcsid[] =
!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/error_message.c,v 1.1 89/11/07 19:05:30 jik Exp $";
  static const char copyright[] =
      "Copyright 1986, 1987, 1988 by the Student Information Processing Board\nand the department of Information Systems\nof the Massachusetts Institute of Technology";
  
--- 1,21 ----
  /*
!  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/error_msg.c,v 1.2 91/02/28 18:46:00 jik Exp $
!  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/error_msg.c,v $
   * $Locker:  $
   *
   * Copyright 1987 by the Student Information Processing Board
   * of the Massachusetts Institute of Technology
   *
!  * For copyright info, see "sipb-copying.h".
   */
  
  #include <stdio.h>
  #include "error_table.h"
! #include "sipb-copying.h"
  #include "internal.h"
  
  static const char rcsid[] =
!     "$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/error_msg.c,v 1.2 91/02/28 18:46:00 jik Exp $";
  static const char copyright[] =
      "Copyright 1986, 1987, 1988 by the Student Information Processing Board\nand the department of Information Systems\nof the Massachusetts Institute of Technology";
  
*** error_table.h	Mon Mar 11 20:22:46 1991
--- error_table.h	Mon Mar 11 20:26:42 1991
***************
*** /tmp/delete/com_err/2,8 ****
   * Copyright 1988 by the Student Information Processing Board of the
   * Massachusetts Institute of Technology.
   *
!  * For copyright info, see mit-sipb-copyright.h.
   */
  
  #ifndef _ET_H
--- 2,8 ----
   * Copyright 1988 by the Student Information Processing Board of the
   * Massachusetts Institute of Technology.
   *
!  * For copyright info, see sipb-copying.h.
   */
  
  #ifndef _ET_H
*** error_table.y	Mon Mar 11 20:22:47 1991
--- error_table.y	Mon Mar 11 20:26:43 1991
***************
*** 62,71 ****
   *
   * Copyright 1986, 1987 by the MIT Student Information Processing Board
   *
!  * For copyright info, see mit-sipb-copyright.h.
   */
  
  #include <string.h>
  #include <assert.h>
  #include <ctype.h>
  #include <sys/types.h>
--- 62,77 ----
   *
   * Copyright 1986, 1987 by the MIT Student Information Processing Board
   *
!  * For copyright info, see sipb-copying.h.
   */
  
+ #ifdef SYSV
  #include <string.h>
+ #define index strchr
+ #define rindex strrchr
+ #else
+ #include <strings.h>
+ #endif
  #include <assert.h>
  #include <ctype.h>
  #include <sys/types.h>
***************
*** 72,82 ****
  #include <sys/time.h>
  #include "internal.h"
  #include "error_table.h"
! #include "mit-sipb-copyright.h"
  
  #ifndef	lint
  static char const rcsid_error_table_y[] =
!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/error_table.y,v 1.2 89/11/07 18:55:08 jik Exp $";
  #endif
  
  extern FILE *hfile, *cfile;
--- 78,88 ----
  #include <sys/time.h>
  #include "internal.h"
  #include "error_table.h"
! #include "sipb-copying.h"
  
  #ifndef	lint
  static char const rcsid_error_table_y[] =
!     "$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/error_table.y,v 1.4 91/03/01 09:26:16 jik Exp $";
  #endif
  
  extern FILE *hfile, *cfile;
*** /tmp/delete/com_err/et_lex.lex.l	Mon Mar 11 20:22:48 1991
--- et_lex.lex.l	Mon Mar 11 20:26:43 1991
***************
*** 31,35 ****
  .		{ return (*yytext); }
  %%
  #ifndef lint
! static char rcsid_et_lex_lex_l[] = "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/et_lex.lex.l,v 1.3 90/06/07 22:53:55 jik Exp $";
  #endif
--- 31,35 ----
  .		{ return (*yytext); }
  %%
  #ifndef lint
! static char rcsid_et_lex_lex_l[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/et_lex.lex.l,v 1.3 90/06/07 22:53:55 jik Exp $";
  #endif
*** /tmp/delete/com_err/et_name.c	Mon Mar 11 20:22:49 1991
--- et_name.c	Mon Mar 11 20:26:44 1991
***************
*** 1,11 ****
  /*
   * Copyright 1987 by MIT Student Information Processing Board
   *
!  * For copyright info, see mit-sipb-copyright.h.
   */
  
  #include "error_table.h"
! #include "mit-sipb-copyright.h"
  #include "internal.h"
  
  #ifndef	lint
--- 1,11 ----
  /*
   * Copyright 1987 by MIT Student Information Processing Board
   *
!  * For copyright info, see sipb-copying.h.
   */
  
  #include "error_table.h"
! #include "sipb-copying.h"
  #include "internal.h"
  
  #ifndef	lint
***************
*** /tmp/delete/com_err/12,18 ****
  static const char copyright[] =
      "Copyright 1987,1988 by Student Information Processing Board, Massachusetts Institute of Technology";
  static const char rcsid_et_name_c[] =
!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/et_name.c,v 1.1 89/11/07 19:05:32 jik Exp $";
  #endif
  
  static const char char_set[] =
--- 12,18 ----
  static const char copyright[] =
      "Copyright 1987,1988 by Student Information Processing Board, Massachusetts Institute of Technology";
  static const char rcsid_et_name_c[] =
!     "$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/et_name.c,v 1.2 91/02/28 18:46:10 jik Exp $";
  #endif
  
  static const char char_set[] =
*** init_et.c	Mon Mar 11 20:22:49 1991
--- init_et.c	Mon Mar 11 20:26:45 1991
***************
*** 1,17 ****
  /*
!  * $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/init_et.c,v 1.1 89/11/07 19:05:34 jik Exp $
!  * $Source: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/init_et.c,v $
   * $Locker:  $
   *
   * Copyright 1986, 1987, 1988 by MIT Information Systems and
   *	the MIT Student Information Processing Board.
   *
!  * For copyright info, see mit-sipb-copyright.h.
   */
  
  #include <stdio.h>
  #include "error_table.h"
! #include "mit-sipb-copyright.h"
  
  #ifndef __STDC__
  #define const
--- 1,17 ----
  /*
!  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/init_et.c,v 1.2 91/02/28 18:46:13 jik Exp $
!  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/init_et.c,v $
   * $Locker:  $
   *
   * Copyright 1986, 1987, 1988 by MIT Information Systems and
   *	the MIT Student Information Processing Board.
   *
!  * For copyright info, see sipb-copying.h.
   */
  
  #include <stdio.h>
  #include "error_table.h"
! #include "sipb-copying.h"
  
  #ifndef __STDC__
  #define const
***************
*** 19,25 ****
  
  #ifndef	lint
  static const char rcsid_init_et_c[] =
!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/init_et.c,v 1.1 89/11/07 19:05:34 jik Exp $";
  #endif
  
  extern char *malloc(), *realloc();
--- 19,25 ----
  
  #ifndef	lint
  static const char rcsid_init_et_c[] =
!     "$Header: /afs/athena.mit.edu/astaff/project/delete/src/et/RCS/init_et.c,v 1.2 91/02/28 18:46:13 jik Exp $";
  #endif
  
  extern char *malloc(), *realloc();
*** /tmp/delete/com_err/internal.h	Mon Mar 11 20:22:50 1991
--- internal.h	Mon Mar 11 20:26:45 1991
***************
*** 1,7 ****
  /*
   * internal include file for com_err package
   */
! #include "mit-sipb-copyright.h"
  #ifndef __STDC__
  #undef const
  #define const
--- 1,7 ----
  /*
   * internal include file for com_err package
   */
! #include "sipb-copying.h"
  #ifndef __STDC__
  #undef const
  #define const

exit 0 # Just in case...
-- 
Kent Landfield                   INTERNET: kent at sparky.IMD.Sterling.COM
Sterling Software, IMD           UUCP:     uunet!sparky!kent
Phone:    (402) 291-8300         FAX:      (402) 291-4362
Please send comp.sources.misc-related mail to kent at uunet.uu.net.



More information about the Comp.sources.misc mailing list