summaryrefslogtreecommitdiff
path: root/doc/ux-mmap.rst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-02-10 15:27:06 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-02-10 15:27:06 +0100
commit7501bff8432444b7ae8e7f3d9289c0d61f3f0b64 (patch)
treebd53603f464c3747e897a8996158a0fef7b41bc3 /doc/ux-mmap.rst
parent0f124df68d87c9073f76efeff1a901a69b1f3e13 (diff)
parent9e9336185f86bd97ff22f54e4d561c2cccccecf5 (diff)
Merge branch 'release/debian/4.10-1'debian/4.10-1
Diffstat (limited to 'doc/ux-mmap.rst')
-rw-r--r--doc/ux-mmap.rst27
1 files changed, 27 insertions, 0 deletions
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 <libHX.h>
+
+ 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.