From 9fc53ff195fef18d86d12b3dd65d5b839c5a7afe Mon Sep 17 00:00:00 2001 From: nik Date: Sun, 11 Feb 2001 19:28:36 +0000 Subject: Include mmap(2) in the list of memory allocation functions. Reviewed by: hackers --- lib/libc/stdlib/memory.3 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/memory.3 b/lib/libc/stdlib/memory.3 index e8944e1..0487eae 100644 --- a/lib/libc/stdlib/memory.3 +++ b/lib/libc/stdlib/memory.3 @@ -40,7 +40,8 @@ .Nm free , .Nm realloc , .Nm calloc , -.Nm alloca +.Nm alloca , +.Nm mmap .Nd general memory allocation operations .Sh LIBRARY .Lb libc @@ -56,6 +57,10 @@ .Fn calloc "size_t nelem" "size_t elsize" .Ft void * .Fn alloca "size_t size" +.Fd #include +.Fd #include +.Ft void * +.Fn mmap "void * addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset" .Sh DESCRIPTION These functions allocate and free memory for the calling process. They are described in the @@ -65,9 +70,12 @@ individual manual pages. .Xr calloc 3 , .Xr free 3 , .Xr malloc 3 , -.Xr realloc 3 +.Xr realloc 3 , +.Xr mmap 2 .Sh STANDARDS These functions, with the exception of .Fn alloca +and +.Fn mmap conform to .St -ansiC . -- cgit v1.1