Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Clarify msgsz.
details: https://anonhg.NetBSD.org/src/rev/0a7444477f2f
branches: trunk
changeset: 788853:0a7444477f2f
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Jul 24 11:42:50 2013 +0000
description:
Clarify msgsz.
diffstat:
lib/libc/sys/msgrcv.2 | 6 ++++--
lib/libc/sys/msgsnd.2 | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r 98a232f75b8f -r 0a7444477f2f lib/libc/sys/msgrcv.2
--- a/lib/libc/sys/msgrcv.2 Wed Jul 24 09:05:53 2013 +0000
+++ b/lib/libc/sys/msgrcv.2 Wed Jul 24 11:42:50 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: msgrcv.2,v 1.20 2012/05/15 11:37:01 reinoud Exp $
+.\" $NetBSD: msgrcv.2,v 1.21 2013/07/24 11:42:50 skrll Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
.\" All rights reserved.
@@ -90,8 +90,10 @@
will be received.
.El
.Pp
+The argument
.Fa msgsz
-specifies the maximum length of the requested message.
+specifies the size in bytes of
+.Va mtext .
If the received message has a length greater than
.Fa msgsz
it will be silently truncated if the
diff -r 98a232f75b8f -r 0a7444477f2f lib/libc/sys/msgsnd.2
--- a/lib/libc/sys/msgsnd.2 Wed Jul 24 09:05:53 2013 +0000
+++ b/lib/libc/sys/msgsnd.2 Wed Jul 24 11:42:50 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: msgsnd.2,v 1.18 2010/04/30 04:06:20 jruoho Exp $
+.\" $NetBSD: msgsnd.2,v 1.19 2013/07/24 11:42:50 skrll Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
.\" All rights reserved.
@@ -69,7 +69,9 @@
.Xr msgrcv 2 ) .
The
.Va mtext
-field is an array of bytes, with size up to the system limit
+field is an array of bytes of length
+.Fa msgsz ,
+with size up to the system limit
.Dv MSGMAX .
.Pp
If the number of bytes already on the message queue plus
Home |
Main Index |
Thread Index |
Old Index