diff --git a/doc/html.xsl.in b/doc/html.xsl.in
index a91d9746..ec4fa655 100644
--- a/doc/html.xsl.in
+++ b/doc/html.xsl.in
@@ -1,4 +1,5 @@
+
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in
index c4a44e3c..88172296 100644
--- a/doc/jemalloc.xml.in
+++ b/doc/jemalloc.xml.in
@@ -180,20 +180,20 @@
Standard API
- The malloc function allocates
+ The malloc() function allocates
size bytes of uninitialized memory. The allocated
space is suitably aligned (after possible pointer coercion) for storage
of any type of object.
- The calloc function allocates
+ The calloc() function allocates
space for number objects, each
size bytes in length. The result is identical to
- calling malloc with an argument of
+ calling malloc() with an argument of
number * size, with the
exception that the allocated memory is explicitly initialized to zero
bytes.
- The posix_memalign function
+ The posix_memalign() function
allocates size bytes of memory such that the
allocation's base address is a multiple of
alignment, and returns the allocation in the value
@@ -201,7 +201,7 @@
alignment must be a power of 2 at least as large as
sizeof(void *).
- The aligned_alloc function
+ The aligned_alloc() function
allocates size bytes of memory such that the
allocation's base address is a multiple of
alignment. The requested
@@ -209,7 +209,7 @@
undefined if size is not an integral multiple of
alignment.
- The realloc function changes the
+ The realloc() function changes the
size of the previously allocated memory referenced by
ptr to size bytes. The
contents of the memory are unchanged up to the lesser of the new and old
@@ -217,26 +217,26 @@
portion of the memory are undefined. Upon success, the memory referenced
by ptr is freed and a pointer to the newly
allocated memory is returned. Note that
- realloc may move the memory allocation,
+ realloc() may move the memory allocation,
resulting in a different return value than ptr.
If ptr is NULL, the
- realloc function behaves identically to
- malloc for the specified size.
+ realloc() function behaves identically to
+ malloc() for the specified size.
- The free function causes the
+ The free() function causes the
allocated memory referenced by ptr to be made
available for future allocations. If ptr is
NULL, no action occurs.Non-standard API
- The mallocx,
- rallocx,
- xallocx,
- sallocx,
- dallocx,
- sdallocx, and
- nallocx functions all have a
+ The mallocx(),
+ rallocx(),
+ xallocx(),
+ sallocx(),
+ dallocx(),
+ sdallocx(), and
+ nallocx() functions all have a
flags argument that can be used to specify
options. The functions only check the options that are contextually
relevant. Use bitwise or (|) operations to
@@ -307,19 +307,19 @@
- The mallocx function allocates at
+ The mallocx() function allocates at
least size bytes of memory, and returns a pointer
to the base address of the allocation. Behavior is undefined if
size is 0.
- The rallocx function resizes the
+ The rallocx() function resizes the
allocation at ptr to be at least
size bytes, and returns a pointer to the base
address of the resulting allocation, which may or may not have moved from
its original location. Behavior is undefined if
size is 0.
- The xallocx function resizes the
+ The xallocx() function resizes the
allocation at ptr in place to be at least
size bytes, and returns the real size of the
allocation. If extra is non-zero, an attempt is
@@ -332,32 +332,32 @@
language="C">(size + extra
> SIZE_T_MAX).
- The sallocx function returns the
+ The sallocx() function returns the
real size of the allocation at ptr.
- The dallocx function causes the
+ The dallocx() function causes the
memory referenced by ptr to be made available for
future allocations.
- The sdallocx function is an
- extension of dallocx with a
+ The sdallocx() function is an
+ extension of dallocx() with a
size parameter to allow the caller to pass in the
allocation size as an optimization. The minimum valid input size is the
original requested size of the allocation, and the maximum valid input
size is the corresponding value returned by
- nallocx or
- sallocx.
+ nallocx() or
+ sallocx().
- The nallocx function allocates no
+ The nallocx() function allocates no
memory, but it performs the same size computation as the
- mallocx function, and returns the real
+ mallocx() function, and returns the real
size of the allocation that would result from the equivalent
- mallocx function call, or
+ mallocx() function call, or
0 if the inputs exceed the maximum supported size
class and/or alignment. Behavior is undefined if
size is 0.
- The mallctl function provides a
+ The mallctl() function provides a
general interface for introspecting the memory allocator, as well as
setting modifiable parameters and triggering actions. The
period-separated name argument specifies a
@@ -372,12 +372,12 @@
newlen; otherwise pass NULL
and 0.
- The mallctlnametomib function
+ The mallctlnametomib() function
provides a way to avoid repeated name lookups for applications that
repeatedly query the same portion of the namespace, by translating a name
to a “Management Information Base” (MIB) that can be passed
- repeatedly to mallctlbymib. Upon
- successful return from mallctlnametomib,
+ repeatedly to mallctlbymib(). Upon
+ successful return from mallctlnametomib(),
mibp contains an array of
*miblenp integers, where
*miblenp is the lesser of the number of components
@@ -410,18 +410,18 @@ for (i = 0; i < nbins; i++) {
/* Do something with bin_size... */
}]]>
- The malloc_stats_print function
+ The malloc_stats_print() function
writes human-readable summary statistics via the
write_cb callback function pointer and
cbopaque data passed to
write_cb, or
- malloc_message if
+ malloc_message() if
write_cb is NULL. This
function can be called repeatedly. General information that never
changes during execution can be omitted by specifying "g" as a character
within the opts string. Note that
- malloc_message uses the
- mallctl* functions internally, so
+ malloc_message() uses the
+ mallctl*() functions internally, so
inconsistent statistics can be reported if multiple threads use these
functions simultaneously. If is
specified during configuration, “m” and “a” can
@@ -434,15 +434,15 @@ for (i = 0; i < nbins; i++) {
thread cache operations.
- The malloc_usable_size function
+ The malloc_usable_size() function
returns the usable size of the allocation pointed to by
ptr. The return value may be larger than the size
that was requested during allocation. The
- malloc_usable_size function is not a
- mechanism for in-place realloc; rather
+ malloc_usable_size() function is not a
+ mechanism for in-place realloc(); rather
it is provided solely as a tool for introspection purposes. Any
discrepancy between the requested allocation size and the size reported
- by malloc_usable_size should not be
+ by malloc_usable_size() should not be
depended on, since such behavior is entirely implementation-dependent.
@@ -460,7 +460,7 @@ for (i = 0; i < nbins; i++) {
environment variable MALLOC_CONF, will be interpreted, in
that order, from left to right as options. Note that
malloc_conf may be read before
- main is entered, so the declaration of
+ main() is entered, so the declaration of
malloc_conf should specify an initializer that contains
the final value to be read by jemalloc.
and malloc_conf are compile-time mechanisms, whereas
@@ -549,14 +549,14 @@ for (i = 0; i < nbins; i++) {
nearest multiple of the cacheline size, or specify cacheline alignment when
allocating.
- The realloc,
- rallocx, and
- xallocx functions may resize allocations
+ The realloc(),
+ rallocx(), and
+ xallocx() functions may resize allocations
without moving them under limited circumstances. Unlike the
- *allocx API, the standard API does not
+ *allocx() API, the standard API does not
officially round up the usable size of an allocation to the nearest size
class, so technically it is necessary to call
- realloc to grow e.g. a 9-byte allocation to
+ realloc() to grow e.g. a 9-byte allocation to
16 bytes, or shrink a 16-byte allocation to 9 bytes. Growth and shrinkage
trivially succeeds in place as long as the pre-size and post-size both round
up to the same size class. No other API guarantees are made regarding
@@ -702,7 +702,7 @@ for (i = 0; i < nbins; i++) {
MALLCTL NAMESPACEThe following names are defined in the namespace accessible via the
- mallctl* functions. Value types are
+ mallctl*() functions. Value types are
specified in parentheses, their readable/writable statuses are encoded as
rw, r-, -w, or
--, and required build configuration flags follow, if
@@ -733,7 +733,7 @@ for (i = 0; i < nbins; i++) {
rwIf a value is passed in, refresh the data from which
- the mallctl* functions report values,
+ the mallctl*() functions report values,
and increment the epoch. Return the current epoch. This is useful for
detecting whether another thread caused a refresh.
@@ -1013,19 +1013,19 @@ for (i = 0; i < nbins; i++) {
r-Enable/disable statistics printing at exit. If
- enabled, the malloc_stats_print
+ enabled, the malloc_stats_print()
function is called at program exit via an
atexit3 function. If
is specified during configuration, this
has the potential to cause deadlock for a multi-threaded process that
exits while one or more threads are executing in the memory allocation
- functions. Furthermore, atexit may
+ functions. Furthermore, atexit() may
allocate memory during application initialization and then deadlock
internally when jemalloc in turn calls
- atexit, so this option is not
+ atexit(), so this option is not
universally usable (though the application can register its own
- atexit function with equivalent
+ atexit() function with equivalent
functionality). Therefore, this option should only be used with care;
it is primarily intended as a performance tuning aid during application
development. This option is disabled by default.
@@ -1101,8 +1101,8 @@ for (i = 0; i < nbins; i++) {
Zero filling enabled/disabled. If enabled, each byte
of uninitialized allocated memory will be initialized to 0. Note that
this initialization only happens once for each byte, so
- realloc and
- rallocx calls do not zero memory that
+ realloc() and
+ rallocx() calls do not zero memory that
was previously allocated. This is intended for debugging and will
impact performance negatively. This option is disabled by default.
@@ -1325,11 +1325,11 @@ malloc_conf = "xmalloc:true";]]>
<prefix>.<pid>.<seq>.f.heap,
where <prefix> is controlled by the opt.prof_prefix
- option. Note that atexit may allocate
+ option. Note that atexit() may allocate
memory during application initialization and then deadlock internally
- when jemalloc in turn calls atexit, so
+ when jemalloc in turn calls atexit(), so
this option is not universally usable (though the application can
- register its own atexit function with
+ register its own atexit() function with
equivalent functionality). This option is disabled by
default.
@@ -1388,7 +1388,7 @@ malloc_conf = "xmalloc:true";]]>
thread.allocated
mallctl. This is useful for avoiding the overhead of repeated
- mallctl* calls.
+ mallctl*() calls.
@@ -1415,7 +1415,7 @@ malloc_conf = "xmalloc:true";]]>
thread.deallocated
mallctl. This is useful for avoiding the overhead of repeated
- mallctl* calls.
+ mallctl*() calls.
@@ -2763,10 +2763,10 @@ MAPPED_LIBRARIES:
to override the function which emits the text strings forming the errors
and warnings if for some reason the STDERR_FILENO file
descriptor is not suitable for this.
- malloc_message takes the
+ malloc_message() takes the
cbopaque pointer argument that is
NULL unless overridden by the arguments in a call to
- malloc_stats_print, followed by a string
+ malloc_stats_print(), followed by a string
pointer. Please note that doing anything which tries to allocate memory in
this function is likely to result in a crash or deadlock.
@@ -2777,15 +2777,15 @@ MAPPED_LIBRARIES:
RETURN VALUESStandard API
- The malloc and
- calloc functions return a pointer to the
+ The malloc() and
+ calloc() functions return a pointer to the
allocated memory if successful; otherwise a NULL
pointer is returned and errno is set to
ENOMEM.
- The posix_memalign function
+ The posix_memalign() function
returns the value 0 if successful; otherwise it returns an error value.
- The posix_memalign function will fail
+ The posix_memalign() function will fail
if:
@@ -2804,11 +2804,11 @@ MAPPED_LIBRARIES:
- The aligned_alloc function returns
+ The aligned_alloc() function returns
a pointer to the allocated memory if successful; otherwise a
NULL pointer is returned and
errno is set. The
- aligned_alloc function will fail if:
+ aligned_alloc() function will fail if:
EINVAL
@@ -2825,44 +2825,44 @@ MAPPED_LIBRARIES:
- The realloc function returns a
+ The realloc() function returns a
pointer, possibly identical to ptr, to the
allocated memory if successful; otherwise a NULL
pointer is returned, and errno is set to
ENOMEM if the error was the result of an
- allocation failure. The realloc
+ allocation failure. The realloc()
function always leaves the original buffer intact when an error occurs.
- The free function returns no
+ The free() function returns no
value.Non-standard API
- The mallocx and
- rallocx functions return a pointer to
+ The mallocx() and
+ rallocx() functions return a pointer to
the allocated memory if successful; otherwise a NULL
pointer is returned to indicate insufficient contiguous memory was
available to service the allocation request.
- The xallocx function returns the
+ The xallocx() function returns the
real size of the resulting resized allocation pointed to by
ptr, which is a value less than
size if the allocation could not be adequately
grown in place.
- The sallocx function returns the
+ The sallocx() function returns the
real size of the allocation pointed to by ptr.
- The nallocx returns the real size
+ The nallocx() returns the real size
that would result from a successful equivalent
- mallocx function call, or zero if
+ mallocx() function call, or zero if
insufficient memory is available to perform the size computation.
- The mallctl,
- mallctlnametomib, and
- mallctlbymib functions return 0 on
+ The mallctl(),
+ mallctlnametomib(), and
+ mallctlbymib() functions return 0 on
success; otherwise they return an error value. The functions will fail
if:
@@ -2898,13 +2898,13 @@ MAPPED_LIBRARIES:
EFAULTAn interface with side effects failed in some way
- not directly related to mallctl*
+ not directly related to mallctl*()
read/write processing.
- The malloc_usable_size function
+ The malloc_usable_size() function
returns the usable size of the allocation pointed to by
ptr.
@@ -2952,13 +2952,13 @@ malloc_conf = "lg_chunk:24";]]>STANDARDS
- The malloc,
- calloc,
- realloc, and
- free functions conform to ISO/IEC
+ The malloc(),
+ calloc(),
+ realloc(), and
+ free() functions conform to ISO/IEC
9899:1990 (“ISO C90”).
- The posix_memalign function conforms
+ The posix_memalign() function conforms
to IEEE Std 1003.1-2001 (“POSIX.1”).
diff --git a/doc/stylesheet.xsl b/doc/stylesheet.xsl
index 4e334a86..bc8bc2a9 100644
--- a/doc/stylesheet.xsl
+++ b/doc/stylesheet.xsl
@@ -1,6 +1,9 @@
ansi
-
+
+
+
+
""