Date: Thu, 24 Jan 2002 04:11:31 -0800 (PST) From: David Malone <dwmalone@FreeBSD.org> 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 Message-ID: <200201241211.g0OCBVq62184@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <brandt@fokus.gmd.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201241211.g0OCBVq62184>