.\" Translated 2006-04-23, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated 2008-11-09, Akihiro MOTOKI, LDP v3.13
.\"
-.TH MQ_SEND 3 2010-02-25 "Linux" "Linux Programmer's Manual"
+.TH MQ_SEND 3 2010-09-20 "Linux" "Linux Programmer's Manual"
.\"O .SH NAME
.SH ̾Á°
.\"O mq_send, mq_timedsend \- send a message to a message queue
.nf
.B #include <mqueue.h>
.sp
-.BI "mqd_t mq_send(mqd_t " mqdes ", const char *" msg_ptr ,
+.BI "int mq_send(mqd_t " mqdes ", const char *" msg_ptr ,
.BI " size_t " msg_len ", unsigned " msg_prio );
.sp
-.B #define _XOPEN_SOURCE 600
.B #include <time.h>
.B #include <mqueue.h>
.sp
-.BI "mqd_t mq_timedsend(mqd_t " mqdes ", const char *" msg_ptr ,
+.BI "int mq_timedsend(mqd_t " mqdes ", const char *" msg_ptr ,
.BI " size_t " msg_len ", unsigned " msg_prio ,
.BI " const struct timespec *" abs_timeout );
.fi
.sp
.\"O Link with \fI\-lrt\fP.
\fI\-lrt\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
+.sp
+.ad l
+.in -4n
+.\"O Feature Test Macro Requirements for glibc (see
+.\"O .BR feature_test_macros (7)):
+glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
+.RB ( feature_test_macros (7)
+»²¾È):
+.in
+.sp
+.BR mq_timedsend ():
+.RS 4
+_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
+.RE
+.ad
.\"O .SH DESCRIPTION
.SH ÀâÌÀ
.\"O .BR mq_send ()
.SH ¥¨¥é¡¼
.TP
.B EAGAIN
-.\"O The queue was empty, and the
+.\"O The queue was full, and the
.\"O .B O_NONBLOCK
.\"O flag was set for the message queue description referred to by
.\"O .IR mqdes .
-.\"O motoki: mq_send() ¤¬ block ¤¹¤ë¤Î¤Ï ¥¥å¡¼¤¬ full ¤Î¤È¤¡£
¥¥å¡¼¤¬°ìÇդǡ¢¤«¤Ä
.I mqdes
¤Ç»²¾È¤µ¤ì¤ë¥á¥Ã¥»¡¼¥¸¥¥å¡¼µ½Ò¤Ç