summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2014-04-22 15:02:16 +0000
committerjmc <jmc@openbsd.org>2014-04-22 15:02:16 +0000
commit01ef285fdf0e2d1c3a327f6e1888d15e00f97a27 (patch)
tree16f83a9a551a4d7eebcba698801ee6165742fb87 /lib/libc/stdlib/malloc.3
parentNuke the last of the windows related defines from the openssl apps. (diff)
downloadwireguard-openbsd-01ef285fdf0e2d1c3a327f6e1888d15e00f97a27.tar.xz
wireguard-openbsd-01ef285fdf0e2d1c3a327f6e1888d15e00f97a27.zip
- one more mallocarray -> reallocarray
- use <>
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r--lib/libc/stdlib/malloc.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 2f99ea9b80b..854d698fcc2 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.75 2014/04/22 14:26:26 tedu Exp $
+.\" $OpenBSD: malloc.3,v 1.76 2014/04/22 15:02:16 jmc Exp $
.\"
.Dd $Mdocdate: April 22 2014 $
.Dt MALLOC 3
@@ -321,7 +321,7 @@ Increase the size of the free page cache by a factor of two.
.Pp
So to set a systemwide reduction of the cache to a quarter of the
default size and use guard pages:
-.Dl # ln -s 'G\*(Lt\*(Lt' /etc/malloc.conf
+.Dl # ln -s 'G<<' /etc/malloc.conf
.Pp
The flags are mostly for testing and debugging.
If a program changes behavior if any of these options (except
@@ -333,7 +333,7 @@ The default number of free pages cached is 64.
.Sh RETURN VALUES
The
.Fn malloc ,
-.Fn mallocarray ,
+.Fn reallocarray ,
and
.Fn calloc
functions return a pointer to the allocated space if successful; otherwise,