home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13150 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!usenet.ins.cwru.edu!agate!linus!philabs!acheron!scifi!watson!yktnews!admin!influenza!lucien
  3. From: lucien@watson.ibm.com (Lucien Van Elsen)
  4. Subject: Re: malloc(0) fails on AIX and nowhere else I could find ...
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <LUCIEN.93Jan8082821@fionavar.watson.ibm.com>
  7. In-Reply-To: jz1j+@andrew.cmu.edu's message of 7 Jan 93 13:00:20 GMT
  8. Date: Fri, 8 Jan 1993 13:28:21 GMT
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. References: <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca>
  11.     <wfH=M4y00hYzAC54Zt@andrew.cmu.edu>
  12. Nntp-Posting-Host: fionavar.watson.ibm.com
  13. Organization: IBM T.J Watson Research Center
  14. Lines: 19
  15.  
  16. jz1j+@andrew.cmu.edu (James D. Zelenka) writes:
  17. >   Yeah, I ran into this too when I ported zephyr to AIX. There's an
  18. >   obscure fix for this.
  19. >
  20. >   If you call:
  21. >       mallopt(1,0);
  22.  
  23. You may want to pick up the latest snapshot of the zephyr sources from
  24. athena-dist.mit.edu; this bug has since been fixed in a more portable way.
  25. Given that the documentation (at least in the 3.2 InfoExplorer) says
  26. "Nothing done with the mallopt subroutine affects how memory is allocated by
  27. the system", relying on it to cause malloc(0) to allocate memory where it
  28. wouldn't previously is not likely to be a good long-term solution.
  29.  
  30.     -Lucien
  31. --
  32. -----------------------------------------------------------------------
  33. Lucien Van Elsen                                          IBM  Research
  34. lucien@watson.ibm.com                                     Project Agora
  35.