home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume27 / efence / patch01 < prev    next >
Encoding:
Text File  |  1993-09-05  |  767 b   |  28 lines

  1. Newsgroups: comp.sources.unix
  2. From: bruce@pixar.com (Bruce Perens)
  3. Subject: v27i030: efence - Electric Fence, a debugging malloc() library, Patch01
  4. Sender: unix-sources-moderator@gw.home.vix.com
  5. Approved: vixie@gw.home.vix.com
  6.  
  7. Submitted-By: bruce@pixar.com (Bruce Perens)
  8. Posting-Number: Volume 27, Issue 30
  9. Archive-Name: efence/patch01
  10.  
  11. This works around a kernel bug in HP/UX 9.01 . mmap() on that system
  12. sometimes fails when given an address hint. Bug reported to HP.
  13.  
  14. *** page.c.bak    Thu Sep  2 12:24:42 1993
  15. --- page.c    Thu Sep  2 12:24:33 1993
  16. ***************
  17. *** 62,68 ****
  18. --- 62,70 ----
  19.       ,-1
  20.       ,0);
  21.   
  22. + #ifndef __hpux
  23.       startAddr = allocation + size;
  24. + #endif
  25.   
  26.       if ( allocation == (caddr_t)-1 )
  27.           EF_Exit("mmap() failed: %s", stringErrorReport());
  28.