summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authorjmc <>2014-04-22 15:02:16 +0000
committerjmc <>2014-04-22 15:02:16 +0000
commit21f6cbfa0c48cb2e77b3e67ca01577d642b52247 (patch)
tree3b33632901929b1682b748e21c977fa46f58b0bd /src/lib/libc
parent4e773491bc7c791e4ac7e60562b093b311193559 (diff)
downloadopenbsd-21f6cbfa0c48cb2e77b3e67ca01577d642b52247.tar.gz
openbsd-21f6cbfa0c48cb2e77b3e67ca01577d642b52247.tar.bz2
openbsd-21f6cbfa0c48cb2e77b3e67ca01577d642b52247.zip
- one more mallocarray -> reallocarray
- use <>
Diffstat (limited to 'src/lib/libc')
-rw-r--r--src/lib/libc/stdlib/malloc.36
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 2f99ea9b80..854d698fcc 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.75 2014/04/22 14:26:26 tedu Exp $ 33.\" $OpenBSD: malloc.3,v 1.76 2014/04/22 15:02:16 jmc Exp $
34.\" 34.\"
35.Dd $Mdocdate: April 22 2014 $ 35.Dd $Mdocdate: April 22 2014 $
36.Dt MALLOC 3 36.Dt MALLOC 3
@@ -321,7 +321,7 @@ Increase the size of the free page cache by a factor of two.
321.Pp 321.Pp
322So to set a systemwide reduction of the cache to a quarter of the 322So to set a systemwide reduction of the cache to a quarter of the
323default size and use guard pages: 323default size and use guard pages:
324.Dl # ln -s 'G\*(Lt\*(Lt' /etc/malloc.conf 324.Dl # ln -s 'G<<' /etc/malloc.conf
325.Pp 325.Pp
326The flags are mostly for testing and debugging. 326The flags are mostly for testing and debugging.
327If a program changes behavior if any of these options (except 327If a program changes behavior if any of these options (except
@@ -333,7 +333,7 @@ The default number of free pages cached is 64.
333.Sh RETURN VALUES 333.Sh RETURN VALUES
334The 334The
335.Fn malloc , 335.Fn malloc ,
336.Fn mallocarray , 336.Fn reallocarray ,
337and 337and
338.Fn calloc 338.Fn calloc
339functions return a pointer to the allocated space if successful; otherwise, 339functions return a pointer to the allocated space if successful; otherwise,