mmap-util.h revision e11a64ffc7f08b4cb05bcc27668d154d33d0c2e0
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch#if !defined (MREMAP_MAYMOVE) && !defined (HAVE_LINUX_MREMAP)
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschint my_madvise(void *start, size_t length, int advice);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschvoid *mmap_file(int fd, size_t *length, int prot);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch/* for allocating anonymous mmap()s, with portable mremap(). these must not
84a31ddebcf8c3aeaef7b9e54171a48ee1374c45Timo Sirainen be mixed with any standard mmap calls. */
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschvoid *mremap_anon(void *old_address, size_t old_size, size_t new_size,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch unsigned long flags);