Refer to SysV IPC permissions as numeric constants.
POSIX defines no macros for these permissions. Also remove unneeded headers from synopsis. PR: 225905 Reviewed by: wblock MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14461
This commit is contained in:
parent
e9e4ec118f
commit
b85a98949f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330409
@ -31,7 +31,7 @@
|
|||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.\"/
|
.\"/
|
||||||
.Dd July 9, 2009
|
.Dd March 4, 2018
|
||||||
.Dt MSGGET 2
|
.Dt MSGGET 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -40,8 +40,6 @@
|
|||||||
.Sh LIBRARY
|
.Sh LIBRARY
|
||||||
.Lb libc
|
.Lb libc
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In sys/types.h
|
|
||||||
.In sys/ipc.h
|
|
||||||
.In sys/msg.h
|
.In sys/msg.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn msgget "key_t key" "int msgflg"
|
.Fn msgget "key_t key" "int msgflg"
|
||||||
@ -83,7 +81,22 @@ are set to the effective gid of the calling process.
|
|||||||
.It
|
.It
|
||||||
.Va msg_perm.mode
|
.Va msg_perm.mode
|
||||||
is set to the lower 9 bits of
|
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
|
.It
|
||||||
.Va msg_cbytes ,
|
.Va msg_cbytes ,
|
||||||
.Va msg_qnum ,
|
.Va msg_qnum ,
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd February 7, 2016
|
.Dd March 4, 2018
|
||||||
.Dt SEMGET 2
|
.Dt SEMGET 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -34,8 +34,6 @@
|
|||||||
.Sh LIBRARY
|
.Sh LIBRARY
|
||||||
.Lb libc
|
.Lb libc
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In sys/types.h
|
|
||||||
.In sys/ipc.h
|
|
||||||
.In sys/sem.h
|
.In sys/sem.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn semget "key_t key" "int nsems" "int flag"
|
.Fn semget "key_t key" "int nsems" "int flag"
|
||||||
@ -77,23 +75,22 @@ may be used to generate a key from a pathname.
|
|||||||
.\" Likewise for this section, except SHM_* becomes SEM_*.
|
.\" Likewise for this section, except SHM_* becomes SEM_*.
|
||||||
.\"
|
.\"
|
||||||
.Pp
|
.Pp
|
||||||
The mode of a newly created IPC object is determined by
|
The mode of a newly created IPC object is determined by ORing these constants
|
||||||
.Em OR Ns 'ing
|
into the
|
||||||
the following constants into the
|
|
||||||
.Fa flag
|
.Fa flag
|
||||||
argument:
|
argument:
|
||||||
.Bl -tag -width XSEM_WXX6XXX
|
.Bl -tag -width 0000
|
||||||
.It Dv SEM_R
|
.It Dv 0400
|
||||||
Read access for user.
|
Read access for user.
|
||||||
.It Dv SEM_A
|
.It Dv 0200
|
||||||
Alter access for user.
|
Alter access for user.
|
||||||
.It Dv ( SEM_R>>3 )
|
.It Dv 0040
|
||||||
Read access for group.
|
Read access for group.
|
||||||
.It Dv ( SEM_A>>3 )
|
.It Dv 0020
|
||||||
Alter access for group.
|
Alter access for group.
|
||||||
.It Dv ( SEM_R>>6 )
|
.It Dv 0004
|
||||||
Read access for other.
|
Read access for other.
|
||||||
.It Dv ( SEM_A>>6 )
|
.It Dv 0002
|
||||||
Alter access for other.
|
Alter access for other.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd August 12, 2017
|
.Dd March 4, 2018
|
||||||
.Dt SHMGET 2
|
.Dt SHMGET 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -34,9 +34,6 @@
|
|||||||
.Sh LIBRARY
|
.Sh LIBRARY
|
||||||
.Lb libc
|
.Lb libc
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In sys/types.h
|
|
||||||
.In sys/stat.h
|
|
||||||
.In sys/ipc.h
|
|
||||||
.In sys/shm.h
|
.In sys/shm.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn shmget "key_t key" "size_t size" "int flag"
|
.Fn shmget "key_t key" "size_t size" "int flag"
|
||||||
@ -75,22 +72,21 @@ may be used to generate a key from a pathname.
|
|||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The mode of a newly created IPC object is determined by
|
The mode of a newly created IPC object is determined by
|
||||||
.Em OR Ns 'ing
|
which are set by ORing these constants into the
|
||||||
the following constants into the
|
|
||||||
.Fa flag
|
.Fa flag
|
||||||
argument:
|
argument:
|
||||||
.Bl -tag -width XSHM_WXX6XXX
|
.Bl -tag -width 0000
|
||||||
.It Dv S_IRUSR
|
.It Dv 0400
|
||||||
Read access for owner.
|
Read access for owner.
|
||||||
.It Dv S_IWUSR
|
.It Dv 0200
|
||||||
Write access for owner.
|
Write access for owner.
|
||||||
.It Dv S_IRGRP
|
.It Dv 0040
|
||||||
Read access for group.
|
Read access for group.
|
||||||
.It Dv S_IWGRP
|
.It Dv 0020
|
||||||
Write access for group.
|
Write access for group.
|
||||||
.It Dv S_IROTH
|
.It Dv 0004
|
||||||
Read access for other.
|
Read access for other.
|
||||||
.It Dv S_IWOTH
|
.It Dv 0002
|
||||||
Write access for other.
|
Write access for other.
|
||||||
.El
|
.El
|
||||||
.\"
|
.\"
|
||||||
@ -143,5 +139,4 @@ already exists.
|
|||||||
.Xr shmat 2 ,
|
.Xr shmat 2 ,
|
||||||
.Xr shmctl 2 ,
|
.Xr shmctl 2 ,
|
||||||
.Xr shmdt 2 ,
|
.Xr shmdt 2 ,
|
||||||
.Xr stat 2 ,
|
|
||||||
.Xr ftok 3
|
.Xr ftok 3
|
||||||
|
Loading…
Reference in New Issue
Block a user