From owner-cvs-all Wed Oct 23 11:32: 2 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3495A37B401; Wed, 23 Oct 2002 11:32:01 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9B8A43E75; Wed, 23 Oct 2002 11:31:59 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id EAA22159; Thu, 24 Oct 2002 04:31:49 +1000 Date: Thu, 24 Oct 2002 04:42:52 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Steve Kargl Cc: Mark Murray , , Subject: Re: cvs commit: src/include stdlib.h src/lib/libc/gen getbsize.3 getbsize.c In-Reply-To: <20021023180024.GA38880@troutmask.apl.washington.edu> Message-ID: <20021024043136.S23921-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 23 Oct 2002, Steve Kargl wrote: > On Thu, Oct 24, 2002 at 04:00:32AM +1000, Bruce Evans wrote: > > On Wed, 23 Oct 2002, Mark Murray wrote: > > > > > markm 2002/10/23 07:18:07 PDT > > > > > > Modified files: > > > include stdlib.h > > > lib/libc/gen getbsize.3 getbsize.c > > > Log: > > > Make the first argument of getbsize a size_t* instead of an int*, as this is > > > what the quantity actually is. Fix an easy const while I'm here. > > > > This breaks binary compatibility on 64-bit machines. > > > > It also breaks world. > > cc -O -pipe -mcpu=pentiumpro -c /usr/src/usr.bin/systat/swap.c > /usr/src/usr.bin/systat/swap.c:61: conflicting types for `getbsize' > /usr/obj/usr/src/i386/usr/include/stdlib.h:230: previous declaration of `getbsize' > *** Error code 1 systat shouldn't declare it, but of course there will be a type mismatches in unchanged sources if the correct declaration is in scope (except possibly on i386's -- gcc by default doesn't warn about type mismatches between pointers that differ only in signedness). The following programs in usr/src use getbsize: df, ls, quot, pkg_install, pstat, du, systat Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message