git: a66d27e22fa0 - main - memory(3): Mention more functions.

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Wed, 18 Oct 2023 14:08:46 UTC
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=a66d27e22fa0a6ae42a559d2f58deef88425d795

commit a66d27e22fa0a6ae42a559d2f58deef88425d795
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-10-18 14:05:41 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-10-18 14:07:46 +0000

    memory(3): Mention more functions.
    
    Differential Revision:  https://reviews.freebsd.org/D42191
---
 lib/libc/stdlib/memory.3 | 57 ++++++++++++++++++++++++++++++++++++------------
 1 file changed, 43 insertions(+), 14 deletions(-)

diff --git a/lib/libc/stdlib/memory.3 b/lib/libc/stdlib/memory.3
index 143dce488f7e..a8bdd3a3ddf3 100644
--- a/lib/libc/stdlib/memory.3
+++ b/lib/libc/stdlib/memory.3
@@ -27,50 +27,79 @@
 .\"
 .\"     @(#)memory.3	8.1 (Berkeley) 6/4/93
 .\"
-.Dd June 4, 1993
+.Dd October 18, 2023
 .Dt MEMORY 3
 .Os
 .Sh NAME
-.Nm malloc ,
+.Nm aligned_alloc ,
+.Nm alloca ,
+.Nm calloc ,
 .Nm free ,
+.Nm malloc ,
+.Nm posix_memalign ,
 .Nm realloc ,
-.Nm calloc ,
-.Nm alloca ,
-.Nm mmap
-.Nd general memory allocation operations
+.Nm reallocf ,
+.Nm valloc ,
+.Nm mmap ,
+.Nm munmap
+.Nd memory management functions
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .In stdlib.h
 .Ft void *
-.Fn malloc "size_t size"
+.Fn aligned_alloc "size_t alignment" "size_t size"
+.Ft void *
+.Fn alloca "size_t size"
+.Ft void *
+.Fn calloc "size_t nelem" "size_t elsize"
 .Ft void
 .Fn free "void *ptr"
 .Ft void *
+.Fn malloc "size_t size"
+.Ft int
+.Fn posix_memalign "void **ptr" "size_t alignment" "size_t size"
+.Ft void *
 .Fn realloc "void *ptr" "size_t size"
 .Ft void *
-.Fn calloc "size_t nelem" "size_t elsize"
+.Fn reallocf "void *ptr" "size_t size"
 .Ft void *
-.Fn alloca "size_t size"
+.Fn valloc "size_t size"
 .In sys/types.h
 .In sys/mman.h
 .Ft void *
 .Fn mmap "void * addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset"
+.Ft int
+.Fn munmap "void *addr" "size_t len"
 .Sh DESCRIPTION
 These functions allocate and free memory for the calling process.
 They are described in the
 individual manual pages.
 .Sh SEE ALSO
 .Xr mmap 2 ,
+.Xr aligned_alloc 3 ,
 .Xr alloca 3 ,
 .Xr calloc 3 ,
 .Xr free 3 ,
 .Xr malloc 3 ,
-.Xr realloc 3
+.Xr posix_memalign 3 ,
+.Xr realloc 3 ,
+.Xr reallocf 3 ,
+.Xr valloc 3 ,
 .Sh STANDARDS
-These functions, with the exception of
-.Fn alloca
+The
+.Fn calloc ,
+.Fn free ,
+.Fn malloc ,
 and
-.Fn mmap
-conform to
+.Fn realloc
+functions conform to
 .St -isoC .
+.Pp
+The
+.Fn mmap ,
+.Fn munmap ,
+and
+.Fn posix_memalign
+functions conform to
+.St -p1003.1-2001 .