.\" 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
.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
.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)).
.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/.