Browse Source

- one more mallocarray -> reallocarray

- use <>
OPENBSD_5_6
jmc 10 years ago
parent
commit
c1238dcae0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/lib/libc/stdlib/malloc.3

+ 3
- 3
src/lib/libc/stdlib/malloc.3 View File

@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 $ .Dd $Mdocdate: April 22 2014 $
.Dt MALLOC 3 .Dt MALLOC 3
@ -321,7 +321,7 @@ Increase the size of the free page cache by a factor of two.
.Pp .Pp
So to set a systemwide reduction of the cache to a quarter of the So to set a systemwide reduction of the cache to a quarter of the
default size and use guard pages: default size and use guard pages:
.Dl # ln -s 'G\*(Lt\*(Lt' /etc/malloc.conf
.Dl # ln -s 'G<<' /etc/malloc.conf
.Pp .Pp
The flags are mostly for testing and debugging. The flags are mostly for testing and debugging.
If a program changes behavior if any of these options (except 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 .Sh RETURN VALUES
The The
.Fn malloc , .Fn malloc ,
.Fn mallocarray ,
.Fn reallocarray ,
and and
.Fn calloc .Fn calloc
functions return a pointer to the allocated space if successful; otherwise, functions return a pointer to the allocated space if successful; otherwise,


Loading…
Cancel
Save