From 083f3584d39b0189e444da1f4b51571ba1562756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=A7al=20Comajoan=20Cara?= Date: Wed, 21 Nov 2018 19:56:02 +0100 Subject: posix-users/memory_managment.rst: Add Prototypes Add Prototypes to Memory Management APIs in POSIX Users Guide. This work was part of GCI 2018. --- posix-users/memory_managment.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 int mlockall( + int flags ); **STATUS CODES:** @@ -89,7 +91,9 @@ munlockall - Unlock the Address Space of a Process .. code-block:: c + #include int munlockall( + void ); **STATUS CODES:** @@ -115,7 +119,10 @@ mlock - Lock a Range of the Process Address Space .. code-block:: c + #include 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 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 void *mmap( void *addr, size_t len, @@ -251,6 +262,7 @@ munmap - Unmap Previously Mapped Addresses .. code-block:: c + #include int munmap( void *addr, size_t len @@ -290,7 +302,11 @@ mprotect - Change Memory Protection .. code-block:: c + #include int mprotect( + void *addr, + size_t len, + int prot ); **STATUS CODES:** @@ -316,7 +332,11 @@ msync - Memory Object Synchronization .. code-block:: c + #include 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 int shm_open( const char *name, int oflag, @@ -407,6 +428,7 @@ shm_unlink - Remove a Shared Memory Object .. code-block:: c + #include int shm_unlink( const char *name ); -- cgit v1.2.3