From 532d4a24e2013262dfa41fd85c06a9715c99abf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 24 Oct 2022 21:03:42 +0200 Subject: New upstream version 4.7 --- doc/ux-mmap.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/ux-mmap.rst (limited to 'doc/ux-mmap.rst') diff --git a/doc/ux-mmap.rst b/doc/ux-mmap.rst new file mode 100644 index 0000000..c59421c --- /dev/null +++ b/doc/ux-mmap.rst @@ -0,0 +1,27 @@ +====================================== +ux-mmap - Unix compatibility functions +====================================== + +Date authored: 2006-02-25 + +Description +=========== + +libHX provides a Linux-style ``mmap()`` function for Win32. + +Synopsis +======== + +.. code-block:: c + + #include + + void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset); + +``mmap()`` + + See the Linux manual page ``mmap``(2) for details. Many flags described + in ``mmap``(2) do not work. What does work: ``PROT_NONE``, + ``PROT_READ``, ``PROT_WRITE``, ``PROT_EXEC`` (only WinXP SP2 or + WinServer2003 SP1 or up), ``MAP_SHARED`` and ``MAP_PRIVATE``. + ``MAP_SHARED`` is the default if no ``MAP_PRIVATE`` is given. -- cgit v1.2.3