From owner-man-jp-reviewer@jp.FreeBSD.org Sun Jun  9 13:43:24 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g594hOi11719;
	Sun, 9 Jun 2002 13:43:24 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g594hNW11711
	for <man-jp-reviewer@jp.FreeBSD.org>; Sun, 9 Jun 2002 13:43:23 +0900 (JST)
	(envelope-from horikawa@jp.FreeBSD.org)
Received: from localhost ([12.252.32.143]) by rwcrmhc52.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020609044317.ZVLT2751.rwcrmhc52.attbi.com@localhost>
          for <man-jp-reviewer@jp.FreeBSD.org>;
          Sun, 9 Jun 2002 04:43:17 +0000
Date: Sat, 08 Jun 2002 22:43:15 -0600 (MDT)
Message-Id: <20020608.224315.18313445.horikawa@attbi.com>
To: man-jp-reviewer@jp.FreeBSD.org
From: Kazuo Horikawa <horikawa@jp.FreeBSD.org>
X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Sat_Jun__8_22:43:15_2002_256)--"
Content-Transfer-Encoding: 7bit
Reply-To: man-jp-reviewer@jp.FreeBSD.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020417
X-Sequence: man-jp-reviewer 4178
Subject: [man-jp-reviewer 4178] (man3) msg*.3
Errors-To: owner-man-jp-reviewer@jp.FreeBSD.org
Sender: owner-man-jp-reviewer@jp.FreeBSD.org
X-Originator: horikawa@jp.FreeBSD.org

----Next_Part(Sat_Jun__8_22:43:15_2002_256)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

msg*.3 $B$r(B RELENG_4 $B$N:G?7$K99?7$7$^$7$?!#(B

$B86J8:9J,E,MQ0J30$K!"86J8$KB8:_$9$k$b$N$NLuJ8$GH4$1$F$$$?(B .El $B$rJd$$(B
$B$^$7$?!#(B
--
$BKY@nOBM:(B

----Next_Part(Sat_Jun__8_22:43:15_2002_256)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Content-Description: jdiff
Content-Disposition: inline; filename=jdiff

--- msgctl.3~	Sat Jun  8 20:48:13 2002
+++ msgctl.3	Sat Jun  8 20:54:00 2002
@@ -29,19 +29,21 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\"	$Id: msgctl.3,v 1.5 1997/11/23 17:58:36 bde Exp $
+.\" %FreeBSD: src/lib/libc/gen/msgctl.3,v 1.8.2.6 2001/12/14 18:33:51 ru Exp %
 .\"/
 .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/msgctl.3,v 1.4 2002/05/18 07:12:55 horikawa Exp $
 .Dd November 24, 1997
 .Dt MSGCTL 3
-.Os FreeBSD
+.Os
 .Sh $BL>>N(B
 .Nm msgctl
 .Nd $B%a%C%;!<%8@)8f%*%Z%l!<%7%g%s(B
+.Sh $B%i%$%V%i%j(B
+.Lb libc
 .Sh $B=q<0(B
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgctl "int msqid" "int cmd" "struct msqid_ds *buf"
 .Sh $B2r@b(B
@@ -49,7 +51,7 @@
 $B%7%9%F%`%3!<%k$O!"(B
 .Fa msqid
 $B$,;XDj$9$k%a%C%;!<%8%-%e!<$KBP$7$F@)8f%*%Z%l!<%7%g%s$r<B9T$7$^$9!#(B
-
+.Pp
 $B3F%a%C%;!<%8%-%e!<$K$O!"$=$l$K4XO"$7$?%G!<%?9=B$BN$,$"$j$^$9!#(B
 $B$=$N0lIt$O(B
 .Fn msgctl
@@ -79,13 +81,9 @@
     };
 .Ed
 .Pp
-.Bf -literal
-shmid_ds
-.Ef
+.Vt shmid_ds
 $B9=B$BN$NCf$G;HMQ$5$l$k(B
-.Bf -literal
-ipc_perm
-.Ef
+.Vt ipc_perm
 $B9=B$BN$O!"(B
 .Aq Pa sys/ipc.h
 $B$G0J2<$N$h$&$KDj5A$5$l$F$$$^$9!#(B
@@ -148,7 +146,7 @@
 .Va msg_perm.uid
 $B$NCM$,!"<B8z%f!<%6(B ID $B$KEy$7$$%W%m%;%9$N$_$,!"$3$l$r<B9T$G$-$^$9!#(B
 .El
-
+.Pp
 $B%a%C%;!<%8%-%e!<$+$i$NFI9~$_8"$+%a%C%;!<%8%-%e!<$X$N=q9~$_8"(B (
 .Xr msgsnd 3
 $B$H(B
@@ -167,10 +165,7 @@
 .Va msg_perm.gid
 $B$H0lCW$7$^$9!#(B
 .Sh $BLa$jCM(B
-$BLdBj$J$/=*N;$9$k$H(B 0 $B$,La$5$l$^$9!#LdBj$J$/=*N;$7$J$$$H(B -1 $B$,La$5$l!"(B
-$B%0%m!<%P%kJQ?t(B
-.Va errno
-$B$,$=$N%(%i!<$r<($9$h$&$K@_Dj$5$l$^$9!#(B
+.Rv -std msgctl
 .Sh $B%(%i!<(B
 .Fn msgctl
 $B$O!"0J2<$N$h$&$J>l9g$K%(%i!<$H$J$j$^$9!#(B
@@ -183,7 +178,7 @@
 $B%U%#!<%k%I$+(B
 .Va msg_perm.cuid
 $B%U%#!<%k%I$H0lCW$7$J$$>l9g!#(B
-
+.Pp
 IPC_SET $B$rMQ$$$F(B
 .Va msg_qbytes
 $B$NCM$r>e$2$h$&$H$7$?$,!"8F=P$7B&$,%9!<%Q%f!<%6$G$J$$>l9g!#(B
@@ -193,7 +188,7 @@
 .It Bq Er EINVAL
 .Fa msqid
 $B$,@5$7$$%a%C%;!<%8%-%e!<(B ID $B$G$J$$>l9g!#(B
-
+.Pp
 .Va cmd
 $B$,@5$7$$%3%^%s%I$G$J$$>l9g!#(B
 .It Bq Er EFAULT
@@ -206,6 +201,6 @@
 .Xr msgsnd 3
 .Sh $BNr;K(B
 $B%a%C%;!<%8%-%e!<$O!"(B
-AT&T Unix System V
+.At V
 $B$N:G=i$N%j%j!<%9$KDI2C$5$l$^$7$?!#(B
 .\"kuma 1999-11-12
--- msgget.3~	Sat Jun  8 20:48:13 2002
+++ msgget.3	Sat Jun  8 21:06:19 2002
@@ -1,4 +1,4 @@
-.\"	$NetBSD: msgget.2,v 1.1 1995/10/16 23:49:19 jtc Exp $	
+.\"	$NetBSD: msgget.2,v 1.1 1995/10/16 23:49:19 jtc Exp $
 .\"
 .\" Copyright (c) 1995 Frank van der Linden
 .\" All rights reserved.
@@ -28,18 +28,22 @@
 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\" %FreeBSD: src/lib/libc/gen/msgget.3,v 1.7.2.4 2001/12/14 18:33:51 ru Exp %
+.\"
 .\"/
 .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/msgget.3,v 1.4 2002/05/18 07:12:55 horikawa Exp $
 .Dd August 17, 1995
 .Dt MSGGET 3
-.Os FreeBSD
+.Os
 .Sh $BL>>N(B
 .Nm msgget
 .Nd $B%a%C%;!<%8%-%e!<$N<hF@(B
+.Sh $B%i%$%V%i%j(B
+.Lb libc
 .Sh $B=q<0(B
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgget "key_t key" "int msgflg"
 .Sh $B2r@b(B
@@ -98,6 +102,7 @@
 .It
 .Va msg_ctime
 $B$O!"8=:_$N;~9o$K@_Dj$5$l$^$9!#(B
+.El
 .Sh $BLa$jCM(B
 $BLdBj$J$/=*N;$9$k$H!"@5$N%a%C%;!<%8%-%e!<(B ID $B$,La$5$l$^$9!#LdBj$J$/(B
 $B=*N;$7$J$$$H(B -1 $B$,La$5$l!"%0%m!<%P%kJQ?t(B
@@ -128,6 +133,7 @@
 $B$,@_Dj$5$l$F$$$J$$>u67$G!"(B
 .Fa key
 $B$K4XO"$9$k%a%C%;!<%8%-%e!<$,8+$D$+$j$^$;$s!#(B
+.El
 .Sh $B4XO"9`L\(B
 .Xr msgctl 3 ,
 .Xr msgrcv 3 ,
@@ -135,6 +141,6 @@
 .Pp
 .Sh $BNr;K(B
 $B%a%C%;!<%8%-%e!<$O!"(B
-AT&T Unix System V
+.At V
 $B$N:G=i$N%j%j!<%9$KDI2C$5$l$^$7$?!#(B
 .\"kuma 1999-11-12
--- msgrcv.3~	Sat Jun  8 20:48:13 2002
+++ msgrcv.3	Sat Jun  8 21:04:13 2002
@@ -1,4 +1,4 @@
-.\"	$NetBSD: msgrcv.2,v 1.1 1995/10/16 23:49:20 jtc Exp $	
+.\"	$NetBSD: msgrcv.2,v 1.1 1995/10/16 23:49:20 jtc Exp $
 .\"
 .\" Copyright (c) 1995 Frank van der Linden
 .\" All rights reserved.
@@ -28,20 +28,22 @@
 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"	$Id: msgrcv.3,v 1.5 1997/11/23 17:58:38 bde Exp $
+.\" %FreeBSD: src/lib/libc/gen/msgrcv.3,v 1.8.2.6 2001/12/14 18:33:51 ru Exp %
 .\"
 .\"/
 .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/msgrcv.3,v 1.4 2002/05/18 07:12:55 horikawa Exp $
 .Dd November 24, 1997
 .Dt MSGRCV 3
-.Os FreeBSD
+.Os
 .Sh $BL>>N(B
 .Nm msgrcv
 .Nd $B%a%C%;!<%8%-%e!<$+$i%a%C%;!<%8$r<u?.(B
+.Sh $B%i%$%V%i%j(B
+.Lb libc
 .Sh $B=q<0(B
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgrcv "int msqid" "void *msgp" "size_t msgsz" "long msgtyp" "int msgflg"
 .Sh $B2r@b(B
@@ -193,6 +195,7 @@
 $B$G(B
 .Dv IPC_NOWAIT
 $B$,@_Dj$5$l$F$$$k>l9g!#(B
+.El
 .Sh $B4XO"9`L\(B
 .Xr msgctl 3 ,
 .Xr msgget 3 ,
@@ -200,7 +203,7 @@
 .Sh $B%P%0(B
 .Tn NetBSD
 $B$H(B
-.Tn FreeBSD
+.Fx
 $B$G$O!"%a%C%;!<%8%-%e!<$,:o=|$5$l$?>l9g$K;HMQ$9$Y$-%(%i!<CM(B
 .Er EIDRM
 $B$,Dj5A$5$l$F$$$^$;$s!#$^$?!"MxMQ2DG=$J%a%C%;!<%8$,$J$$>uBV$G(B
--- msgsnd.3~	Sat Jun  8 20:48:13 2002
+++ msgsnd.3	Sat Jun  8 21:03:45 2002
@@ -1,4 +1,4 @@
-.\"	$NetBSD: msgsnd.2,v 1.1 1995/10/16 23:49:24 jtc Exp $	
+.\"	$NetBSD: msgsnd.2,v 1.1 1995/10/16 23:49:24 jtc Exp $
 .\"
 .\" Copyright (c) 1995 Frank van der Linden
 .\" All rights reserved.
@@ -28,27 +28,29 @@
 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"	$Id: msgsnd.3,v 1.4 1997/11/23 17:58:40 bde Exp $
 .\"
-.\"/
+.\" %FreeBSD: src/lib/libc/gen/msgsnd.3,v 1.9.2.5 2001/12/14 18:33:51 ru Exp %
+.\"
 .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/msgsnd.3,v 1.4 2002/05/18 07:12:55 horikawa Exp $
 .Dd November 24, 1997
 .Dt MSGSND 3
-.Os FreeBSD
+.Os
 .Sh $BL>>N(B
 .Nm msgsnd
+.Sh $B%i%$%V%i%j(B
+.Lb libc
 .Nd $B%a%C%;!<%8%-%e!<$K%a%C%;!<%8$rAw?.(B
 .Sh $B=q<0(B
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgsnd "int msqid" "void *msgp" "size_t msgsz" "int msgflg"
 .Sh $B2r@b(B
 .Fn msgsnd
 $B4X?t$O!"(B
 .Fa msqid
-$B$G;XDj$5$l$F$$$k%a%C%;!<%8%-%e!<$+$i%a%C%;!<%8(B
+$B$G;XDj$5$l$F$$$k%a%C%;!<%8%-%e!<$X%a%C%;!<%8(B
 $B$rAw?.$7$^$9!#(B
 .Fa msgp
 $B$O!"%a%C%;!<%8$r4^$`9=B$BN$r;X$7$^$9!#$3$N9=B$BN$O!"(B
@@ -122,9 +124,7 @@
 $B$,8=:_$N;~9o$K@_Dj$5$l$^$9!#(B
 .El
 .Sh $BLa$jCM(B
-$BLdBj$J$/=*N;$9$k$H(B 0 $B$,La$5$l$^$9!#LdBj$,H/@8$9$k$H(B -1 $B$,La$5$l!"(B
-.Va errno
-$B$,$=$N%(%i!<$r<($9$h$&$K@_Dj$5$l$^$9!#(B
+.Rv -std msgsnd
 .Sh $B%(%i!<(B
 .Fn msgsnd
 $B$O!"0J2<$N$h$&$J>l9g$K%(%i!<$H$J$j$^$9!#(B
@@ -142,6 +142,9 @@
 $B$,(B 0 $B$h$j>.$5$$$+!"(B
 .Va msg_qbytes
 $B$h$jBg$-$$>l9g!#(B
+.Pp
+.Fa mtype
+$B$,(B 0 $B$h$jBg$-$/$J$$>l9g!#(B
 .It Bq Er EACCES
 $B8F=P$7%W%m%;%9$K%a%C%;!<%8%-%e!<$N=q9~$_8"$,$J$$>l9g!#(B
 .It Bq Er EAGAIN
@@ -155,10 +158,11 @@
 $B$,@5$7$$%"%I%l%9$r;X$7$F$$$J$$>l9g!#(B
 .It Bq Er EINTR
 $B%7%9%F%`%3!<%k$,!"%7%0%J%k$NG[Aw$K$h$C$F3d$j9~$^$l$?>l9g!#(B
+.El
 .Sh $B%P%0(B
-.Tn NetBSD
+.Nx
 $B$H(B
-.Tn FreeBSD
+.Fx
 $B$O!"%a%C%;!<%8%-%e!<$,:o=|$5$l$?>l9g$K;HMQ$9$Y$-%(%i!<CM(B
 .Er EIDRM
 $B$rDj5A$7$F$$$^$;$s!#(B

----Next_Part(Sat_Jun__8_22:43:15_2002_256)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: ediff
Content-Disposition: inline; filename=ediff

===================================================================
RCS file: /home/ncvs/src/lib/libc/gen/msgctl.3,v
retrieving revision 1.5
retrieving revision 1.8.2.6
diff -u -p -r1.5 -r1.8.2.6
--- src/lib/libc/gen/msgctl.3	1997/11/23 17:58:36	1.5
+++ src/lib/libc/gen/msgctl.3	2001/12/14 18:33:51	1.8.2.6
@@ -1,4 +1,4 @@
-.\"	$NetBSD: msgctl.2,v 1.1 1995/10/16 23:49:15 jtc Exp $	
+.\"	$NetBSD: msgctl.2,v 1.1 1995/10/16 23:49:15 jtc Exp $
 .\"
 .\" Copyright (c) 1995 Frank van der Linden
 .\" All rights reserved.
@@ -29,18 +29,20 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\"	$Id$
+.\" $FreeBSD: /home/ncvs/src/lib/libc/gen/msgctl.3,v 1.8.2.6 2001/12/14 18:33:51 ru Exp $
 .\"/
 .Dd November 24, 1997
 .Dt MSGCTL 3
-.Os FreeBSD
+.Os
 .Sh NAME
 .Nm msgctl
 .Nd message control operations
+.Sh LIBRARY
+.Lb libc
 .Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgctl "int msqid" "int cmd" "struct msqid_ds *buf"
 .Sh DESCRIPTION
@@ -49,7 +51,7 @@ The
 system call performs some control operations on the message queue specified
 by
 .Fa msqid .
-
+.Pp
 Each message queue has a data structure associated with it, parts of which
 may be altered by
 .Fn msgctl
@@ -79,13 +81,9 @@ struct msqid_ds {
 .Ed
 .Pp
 The
-.Bf -literal
-ipc_perm
-.Ef
+.Vt ipc_perm
 structure used inside the
-.Bf -literal
-shmid_ds
-.Ef
+.Vt shmid_ds
 structure is defined in
 .Aq Pa sys/ipc.h
 and looks like this:
@@ -124,30 +122,31 @@ The values are taken from the correspond
 pointed to by
 .Fa buf .
 This operation can only be executed by the super-user, or a process that
-has an effective user id equal to either 
+has an effective user id equal to either
 .Va msg_perm.cuid
 or
 .Va msg_perm.uid
 in the data structure associated with the message queue.
 The value of
 .Va msg_qbytes
-can only be increased by the super-user. Values for
+can only be increased by the super-user.
+Values for
 .Va msg_qbytes
 that exceed the system limit (MSGMNB from
 .Aq Pa sys/msg.h )
 are silently truncated to that limit.
-
 .It Dv IPC_RMID
 Remove the message queue specified by
 .Fa msqid
-and destroy the data associated with it. Only the super-user or a process
-with an effective uid equal to the 
+and destroy the data associated with it.
+Only the super-user or a process
+with an effective uid equal to the
 .Va msg_perm.cuid
 or
 .Va msg_perm.uid
 values in the data structure associated with the queue can do this.
 .El
-
+.Pp
 The permission to read from or write to a message queue (see
 .Xr msgsnd 3
 and
@@ -156,7 +155,7 @@ is determined by the
 .Va msg_perm.mode
 field in the same way as is
 done with files (see
-.Xr chmod 2 ),
+.Xr chmod 2 ) ,
 but the effective uid can match either the
 .Va msg_perm.cuid
 field or the
@@ -167,10 +166,7 @@ effective gid can match either
 or
 .Va msg_perm.gid .
 .Sh RETURN VALUES
-Upon successful completion, a value of 0 is returned. Otherwise, -1 is
-returned and the global variable
-.Va errno
-is set to indicate the error.
+.Rv -std msgctl
 .Sh ERRORS
 .Fn msgctl
 will fail if:
@@ -183,7 +179,7 @@ the effective uid match either the
 or
 .Va msg_perm.cuid
 fields of the data structure associated with the message queue.
-
+.Pp
 An attempt is made to increase the value of
 .Va msg_qbytes
 through IPC_SET
@@ -194,7 +190,7 @@ and the caller has no read permission fo
 .It Bq Er EINVAL
 .Fa msqid
 is not a valid message queue identifier.
-
+.Pp
 .Va cmd
 is not a valid command.
 .It Bq Er EFAULT
@@ -206,4 +202,5 @@ specifies an invalid address.
 .Xr msgrcv 3 ,
 .Xr msgsnd 3
 .Sh HISTORY
-Message queues appeared in the first release of AT&T Unix System V.
+Message queues appeared in the first release of
+.At V .
===================================================================
RCS file: /home/ncvs/src/lib/libc/gen/msgget.3,v
retrieving revision 1.3
retrieving revision 1.7.2.4
diff -u -p -r1.3 -r1.7.2.4
--- src/lib/libc/gen/msgget.3	1997/03/21 20:46:29	1.3
+++ src/lib/libc/gen/msgget.3	2001/12/14 18:33:51	1.7.2.4
@@ -1,4 +1,4 @@
-.\"	$NetBSD: msgget.2,v 1.1 1995/10/16 23:49:19 jtc Exp $	
+.\"	$NetBSD: msgget.2,v 1.1 1995/10/16 23:49:19 jtc Exp $
 .\"
 .\" Copyright (c) 1995 Frank van der Linden
 .\" All rights reserved.
@@ -28,17 +28,21 @@
 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\" $FreeBSD: /home/ncvs/src/lib/libc/gen/msgget.3,v 1.7.2.4 2001/12/14 18:33:51 ru Exp $
+.\"
 .\"/
 .Dd August 17, 1995
 .Dt MSGGET 3
-.Os FreeBSD
+.Os
 .Sh NAME
 .Nm msgget
 .Nd get message queue
+.Sh LIBRARY
+.Lb libc
 .Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgget "key_t key" "int msgflg"
 .Sh DESCRIPTION
@@ -56,7 +60,7 @@ or
 does not have a message queue identifier associated with it, and the
 .Dv IPC_CREAT
 bit is set in
-.Fa msgflg.
+.Fa msgflg .
 .Pp
 If a new message queue is created, the data structure associated with it (the
 .Va msqid_ds
@@ -64,7 +68,7 @@ structure, see
 .Xr msgctl 3 )
 is initialized as follows:
 .Bl -bullet
-.It 
+.It
 .Va msg_perm.cuid
 and
 .Va msg_perm.uid
@@ -84,7 +88,7 @@ is set to the lower 9 bits of
 .Va msg_lspid ,
 .Va msg_lrpid ,
 .Va msg_rtime ,
-and 
+and
 .Va msg_stime
 are set to 0.
 .It
@@ -102,7 +106,7 @@ Otherwise, -1 is returned and the global
 is set to indicate the error.
 .Sh ERRORS
 .Bl -tag -width Er
-.It Bq Er EACESS
+.It Bq Er EACCES
 A message queue is already associated with
 .Fa key
 and the caller has no permission to access it.
@@ -131,4 +135,5 @@ was found.
 .Xr msgrcv 3 ,
 .Xr msgsnd 3
 .Sh HISTORY
-Message queues appeared in the first release of AT&T Unix System V.
+Message queues appeared in the first release of
+.At V .
===================================================================
RCS file: /home/ncvs/src/lib/libc/gen/msgrcv.3,v
retrieving revision 1.5
retrieving revision 1.8.2.6
diff -u -p -r1.5 -r1.8.2.6
--- src/lib/libc/gen/msgrcv.3	1997/11/23 17:58:38	1.5
+++ src/lib/libc/gen/msgrcv.3	2001/12/14 18:33:51	1.8.2.6
@@ -1,4 +1,4 @@
-.\"	$NetBSD: msgrcv.2,v 1.1 1995/10/16 23:49:20 jtc Exp $	
+.\"	$NetBSD: msgrcv.2,v 1.1 1995/10/16 23:49:20 jtc Exp $
 .\"
 .\" Copyright (c) 1995 Frank van der Linden
 .\" All rights reserved.
@@ -28,23 +28,25 @@
 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"	$Id$
+.\" $FreeBSD: /home/ncvs/src/lib/libc/gen/msgrcv.3,v 1.8.2.6 2001/12/14 18:33:51 ru Exp $
 .\"
 .\"/
 .Dd November 24, 1997
 .Dt MSGRCV 3
-.Os FreeBSD
+.Os
 .Sh NAME
 .Nm msgrcv
 .Nd receive a message from a message queue
+.Sh LIBRARY
+.Lb libc
 .Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgrcv "int msqid" "void *msgp" "size_t msgsz" "long msgtyp" "int msgflg"
 .Sh DESCRIPTION
-The 
+The
 .Fn msgrcv
 function receives a message from the message queue specified in
 .Fa msqid ,
@@ -83,7 +85,8 @@ will be received.
 .El
 .Pp
 .Fa msgsz
-specifies the maximum length of the requested message. If the received
+specifies the maximum length of the requested message.
+If the received
 message has a length greater than
 .Fa msgsz
 it will be silently truncated if the
@@ -100,7 +103,8 @@ depends on whether the
 .Dv IPC_NOWAIT
 flag is set in
 .Fa msgflg
-or not. If
+or not.
+If
 .Dv IPC_NOWAIT
 is set,
 .Fn msgrcv
@@ -143,6 +147,7 @@ is set to the current time.
 .It
 .Va msg_qnum
 is decremented by 1.
+.El
 .Sh RETURN VALUES
 Upon successful completion,
 .Fn msgrcv
@@ -187,6 +192,7 @@ and
 .Dv IPC_NOWAIT
 is set in
 .Fa msgflg .
+.El
 .Sh SEE ALSO
 .Xr msgctl 3 ,
 .Xr msgget 3 ,
@@ -194,7 +200,7 @@ is set in
 .Sh BUGS
 .Tn NetBSD
 and
-.Tn FreeBSD
+.Fx
 do not define the
 .Er EIDRM
 error value, which should be used in
@@ -206,4 +212,4 @@ should be used when no suitable message 
 is set.
 .Sh HISTORY
 Message queues appeared in the first release of
-AT&T Unix System V.
+.At V .
===================================================================
RCS file: /home/ncvs/src/lib/libc/gen/msgsnd.3,v
retrieving revision 1.4
retrieving revision 1.9.2.5
diff -u -p -r1.4 -r1.9.2.5
--- src/lib/libc/gen/msgsnd.3	1997/11/23 17:58:40	1.4
+++ src/lib/libc/gen/msgsnd.3	2001/12/14 18:33:51	1.9.2.5
@@ -1,4 +1,4 @@
-.\"	$NetBSD: msgsnd.2,v 1.1 1995/10/16 23:49:24 jtc Exp $	
+.\"	$NetBSD: msgsnd.2,v 1.1 1995/10/16 23:49:24 jtc Exp $
 .\"
 .\" Copyright (c) 1995 Frank van der Linden
 .\" All rights reserved.
@@ -28,28 +28,31 @@
 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"	$Id$
 .\"
-.\"/
+.\" $FreeBSD: /home/ncvs/src/lib/libc/gen/msgsnd.3,v 1.9.2.5 2001/12/14 18:33:51 ru Exp $
+.\"
 .Dd November 24, 1997
 .Dt MSGSND 3
-.Os FreeBSD
+.Os
 .Sh NAME
 .Nm msgsnd
 .Nd send a message to a message queue
+.Sh LIBRARY
+.Lb libc
 .Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/ipc.h>
-.Fd #include <sys/msg.h>
+.In sys/types.h
+.In sys/ipc.h
+.In sys/msg.h
 .Ft int
 .Fn msgsnd "int msqid" "void *msgp" "size_t msgsz" "int msgflg"
 .Sh DESCRIPTION
-The 
+The
 .Fn msgsnd
-function sends a message from the message queue specified in
+function sends a message to the message queue specified in
 .Fa msqid .
 .Fa msgp
-points to a structure containing the message. This structure should
+points to a structure containing the message.
+This structure should
 consist of the following members:
 .Bd -literal
     long mtype;    /* message type */
@@ -59,7 +62,7 @@ consist of the following members:
 .Va mtype
 is an integer greater than 0 that can be used for selecting messages (see
 .Xr msgrcv 3 ) ,
-.Va mtext 
+.Va mtext
 is an array of bytes, with a size up to that of the system limit
 .Pf ( Dv MSGMAX ) .
 .Pp
@@ -78,7 +81,8 @@ If
 .Fa msgflg
 has
 .Dv IPC_NOWAIT
-mask set in it, the call will return immediately. If
+mask set in it, the call will return immediately.
+If
 .Fa msgflg
 does not have
 .Dv IPC_NOWAIT
@@ -93,7 +97,8 @@ The message queue is removed, in which c
 is set to
 .Er EINVAL .
 .It
-The caller catches a signal. The call returns with
+The caller catches a signal.
+The call returns with
 .Va errno
 set to
 .Er EINTR .
@@ -116,9 +121,7 @@ is set to the pid of the calling process
 is set to the current time.
 .El
 .Sh RETURN VALUES
-Upon successful completion, 0 is returned. Otherwise, -1 is returned and
-.Va errno
-is set to indicate the error.
+.Rv -std msgsnd
 .Sh ERRORS
 .Fn msgsnd
 will fail if:
@@ -135,6 +138,9 @@ message.
 .Fa msgsz
 is less than 0, or greater than
 .Va msg_qbytes .
+.Pp
+.Fa mtype
+is not greater than 0.
 .It Bq Er EACCES
 The calling process does not have write access to the message queue.
 .It Bq Er EAGAIN
@@ -150,9 +156,9 @@ points to an invalid address.
 The system call was interrupted by the delivery of a signal.
 .El
 .Sh BUGS
-.Tn NetBSD
+.Nx
 and
-.Tn FreeBSD
+.Fx
 do not define the
 .Er EIDRM
 error value, which should be used

----Next_Part(Sat_Jun__8_22:43:15_2002_256)----
