home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume6 / malloc.patch / malloc.patch
Encoding:
Text File  |  1986-11-30  |  450 b   |  21 lines

  1. *** /tmp/,RCSt1000667    Sat Aug  2 22:49:47 1986
  2. --- realloc.c    Thu Jul 31 17:01:57 1986
  3. ***************
  4. *** 71,76
  5.           nbytes += sizeof(struct overhead);
  6.           BRK((char *)p + nbytes);
  7.           p->ov_length = nbytes;
  8.           return(mem);
  9.       }
  10.   
  11.  
  12. --- 71,79 -----
  13.           nbytes += sizeof(struct overhead);
  14.           BRK((char *)p + nbytes);
  15.           p->ov_length = nbytes;
  16. +         /* declare it to be busy */
  17. +         remque(TOBUK(p));
  18. +         p->ov_magic = MAGIC_BUSY;
  19.           return(mem);
  20.       }
  21.