From owner-cvs-all Thu Jan 24 4:11:42 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6B41137B417; Thu, 24 Jan 2002 04:11:31 -0800 (PST) Received: (from dwmalone@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0OCBVq62184; Thu, 24 Jan 2002 04:11:31 -0800 (PST) (envelope-from dwmalone) Message-Id: <200201241211.g0OCBVq62184@freefall.freebsd.org> From: David Malone Date: Thu, 24 Jan 2002 04:11:31 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include unistd.h src/lib/libc/sys brk.2 src/libexec/rtld-aout rtld.c src/libexec/rtld-elf malloc.c X-FreeBSD-CVS-Branch: HEAD 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 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message