OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / mq_send.3
index 5595c52..452eb79 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH MQ_SEND 3 2010-09-20 "Linux" "Linux Programmer's Manual"
+.TH MQ_SEND 3 2014-06-03 "Linux" "Linux Programmer's Manual"
 .SH NAME
 mq_send, mq_timedsend \- send a message to a message queue
 .SH SYNOPSIS
@@ -31,13 +31,13 @@ mq_send, mq_timedsend \- send a message to a message queue
 .B #include <mqueue.h>
 .sp
 .BI "int mq_send(mqd_t " mqdes ", const 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 "int mq_timedsend(mqd_t " mqdes ", const 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
@@ -158,6 +158,13 @@ attribute of the message queue.
 .TP
 .B ETIMEDOUT
 The call timed out before a message could be transferred.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR mq_send ()
+and
+.BR mq_timedsend ()
+functions are thread-safe.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
@@ -175,3 +182,12 @@ 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.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.