Deleted Added
full compact
msgctl.2 (108030) msgctl.2 (108087)
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 108030 2002-12-18 10:13:54Z ru $
32.\" $FreeBSD: head/lib/libc/gen/msgctl.3 108087 2002-12-19 09:40:28Z ru $
33.\"/
34.Dd November 24, 1997
35.Dt MSGCTL 3
36.Os
37.Sh NAME
38.Nm msgctl
39.Nd message control operations
40.Sh LIBRARY

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

169.Rv -std msgctl
170.Sh ERRORS
171The
172.Fn msgctl
173function
174will fail if:
175.Bl -tag -width Er
176.It Bq Er EPERM
33.\"/
34.Dd November 24, 1997
35.Dt MSGCTL 3
36.Os
37.Sh NAME
38.Nm msgctl
39.Nd message control operations
40.Sh LIBRARY

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

169.Rv -std msgctl
170.Sh ERRORS
171The
172.Fn msgctl
173function
174will fail if:
175.Bl -tag -width Er
176.It Bq Er EPERM
177The
177.Fa cmd
178.Fa cmd
179argument
178is equal to IPC_SET or IPC_RMID and the caller is not the super-user, nor does
179the effective uid match either the
180.Va msg_perm.uid
181or
182.Va msg_perm.cuid
183fields of the data structure associated with the message queue.
184.Pp
185An attempt is made to increase the value of
186.Va msg_qbytes
187through IPC_SET
188but the caller is not the super-user.
189.It Bq Er EACCES
190The command is IPC_STAT
191and the caller has no read permission for this message queue.
192.It Bq Er EINVAL
180is equal to IPC_SET or IPC_RMID and the caller is not the super-user, nor does
181the effective uid match either the
182.Va msg_perm.uid
183or
184.Va msg_perm.cuid
185fields of the data structure associated with the message queue.
186.Pp
187An attempt is made to increase the value of
188.Va msg_qbytes
189through IPC_SET
190but the caller is not the super-user.
191.It Bq Er EACCES
192The command is IPC_STAT
193and the caller has no read permission for this message queue.
194.It Bq Er EINVAL
195The
193.Fa msqid
196.Fa msqid
197argument
194is not a valid message queue identifier.
195.Pp
196.Va cmd
197is not a valid command.
198.It Bq Er EFAULT
198is not a valid message queue identifier.
199.Pp
200.Va cmd
201is not a valid command.
202.It Bq Er EFAULT
203The
199.Fa buf
204.Fa buf
205argument
200specifies an invalid address.
201.El
202.Sh SEE ALSO
203.Xr msgget 3 ,
204.Xr msgrcv 3 ,
205.Xr msgsnd 3
206.Sh HISTORY
207Message queues appeared in the first release of
208.At V .
206specifies an invalid address.
207.El
208.Sh SEE ALSO
209.Xr msgget 3 ,
210.Xr msgrcv 3 ,
211.Xr msgsnd 3
212.Sh HISTORY
213Message queues appeared in the first release of
214.At V .