summaryrefslogtreecommitdiffstats
path: root/posix-users
diff options
context:
space:
mode:
authorMarçal Comajoan Cara <mcomajoancara@gmail.com>2018-11-21 19:56:02 +0100
committerJoel Sherrill <joel@rtems.org>2018-11-21 13:07:02 -0600
commit083f3584d39b0189e444da1f4b51571ba1562756 (patch)
tree3010b8c4701730249a69b932549d02d7d15a90ee /posix-users
parent96064e839ac1fdb72a59ab3f727d15369aa3245d (diff)
downloadrtems-docs-083f3584d39b0189e444da1f4b51571ba1562756.tar.bz2
posix-users/memory_managment.rst: Add Prototypes
Add Prototypes to Memory Management APIs in POSIX Users Guide. This work was part of GCI 2018.
Diffstat (limited to 'posix-users')
-rw-r--r--posix-users/memory_managment.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/posix-users/memory_managment.rst b/posix-users/memory_managment.rst
index ec3e60c..fcfa192 100644
--- a/posix-users/memory_managment.rst
+++ b/posix-users/memory_managment.rst
@@ -63,7 +63,9 @@ mlockall - Lock the Address Space of a Process
.. code-block:: c
+ #include <sys/mman.h>
int mlockall(
+ int flags
);
**STATUS CODES:**
@@ -89,7 +91,9 @@ munlockall - Unlock the Address Space of a Process
.. code-block:: c
+ #include <sys/mman.h>
int munlockall(
+ void
);
**STATUS CODES:**
@@ -115,7 +119,10 @@ mlock - Lock a Range of the Process Address Space
.. code-block:: c
+ #include <sys/mman.h>
int mlock(
+ const void *addr,
+ size_t len
);
**STATUS CODES:**
@@ -141,7 +148,10 @@ munlock - Unlock a Range of the Process Address Space
.. code-block:: c
+ #include <sys/mman.h>
int munlock(
+ const void *addr,
+ size_t len
);
**STATUS CODES:**
@@ -167,6 +177,7 @@ mmap - Map Process Addresses to a Memory Object
.. code-block:: c
+ #include <sys/mman.h>
void *mmap(
void *addr,
size_t len,
@@ -251,6 +262,7 @@ munmap - Unmap Previously Mapped Addresses
.. code-block:: c
+ #include <sys/mman.h>
int munmap(
void *addr,
size_t len
@@ -290,7 +302,11 @@ mprotect - Change Memory Protection
.. code-block:: c
+ #include <sys/mman.h>
int mprotect(
+ void *addr,
+ size_t len,
+ int prot
);
**STATUS CODES:**
@@ -316,7 +332,11 @@ msync - Memory Object Synchronization
.. code-block:: c
+ #include <sys/mman.h>
int msync(
+ void *addr,
+ size_t len,
+ int flags
);
**STATUS CODES:**
@@ -342,6 +362,7 @@ shm_open - Open a Shared Memory Object
.. code-block:: c
+ #include <sys/mman.h>
int shm_open(
const char *name,
int oflag,
@@ -407,6 +428,7 @@ shm_unlink - Remove a Shared Memory Object
.. code-block:: c
+ #include <sys/mman.h>
int shm_unlink(
const char *name
);