home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!bu.edu!cs!tasos
- From: tasos@cs.bu.edu (Anastasios Kotsikonas)
- Newsgroups: comp.unix.aix
- Subject: Re: malloc(0) fails on AIX and nowhere else I could find ...
- Message-ID: <106510@bu.edu>
- Date: 8 Jan 93 15:26:42 GMT
- References: <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca>
- Sender: news@bu.edu
- Organization: Computer Science Department, Boston University, Boston, MA, USA
- Lines: 19
-
- In article <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca> jmsellen@watdragon.uwaterloo.ca ("John M. Sellens") writes:
- >Trying to malloc() 0 bytes on AIX fails, but works on Ultrix, IRIX,
- >Dynix, SunOS, BSD, MIPS RiscOS.
- >
- >OK, it's documented in the man page on AIX, but it's a pointless and
- >annoying inconsistency. I wish AIX was UNIX.
-
- Thanks for posting a documented feature. Now please go through all the AIX
- manuals and post all such potential problems that are bound to cause problems
- like this (I allocate zero bytes every day for my imaginary structures in my
- imaginary programs), and make any effort to make these posting as lengthy as
- possible to flood the world with more crud that we could ever handle.
-
- Thanks also for posting the progy -- we could never write our own to
- allocate 0 bytes and check for the return address from malloc(); sharing code
- is important I think.
-
- Tasos
-
-