From owner-freebsd-doc Sat Sep 1 3:48:34 2001 Delivered-To: freebsd-doc@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id CA69837B405; Sat, 1 Sep 2001 03:48:29 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA17781; Sat, 1 Sep 2001 20:48:27 +1000 Date: Sat, 1 Sep 2001 20:48:14 +1000 (EST) From: Bruce Evans X-X-Sender: To: Yar Tikhiy Cc: , Subject: Re: brk(2) manpage seems erroneous and confusing In-Reply-To: <20010901112800.A26502@comp.chem.msu.su> Message-ID: <20010901204223.K1753-100000@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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