break.c 368 B

12345678910111213141516171819
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include "system.h"
  7. #include <unistd.h>
  8. char *
  9. sys_break(incr)
  10. int incr;
  11. {
  12. register char *brk = sbrk(incr);
  13. if (brk == (char *) 0 || brk == (char *)-1)
  14. return ILL_BREAK;
  15. return brk;
  16. }