Type of brk(2) return value

Henry Spencer henry at utzoo.UUCP
Wed May 16 09:12:37 AEST 1984


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



More information about the Comp.unix.wizards mailing list