home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13140 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.3 KB

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