NAME mmap, munmap, mprotect, msync - map files into fast memory

SYNOPSIS
    #define _POSIX_MAPPED_FILES
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/mman.h>

    void *mmap(void *addr, size_t len, int prot, int flags,
			int fd, off_t off);
    int munmap(void *addr, size_t len);
    int mprotect(const void *addr, size_t len, int prot);

  OR
    #define _POSIX_MAPPED_FILES
    #define _POSIX_SYNCHRONIZED_IO
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/mman.h>

    int msync(const void *addr, size_t len, int flags);

DESCRIPTION
   Emulation of Posix mapping of files into fast memory.
   For supported flags and short descriptions see sys/mman.h.

IMPLEMENTATION
    Cf. the sources for details and current limitations.

CONFORMING TO:
    Posix.1b

AUTHORS & COPYRIGHT
    Holger Veith & Contributors to 4.4 BSD. Cf. source for details.