From owner-cvs-all Thu Jan 24 4:17:55 2002 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id D784437B417; Thu, 24 Jan 2002 04:17:41 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0OCHcn41369; Thu, 24 Jan 2002 14:17:38 +0200 (EET) (envelope-from ru) Date: Thu, 24 Jan 2002 14:17:38 +0200 From: Ruslan Ermilov To: David Malone Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/include unistd.h src/lib/libc/sys brk.2 src/libexec/rtld-aout rtld.c src/libexec/rtld-elf malloc.c Message-ID: <20020124141737.D38822@sunbay.com> References: <200201241211.g0OCBVq62184@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201241211.g0OCBVq62184@freefall.freebsd.org> User-Agent: Mutt/1.3.23i 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 Cool, thanks! On Thu, Jan 24, 2002 at 04:11:31AM -0800, David Malone wrote: > dwmalone 2002/01/24 04:11:31 PST > > Modified files: > include unistd.h > lib/libc/sys brk.2 > libexec/rtld-aout rtld.c > libexec/rtld-elf malloc.c > Log: > Change brk's prototype from char *brk(const char *) to int brk(const void *) > and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). > > This makes us more consistant with NetBSD and standards which include > these functions. Bruce pointed out that ptrdiff_t would probably > have been better than intptr_t, but this doesn't match other > implimentations. > > Also remove local declarations of sbrk and unnecessary casting. > > PR: 32296 > Tested by: Harti Brandt > MFC after: 1 month > > Revision Changes Path > 1.48 +2 -2 src/include/unistd.h > 1.23 +8 -16 src/lib/libc/sys/brk.2 > 1.61 +2 -2 src/libexec/rtld-aout/rtld.c > 1.5 +1 -2 src/libexec/rtld-elf/malloc.c -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message