OSDN Git Service

Update releases for LDP 3.68
[linuxjm/LDP_man-pages.git] / release / man3 / mq_notify.3
index 66c9730..91c9984 100644 (file)
@@ -1,8 +1,7 @@
 .\" t
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\"*******************************************************************
 .\"
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH MQ_NOTIFY 3 2010\-10\-04 Linux "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
+.\" Translated 2006-07-31, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2010-04-18, Akihiro MOTOKI, LDP v3.24
+.\" Updated 2010-10-27, Akihiro Motoki, LDP v3.29
+.\"
+.TH MQ_NOTIFY 3 2014\-04\-06 Linux "Linux Programmer's Manual"
 .SH 名前
 mq_notify \- メッセージ到着時に通知を行うよう登録する
 .SH 書式
@@ -107,8 +113,8 @@ POSIX.1\-2001.
 .SH 例
 以下のプログラムは、 コマンドライン引き数で指定された名前のメッセージキューへの 通知要求を登録し、通知はスレッドの作成によって行われる。
 そのスレッドは、そのキューからメッセージを一つ読み出してから、 プロセスを終了する関数を実行する。
+.SS プログラムのソース
 .nf
-
 #include <pthread.h>
 #include <mqueue.h>
 #include <stdio.h>
@@ -139,7 +145,7 @@ tfunc(union sigval sv)
     if (nr == \-1)
         handle_error("mq_receive");
 
-    printf("Read %ld bytes from MQ\en", (long) nr);
+    printf("Read %zd bytes from MQ\en", nr);
     free(buf);
     exit(EXIT_SUCCESS);         /* プロセスを終了する */
 }
@@ -151,8 +157,8 @@ main(int argc, char *argv[])
     struct sigevent sev;
 
     if (argc != 2) {
-       fprintf(stderr, "Usage: %s <mq\-name>\en", argv[0]);
-       exit(EXIT_FAILURE);
+        fprintf(stderr, "Usage: %s <mq\-name>\en", argv[0]);
+        exit(EXIT_FAILURE);
     }
 
     mqdes = mq_open(argv[1], O_RDONLY);
@@ -173,6 +179,6 @@ main(int argc, char *argv[])
 \fBmq_close\fP(3), \fBmq_getattr\fP(3), \fBmq_open\fP(3), \fBmq_receive\fP(3),
 \fBmq_send\fP(3), \fBmq_unlink\fP(3), \fBmq_overview\fP(7), \fBsigevent\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.68 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。