diff options
author | nik <nik@FreeBSD.org> | 2001-02-11 19:28:36 +0000 |
---|---|---|
committer | nik <nik@FreeBSD.org> | 2001-02-11 19:28:36 +0000 |
commit | 9fc53ff195fef18d86d12b3dd65d5b839c5a7afe (patch) | |
tree | d0e5b5bbea4ff1d5e0380e0d24f989f87391a2be /lib/libc/stdlib/memory.3 | |
parent | b05520c6aeeb91417e52b91bab93c22e1f3af764 (diff) | |
download | FreeBSD-src-9fc53ff195fef18d86d12b3dd65d5b839c5a7afe.zip FreeBSD-src-9fc53ff195fef18d86d12b3dd65d5b839c5a7afe.tar.gz |
Include mmap(2) in the list of memory allocation functions.
Reviewed by: hackers
Diffstat (limited to 'lib/libc/stdlib/memory.3')
-rw-r--r-- | lib/libc/stdlib/memory.3 | 12 |
1 files changed, 10 insertions, 2 deletions
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 <sys/types.h> +.Fd #include <sys/mman.h> +.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 . |