Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2001 20:48:14 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Yar Tikhiy <yar@FreeBSD.ORG>
Cc:        <arch@FreeBSD.ORG>, <doc@FreeBSD.ORG>
Subject:   Re: brk(2) manpage seems erroneous and confusing
Message-ID:  <20010901204223.K1753-100000@besplex.bde.org>
In-Reply-To: <20010901112800.A26502@comp.chem.msu.su>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 Sep 2001, Yar Tikhiy wrote:

> The current version of the page contains a number doubtful and
> ambiguous statements.  I've found at least six of them:
>
> - brk() should return int, not char* - it's a problem of our unistd.h, too
> ...
> Despites the page is of little use to programmers now, it has
> certain historical value for those who wish to know how Unix
> developed.

I think it started as returning char *.  That's what it returns inv V7.

> I'd suggest taking the brk(2) page from NetBSD, which language
> looks much better.  If noone minds, I'll do that.  Of course, I'll
> change the function prototypes in the manpage to match our unistd.h
> unless we decide to fix the latter, too.

Better change unistd.h.  The kernel returns int.

Bruce


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




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