Loading...
gen/malloc.3 Libc-763.13 Libc-498
--- Libc/Libc-763.13/gen/malloc.3
+++ Libc/Libc-498/gen/malloc.3
@@ -18,7 +18,7 @@
 .\"
 .\" @APPLE_LICENSE_HEADER_END@
 .\"
-.Dd Aug 13, 2008
+.Dd May 23, 2006
 .Dt MALLOC 3
 .Os
 .Sh NAME
@@ -128,8 +128,6 @@
 is not 
 .Dv NULL ,
 a new, minimum sized object is allocated and the original object is freed.
-When extending a region allocated with calloc(3), realloc(3) does not guarantee 
-that the additional memory is also zero-filled.
 .Pp
 The
 .Fn reallocf
@@ -145,9 +143,7 @@
 The
 .Fn free
 function deallocates the memory allocation pointed to by
-.Fa ptr .  If
-.Fa ptr 
-is a NULL pointer, no operation is performed.
+.Fa ptr .
 .Sh RETURN VALUES
 If successful,
 .Fn calloc ,
@@ -207,13 +203,12 @@
 If set, record all stacks in a manner that is compatible with the
 .Nm malloc_history
 program.
-.It Ev MallocStackLoggingDirectory
-If set, records stack logs to the directory specified instead of saving them to the default location (/tmp).
+.It Ev MallocPreScribble
+If set, fill memory that has been allocated with 0xaa bytes.
+This increases the likelihood that a program making assumptions about the
+contents of freshly allocated memory will fail.
 .It Ev MallocScribble
-If set, fill memory that has been allocated with 0xaa bytes.
-This increases the likelihood that a program making assumptions about the contents of
-freshly allocated memory will fail.
-Also if set, fill memory that has been deallocated with 0x55 bytes.
+If set, fill memory that has been deallocated with 0x55 bytes.
 This increases the likelihood that a program will fail due to accessing memory
 that is no longer allocated.
 .It Ev MallocCheckHeapStart <s>
@@ -260,13 +255,6 @@
 , such as a calling
 .Xr free 3
 on a pointer previously freed.
-.It Ev MallocCorruptionAbort
-Similar to
-.Ev
-MallocErrorAbort 
-but will not abort in out of memory conditions, making it more useful to catch
-only those errors which will cause memory corruption.
-MallocCorruptionAbort is always set on 64-bit processes.
 .It Ev MallocHelp
 If set, print a list of environment variables that are paid heed to by the
 allocation-related functions, along with short descriptions.
@@ -277,7 +265,5 @@
 .Xr leaks 1 ,
 .Xr malloc_history 1 ,
 .Xr abort 3 ,
-.Xr malloc_size 3 ,
-.Xr malloc_zone_malloc 3 ,
-.Xr posix_memalign 3 ,
-.Xr libgmalloc 3
+.Xr malloc_size 3
+.Pa /Developer/ADC Reference Library/releasenotes/DeveloperTools/MallocOptions.html