diff options
author | brucec <brucec@FreeBSD.org> | 2010-12-17 21:10:08 +0000 |
---|---|---|
committer | brucec <brucec@FreeBSD.org> | 2010-12-17 21:10:08 +0000 |
commit | 308eeb2d645d334243a5576b1a884c1c6d3c47b6 (patch) | |
tree | 9b172751323f80fd16e48389c8949f72e32ff842 /lib/libc/sys/shmget.2 | |
parent | 34b3952bddf23043b6c6c67cc355eaa6ca2e50ee (diff) | |
download | FreeBSD-src-308eeb2d645d334243a5576b1a884c1c6d3c47b6.zip FreeBSD-src-308eeb2d645d334243a5576b1a884c1c6d3c47b6.tar.gz |
Update shmget(2) with POSIX access permissions and remove non-standard SHM_R,
SHM_W and machine/param.h.
Diffstat (limited to 'lib/libc/sys/shmget.2')
-rw-r--r-- | lib/libc/sys/shmget.2 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/sys/shmget.2 b/lib/libc/sys/shmget.2 index e7fd6d1..4d0391d 100644 --- a/lib/libc/sys/shmget.2 +++ b/lib/libc/sys/shmget.2 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 3, 1995 +.Dd December 17, 2010 .Dt SHMGET 2 .Os .Sh NAME @@ -34,7 +34,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In machine/param.h .In sys/types.h .In sys/ipc.h .In sys/shm.h @@ -80,17 +79,17 @@ the following constants into the .Fa flag argument: .Bl -tag -width XSHM_WXX6XXX -.It Dv SHM_R -Read access for user. -.It Dv SHM_W -Write access for user. -.It Dv ( SHM_R>>3 ) +.It Dv S_IRUSR +Read access for owner. +.It Dv S_IWUSR +Write access for owner. +.It Dv S_IRGRP Read access for group. -.It Dv ( SHM_W>>3 ) +.It Dv S_IWGRP Write access for group. -.It Dv ( SHM_R>>6 ) +.It Dv S_IROTH Read access for other. -.It Dv ( SHM_W>>6 ) +.It Dv S_IWOTH Write access for other. .El .\" @@ -143,4 +142,5 @@ already exists. .Xr shmat 2 , .Xr shmctl 2 , .Xr shmdt 2 , -.Xr ftok 3 +.Xr ftok 3 , +.Xr stat 2 |