OSDN Git Service

Update releases for LDP 3.68
[linuxjm/LDP_man-pages.git] / release / man3 / rtime.3
index 569138e..e0a1b2d 100644 (file)
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH RTIME 3 2012\-08\-03 GNU "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 2004 Yuichi SATO
+.\"         all rights reserved.
+.\" Translated Thu Sep  2 07:40:48 JST 2004
+.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
+.\"
+.TH RTIME 3 2014\-05\-28 GNU "Linux Programmer's Manual"
 .SH 名前
 rtime \- リモートマシンから時刻を取得する
 .SH 書式
 .nf
-\fB#include <rpc/des_crypt.h>\fP
+\fB#include <rpc/auth_des.h>\fP
 .sp
 \fBint rtime(struct sockaddr_in *\fP\fIaddrp\fP\fB, struct rpc_timeval *\fP\fItimep\fP\fB,\fP
 \fB          struct rpc_timeval *\fP\fItimeout\fP\fB);\fP
@@ -44,6 +50,9 @@ rtime \- リモートマシンから時刻を取得する
 .TP 
 \fBETIMEDOUT\fP
 timeout で定義された待ち時間の期限が切れた。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+\fBrtime\fP() 関数はスレッドセーフである。
 .SH 注意
 IPv4 のみがサポートされている。
 .LP
@@ -51,16 +60,18 @@ IPv4 のみがサポートされている。
 に設定して、例にあるプログラムを試すこと。
 .LP
 libc5 はプロトタイプ
-.br
-int rtime(struct sockaddr_in *, struct timeval *, struct timeval *);
-.br
+.nf
+
+    int rtime(struct sockaddr_in *, struct timeval *, struct timeval *);
+
+.fi
 を使い、 \fI<rpc/auth_des.h>\fP の代わりに \fI<sys/time.h>\fP を必要とする。
 .SH バグ
 glibc 2.2.5 以前の \fBrtime\fP()  は、64 ビットマシンで正確に動作しない。
 .SH 例
 この例ではポート 37 がアップされてオープンされている必要がある。 \fI/etc/inetd.conf\fP の time
 エントリがコメントアウトされていないことを確認してほしい。
-.br
+
 このプログラムは "linux" というコンピュータに接続する。 "localhost" を使った場合は動作しない。 結果はコンピュータ "linux"
 のローカル時刻である。
 .sp
@@ -73,8 +84,8 @@ glibc 2.2.5 以前の \fBrtime\fP()  は、64 ビットマシンで正確に動
 #include <rpc/auth_des.h>
 #include <netdb.h>
 
-int use_tcp = 0;
-char *servername = "linux";
+static int use_tcp = 0;
+static char *servername = "linux";
 
 int
 main(void)
@@ -94,7 +105,7 @@ main(void)
     if (ret < 0)
         perror("rtime error");
     else {
-       time_t t = time1.tv_sec;
+        time_t t = time1.tv_sec;
         printf("%s\en", ctime(&t));
     }
 
@@ -106,6 +117,6 @@ main(void)
 .\" .BR rdate (1),
 \fBntpdate\fP(1), \fBinetd\fP(8)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.68 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。