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