OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / mq_receive.3
index 703120c..642bcf5 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH MQ_RECEIVE 3 2010-09-20 "Linux" "Linux Programmer's Manual"
+.TH MQ_RECEIVE 3 2014-01-18 "Linux" "Linux Programmer's Manual"
 .SH NAME
 mq_receive, mq_timedreceive \- receive a message from a message queue
 .SH SYNOPSIS
@@ -31,13 +31,13 @@ mq_receive, mq_timedreceive \- receive a message from a message queue
 .B #include <mqueue.h>
 .sp
 .BI "ssize_t mq_receive(mqd_t " mqdes ", char *" msg_ptr ,
-.BI "                   size_t " msg_len ", unsigned *" msg_prio );
+.BI "                   size_t " msg_len ", unsigned int *" msg_prio );
 .sp
 .B #include <time.h>
 .B #include <mqueue.h>
 .sp
 .BI "ssize_t mq_timedreceive(mqd_t " mqdes ", char *" msg_ptr ,
-.BI "                   size_t " msg_len ", unsigned *" msg_prio ,
+.BI "                   size_t " msg_len ", unsigned int *" msg_prio ,
 .BI "                   const struct timespec *" abs_timeout );
 .fi
 .sp
@@ -65,7 +65,7 @@ The
 .I msg_len
 argument specifies the size of the buffer pointed to by
 .IR msg_ptr ;
-this must be greater than the
+this must be greater than or equal to the
 .I mq_msgsize
 attribute of the queue (see
 .BR mq_getattr (3)).
@@ -170,3 +170,11 @@ is a library function layered on top of that system call.
 .BR mq_unlink (3),
 .BR mq_overview (7),
 .BR time (7)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.