Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.unix-wizards Subject: Re: Type of brk(2) return value Message-ID: <3857@utzoo.UUCP> Date: Tue, 15-May-84 19:12:37 EDT Article-I.D.: utzoo.3857 Posted: Tue May 15 19:12:37 1984 Date-Received: Tue, 15-May-84 19:12:37 EDT References: <488@sri-arpa.UUCP>, <567@hou3c.UUCP> Organization: U of Toronto Zoology Lines: 13 Kenneth Almquist comments, in part: Brk() used to return the old break value if it succeeded and -1 if it failed, just like sbrk(). In system III, it was changed to return either 0 or -1. Apparently Berkeley made the same change, and simply neglected to change the declaration on the manual page to int. The change came long before System III; the V7 brk() returns 0 or -1. The manual page does still (incorrectly) claim a "char *" returned value type, however. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry