|
xbmc
|
Provide a compatible anonymous space mapping function. More...
#include <stdio.h>#include <fcntl.h>#include <sys/mman.h>#include <unistd.h>
Functions | |
| void * | mmap_anon (void *addr, size_t len, int prot, int flags, off_t offset) |
| mmap() anonymous space, depending on the system's mmap() style. More... | |
Provide a compatible anonymous space mapping function.
| void* mmap_anon | ( | void * | addr, |
| size_t | len, | ||
| int | prot, | ||
| int | flags, | ||
| off_t | offset | ||
| ) |
mmap() anonymous space, depending on the system's mmap() style.
On systems that use the /dev/zero mapping idiom, zerofd will be set to the file descriptor of the opened /dev/zero.
| addr | address to map at. |
| len | number of bytes from addr to be mapped. |
| prot | protections (region accessibility). |
| flags | specifies the type of the mapped object. |
| offset | start mapping at byte offset. |
| zerofd |
1.8.13