mmap-util.h revision 4ff6d11dc314dd2c88630f34850a6850b94e7095
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen#if !defined (MREMAP_MAYMOVE) && !defined (HAVE_LINUX_MREMAP)
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainenint my_madvise(void *start, size_t length, int advice);
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainenvoid *mmap_file(int fd, size_t *length, int prot);
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo Sirainen/* for allocating anonymous mmap()s, with portable mremap(). these must not
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo Sirainen be mixed with any standard mmap calls. */
f2de6ecc4424533633aea705f12d0f691d7ddf81Timo Sirainenvoid *mremap_anon(void *old_address, size_t old_size, size_t new_size,
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen unsigned long flags);