Type of brk(2) return value

Kenneth Almquist ka at hou3c.UUCP
Mon May 14 08:23:11 AEST 1984


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.
				Kenneth Almquist



More information about the Comp.unix.wizards mailing list