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

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!concert!rock!taco!straylight.acs.ncsu.edu!nsysdbj
  3. From: nsysdbj@acs.ncsu.edu (David Joyner)
  4. Subject: Re: malloc(0) fails on AIX and nowhere else I could find ...
  5. Message-ID: <1993Jan8.011325.8769@ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: North Carolina State University
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. References: <wfH=M4y00hYzAC54Zt@andrew.cmu.edu>
  10. Date: Fri, 8 Jan 1993 01:13:25 GMT
  11. Lines: 21
  12.  
  13. James D. Zelenka (jz1j+@andrew.cmu.edu) wrote:
  14. : Yeah, I ran into this too when I ported zephyr to AIX. There's an
  15. : obscure fix for this.
  16. : If you call:
  17. :     mallopt(1,0);
  18. : Somewhere in your program, malloc(0) will no longer return NULL.
  19. : -Jim Zelenka
  20. : jz1j@andrew.cmu.edu
  21.  
  22. That's a neat trick.  Info Explorer is misleading about mallopt():
  23.  
  24. "Nothing done with the mallopt subroutine affects how memory is
  25. allocated by the system."
  26.  
  27. --
  28. David Joyner (nsysdbj@acs.ncsu.edu)
  29. Unix Systems Programmer                            | Phone: (919) 515-2794  |
  30. NCSU Administrative Computing Services             | FAX:   (919) 515-3787  |
  31.