Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145645117
D14461.id39945.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D14461.id39945.diff
View Options
Index: head/lib/libc/sys/msgget.2
===================================================================
--- head/lib/libc/sys/msgget.2
+++ head/lib/libc/sys/msgget.2
@@ -31,7 +31,7 @@
.\" $FreeBSD$
.\"
.\"/
-.Dd July 9, 2009
+.Dd March 4, 2018
.Dt MSGGET 2
.Os
.Sh NAME
@@ -40,8 +40,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In sys/types.h
-.In sys/ipc.h
.In sys/msg.h
.Ft int
.Fn msgget "key_t key" "int msgflg"
@@ -83,7 +81,22 @@
.It
.Va msg_perm.mode
is set to the lower 9 bits of
-.Fa msgflg .
+.Fa msgflg
+which are set by ORing these constants:
+.Bl -tag -width 0000
+.It Dv 0400
+Read access for user.
+.It Dv 0200
+Write access for user.
+.It Dv 0040
+Read access for group.
+.It Dv 0020
+Write access for group.
+.It Dv 0004
+Read access for other.
+.It Dv 0002
+Write access for other.
+.El
.It
.Va msg_cbytes ,
.Va msg_qnum ,
Index: head/lib/libc/sys/semget.2
===================================================================
--- head/lib/libc/sys/semget.2
+++ head/lib/libc/sys/semget.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 7, 2016
+.Dd March 4, 2018
.Dt SEMGET 2
.Os
.Sh NAME
@@ -34,8 +34,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In sys/types.h
-.In sys/ipc.h
.In sys/sem.h
.Ft int
.Fn semget "key_t key" "int nsems" "int flag"
@@ -77,23 +75,22 @@
.\" Likewise for this section, except SHM_* becomes SEM_*.
.\"
.Pp
-The mode of a newly created IPC object is determined by
-.Em OR Ns 'ing
-the following constants into the
+The mode of a newly created IPC object is determined by ORing these constants
+into the
.Fa flag
argument:
-.Bl -tag -width XSEM_WXX6XXX
-.It Dv SEM_R
+.Bl -tag -width 0000
+.It Dv 0400
Read access for user.
-.It Dv SEM_A
+.It Dv 0200
Alter access for user.
-.It Dv ( SEM_R>>3 )
+.It Dv 0040
Read access for group.
-.It Dv ( SEM_A>>3 )
+.It Dv 0020
Alter access for group.
-.It Dv ( SEM_R>>6 )
+.It Dv 0004
Read access for other.
-.It Dv ( SEM_A>>6 )
+.It Dv 0002
Alter access for other.
.El
.Pp
Index: head/lib/libc/sys/shmget.2
===================================================================
--- head/lib/libc/sys/shmget.2
+++ head/lib/libc/sys/shmget.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 12, 2017
+.Dd March 4, 2018
.Dt SHMGET 2
.Os
.Sh NAME
@@ -34,9 +34,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In sys/types.h
-.In sys/stat.h
-.In sys/ipc.h
.In sys/shm.h
.Ft int
.Fn shmget "key_t key" "size_t size" "int flag"
@@ -75,22 +72,21 @@
.El
.Pp
The mode of a newly created IPC object is determined by
-.Em OR Ns 'ing
-the following constants into the
+which are set by ORing these constants into the
.Fa flag
argument:
-.Bl -tag -width XSHM_WXX6XXX
-.It Dv S_IRUSR
+.Bl -tag -width 0000
+.It Dv 0400
Read access for owner.
-.It Dv S_IWUSR
+.It Dv 0200
Write access for owner.
-.It Dv S_IRGRP
+.It Dv 0040
Read access for group.
-.It Dv S_IWGRP
+.It Dv 0020
Write access for group.
-.It Dv S_IROTH
+.It Dv 0004
Read access for other.
-.It Dv S_IWOTH
+.It Dv 0002
Write access for other.
.El
.\"
@@ -143,5 +139,4 @@
.Xr shmat 2 ,
.Xr shmctl 2 ,
.Xr shmdt 2 ,
-.Xr stat 2 ,
.Xr ftok 3
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 23, 2:24 PM (15 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28958688
Default Alt Text
D14461.id39945.diff (3 KB)
Attached To
Mode
D14461: Refer to SysV IPC permissions as numeric constants.
Attached
Detach File
Event Timeline
Log In to Comment