This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.18-478-g416e014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  416e014536950a77183013fa4c86cb42dfd322a9 (commit)
      from  9d17796a97dd81fca8f9bdf7dd03b888c2233a37 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=416e014536950a77183013fa4c86cb42dfd322a9

commit 416e014536950a77183013fa4c86cb42dfd322a9
Author: OndÅ?ej Bílka <neleai@seznam.cz>
Date:   Mon Dec 2 23:32:42 2013 +0100

    Document shm_open.

diff --git a/ChangeLog b/ChangeLog
index f8339e4..de634b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-02  OndÅ?ej Bílka  <neleai@seznam.cz>
+
+	* manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
+
 2013-12-02  Steve Ellcey  <sellcey@mips.com>
 
 	* benchtests/Makefile (bench): Add sqrt.
diff --git a/manual/llio.texi b/manual/llio.texi
index dd0eaa3..b6c9260 100644
--- a/manual/llio.texi
+++ b/manual/llio.texi
@@ -1471,6 +1471,33 @@ There is no existing mapping in at least part of the given region.
 @end table
 @end deftypefun
 
+@comment sys/mman.h
+@comment POSIX
+@deftypefn Function int shm_open (const char *@var{name}, int @var{oflag}, mode_t @var{mode})
+
+This function returns a file descriptor that can be used to allocate shared
+memory via mmap. Unrelated processes can use same @var{name} to create or
+open existing shared memory objects.
+
+A @var{name} argument specifies the shared memory object to be opened.
+In @theglibc{} it must be a string smaller than @code{NAME_MAX} bytes starting
+with an optional slash but containing no other slashes.
+
+The semantics of @var{oflag} and @var{mode} arguments is same as in @code{open}.
+
+@code{shm_open} returns the file descriptor on success or @math{-1} on error.
+On failure @code{errno} is set.
+@end deftypefn
+
+@deftypefn Function int shm_unlink (const char *@var{name})
+
+This function is inverse of @code{shm_open} and removes the object with
+the given @var{name} previously created by @code{shm_open}.
+
+@code{shm_unlink} returns @math{0} on success or @math{-1} on error.
+On failure @code{errno} is set.
+@end deftypefn
+
 @node Waiting for I/O
 @section Waiting for Input or Output
 @cindex waiting for input or output

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |    4 ++++
 manual/llio.texi |   27 +++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]