1 --- memory.3 2003-05-20 15:23:25.000000000 -0700
2 +++ memory.3.edit 2006-07-13 09:26:29.000000000 -0700
18 .Nd general memory allocation operations
24 -.Fn malloc "size_t size"
31 -.Fn realloc "void *ptr" "size_t size"
41 -.Fn calloc "size_t nelem" "size_t elsize"
46 -.Fn alloca "size_t size"
54 -.Fn mmap "void * addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset"
64 These functions allocate and free memory for the calling process.
65 They are described in the
66 individual manual pages.
68 +.Fd #include <sys/types.h>
69 +.Fd #include <sys/mman.h>
84 +is needed for this function.
89 +set to EINVAL in places that historically succeeded.
90 +The rules have changed as follows:
95 +parameter must specify either MAP_PRIVATE or MAP_SHARED.
99 +parameter must not be 0.
103 +parameter must be a multiple of pagesize,
117 These functions, with the exception of