HP-UX Reference (11i v2 03/08) - 3 Library Functions A-M (vol 6)

m
malloc(3C) malloc(3C)
Obsolescent Interfaces
memorymap() has been deprecated at HP-UX 11i Version 1 and is now obsolete. The
mallinfo()
function is more useful for malloc statistics.
COMPATIBILITY
The only external difference between the old malloc (3X) allocator and the malloc(3C) allocator is that the
old allocator would return a NULL pointer for a request of zero bytes. The malloc (3C) allocator returns a
valid memory address. This is not a concern for most applications.
By default, SBA (Small Block Allocation) is turned on for Itanium(R)-based systems and is turned off for
PA-RISC systems. This was due to performance concerns. Please refer to the
EXTERNAL INFLUENCES
section of this man page for details.
SEE ALSO
brk(2), errno(2), thread_safety(5).
STANDARDS CONFORMANCE
malloc(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
calloc(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
free(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
mallinfo(): SVID2, XPG2
mallopt(): SVID2, SVID3, XPG2
realloc(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
Section 3600 Hewlett-Packard Company 5 HP-UX 11i Version 2: August 2003