*BSD News Article 51111


Return to BSD News archive

Newsgroups: comp.bugs.2bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!bloom-beacon.mit.edu!newsserver.pixel.kodak.com!frankensun.altair.com!wlbr!sms
From: sms@wlv.iipo.gtegsc.com (Steven M. Schultz)
Subject: libc lint library bug (#274)
Sender: news@wlbr.iipo.gtegsc.com (Steven M. Schultz)
Organization: GTE Government Systems, Thousand Oaks
Message-ID: <DEpu13.Fr8@wlbr.iipo.gtegsc.com>
X-Nntp-Posting-Host: wlv.iipo.gtegsc.com
Date: Mon, 11 Sep 1995 00:43:51 GMT
Lines: 89

Subject: libc lint library bug (#274)
Index:	/usr/lib/lint/llib-lc 2.11BSD

Description:
	Recreating the lint library for the libc gives an error when
	including the now non-existent disktab.h file.

Repeat-By:
	cd /usr/src/usr.bin/lint
	./libs

	Note the error about 'disktab.h' when llib-lc is procesed.

Fix:
	Apply the small patch below and recreate the lint library.

	When disklabels were implemented the disktab.h file was replaced
	with sys/disklabel.h.  Unfortunately not all references to the old
	file were found and changed.

	Cut where indicated and save to a file (tmp/274).  Then:

		patch -p0 < /tmp/274
		cd /usr/src/usr.bin/lint
		./libs

	This and previous patches are available via anonymous ftp to the
	host FTP.IIPO.GTEGSC.COM in the directory /pub/2.11BSD.
==========================cut here=======================
*** /usr/lib/lint/llib-lc.old	Sun Apr  2 23:29:17 1995
--- /usr/lib/lint/llib-lc	Sun Sep 10 17:27:40 1995
***************
*** 1,4 ****
! /*	@(#)llib-lc	1.39 (2.11BSD GTE) 1/16/95 */
  
  /* LINTLIBRARY */
  
--- 1,4 ----
! /*	@(#)llib-lc	1.40 (2.11BSD GTE) 1995/09/10 */
  
  /* LINTLIBRARY */
  
***************
*** 22,28 ****
  
  #include <arpa/inet.h>
  
! #include <disktab.h>
  #include <fstab.h>
  #include <grp.h>
  #include <ndbm.h>
--- 22,28 ----
  
  #include <arpa/inet.h>
  
! #include <sys/disklabel.h>
  #include <fstab.h>
  #include <grp.h>
  #include <ndbm.h>
***************
*** 245,251 ****
  double	frexp( v, e) double v; int *e; { return v; }
  	ftime(tp) struct timeb *tp; { ; }
  char *	gcvt(v, n, b) double v; char *b; { return(""); }
! struct disktab *	getdiskbyname(name) char *name; { return (struct disktab *) 0; }
  char *	getenv( n ) char *n; { return n; }
  struct fstab *	getfsent() { return (struct fstab *)NULL; }
  struct fstab *	getfsspec( n ) char *n; { return (struct fstab *)NULL; }
--- 245,251 ----
  double	frexp( v, e) double v; int *e; { return v; }
  	ftime(tp) struct timeb *tp; { ; }
  char *	gcvt(v, n, b) double v; char *b; { return(""); }
! struct disklabel *	getdiskbyname(name) char *name; { return (struct disklabel *) 0; }
  char *	getenv( n ) char *n; { return n; }
  struct fstab *	getfsent() { return (struct fstab *)NULL; }
  struct fstab *	getfsspec( n ) char *n; { return (struct fstab *)NULL; }
*** /VERSION.old	Fri Sep  8 18:40:25 1995
--- /VERSION	Sun Sep 10 17:27:59 1995
***************
*** 1,4 ****
! Current Patch Level: 273
  
  2.11 BSD
  ============
--- 1,4 ----
! Current Patch Level: 274
  
  2.11 BSD
  ============