From: guenther Date: Tue, 5 May 2015 06:29:15 +0000 (+0000) Subject: Document that shm_open() accepts O_CLOEXEC and O_NOFOLLOW as extensions X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3d6f3198dcabce2f694bebbaf5426672a7a0b648;p=openbsd Document that shm_open() accepts O_CLOEXEC and O_NOFOLLOW as extensions ok miod@ --- diff --git a/lib/libc/gen/shm_open.3 b/lib/libc/gen/shm_open.3 index 1f3afa5d4f0..02e3c3aba65 100644 --- a/lib/libc/gen/shm_open.3 +++ b/lib/libc/gen/shm_open.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: shm_open.3,v 1.4 2014/07/08 00:40:56 matthew Exp $ +.\" $OpenBSD: shm_open.3,v 1.5 2015/05/05 06:29:15 guenther Exp $ .\" .\" Copyright (c) 2013 Ted Unangst .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 8 2014 $ +.Dd $Mdocdate: May 5 2015 $ .Dt SHM_OPEN 3 .Os .Sh NAME @@ -45,7 +45,7 @@ and must include at least or .Dv O_RDWR and may also include a combination of -.Dv O_CREAT , O_EXCL , +.Dv O_CREAT , O_EXCL , O_CLOEXEC , O_NOFOLLOW , or .Dv O_TRUNC . This implementation forces the @@ -81,6 +81,13 @@ and .Fn shm_unlink appear in .St -p1003.1-2001 . +Using +.Dv O_CLOEXEC +or +.Dv O_NOFOLLOW +with +.Fn shm_open +is an extension to that standard. This implementation deviates from the standard by permitting less sharing. .Pp .Fn shm_mkstemp