Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2001 10:00:02 -0800 (PST)
From:      David Malone <dwmalone@maths.tcd.ie>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/32296: brk() has illegal prototype
Message-ID:  <200111261800.fAQI02494944@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/32296; it has been noted by GNATS.

From: David Malone <dwmalone@maths.tcd.ie>
To: Joerg Schilling <schilling@fokus.gmd.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: misc/32296: brk() has illegal prototype
Date: Mon, 26 Nov 2001 17:51:14 +0000

 On Mon, Nov 26, 2001 at 05:40:08PM +0100, Joerg Schilling wrote:
 > brk() always have been returning int and is supposed tto return int by the
 > standard http://www.opengroup.org/onlinepubs/7908799/xsh/brk.html
 > 
 > FreeBSD returns char * instead....
 
 brk seems to have been returning a char * on BSD for at least the
 last 10 years. It makes more sense for it to return an int, but
 that could cause binary compatability problems for platforms where
 an int and a char * are not the same size (eg. the alpha).
 
 What problems are you seeing with the current implimentation? The
 only problem I can think of is that it will cause compiler warnings
 if you do:
 
 	if (brk(ptr) == -1)
 
 or if you try to redeclare brk.
 
 	David.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111261800.fAQI02494944>