Deleted Added
full compact
msgctl.2 (195172) msgctl.2 (195656)
1.\" $NetBSD: msgctl.2,v 1.1 1995/10/16 23:49:15 jtc Exp $
2.\"
3.\" Copyright (c) 1995 Frank van der Linden
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 15 unchanged lines hidden (view full) ---

24.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31.\"
1.\" $NetBSD: msgctl.2,v 1.1 1995/10/16 23:49:15 jtc Exp $
2.\"
3.\" Copyright (c) 1995 Frank van der Linden
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 15 unchanged lines hidden (view full) ---

24.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31.\"
32.\" $FreeBSD: head/lib/libc/gen/msgctl.3 195172 2009-06-29 18:54:17Z kib $
32.\" $FreeBSD: head/lib/libc/sys/msgctl.2 195656 2009-07-13 12:53:43Z trasz $
33.\"/
33.\"/
34.Dd April 3, 2008
35.Dt MSGCTL 3
34.Dd July 9, 2009
35.Dt MSGCTL 2
36.Os
37.Sh NAME
38.Nm msgctl
39.Nd message control operations
40.Sh LIBRARY
41.Lb libc
42.Sh SYNOPSIS
43.In sys/types.h

--- 95 unchanged lines hidden (view full) ---

139with an effective uid equal to the
140.Va msg_perm.cuid
141or
142.Va msg_perm.uid
143values in the data structure associated with the queue can do this.
144.El
145.Pp
146The permission to read from or write to a message queue (see
36.Os
37.Sh NAME
38.Nm msgctl
39.Nd message control operations
40.Sh LIBRARY
41.Lb libc
42.Sh SYNOPSIS
43.In sys/types.h

--- 95 unchanged lines hidden (view full) ---

139with an effective uid equal to the
140.Va msg_perm.cuid
141or
142.Va msg_perm.uid
143values in the data structure associated with the queue can do this.
144.El
145.Pp
146The permission to read from or write to a message queue (see
147.Xr msgsnd 3
147.Xr msgsnd 2
148and
148and
149.Xr msgrcv 3 )
149.Xr msgrcv 2 )
150is determined by the
151.Va msg_perm.mode
152field in the same way as is
153done with files (see
154.Xr chmod 2 ) ,
155but the effective uid can match either the
156.Va msg_perm.cuid
157field or the

--- 39 unchanged lines hidden (view full) ---

197is not a valid command.
198.It Bq Er EFAULT
199The
200.Fa buf
201argument
202specifies an invalid address.
203.El
204.Sh SEE ALSO
150is determined by the
151.Va msg_perm.mode
152field in the same way as is
153done with files (see
154.Xr chmod 2 ) ,
155but the effective uid can match either the
156.Va msg_perm.cuid
157field or the

--- 39 unchanged lines hidden (view full) ---

197is not a valid command.
198.It Bq Er EFAULT
199The
200.Fa buf
201argument
202specifies an invalid address.
203.El
204.Sh SEE ALSO
205.Xr msgget 3 ,
206.Xr msgrcv 3 ,
207.Xr msgsnd 3
205.Xr msgget 2 ,
206.Xr msgrcv 2 ,
207.Xr msgsnd 2
208.Sh HISTORY
209Message queues appeared in the first release of
210.At V .
208.Sh HISTORY
209Message queues appeared in the first release of
210.At V .