OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / rtime.3
index 01a5459..e2e8031 100644 (file)
 .\"
 .\" Slightly polished, aeb, 2003-04-06
 .\"
-.\" 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 2010-02-25 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH RTIME 3 2010\-02\-25 GNU "Linux Programmer's Manual"
 .SH 名前
-.\"O rtime \- get time from a remote machine
 rtime \- リモートマシンから時刻を取得する
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.B "#include <rpc/des_crypt.h>"
+\fB#include <rpc/des_crypt.h>\fP
 .sp
-.BI "int rtime(struct sockaddr_in *" addrp ", struct rpc_timeval *" timep ,
-.BI "          struct rpc_timeval *" timeout );
+\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
 .fi
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O This function uses the Time Server Protocol as described in
-.\"O RFC\ 868 to obtain the time from a remote machine.
-この関数は RFC\ 868 に記述されているタイムサーバプロトコルを使用し、
-リモートマシンから時刻を取得する。
+この関数は RFC\ 868 に記述されているタイムサーバプロトコルを使用し、 リモートマシンから時刻を取得する。
 .LP
-.\"O The Time Server Protocol gives the time in seconds since
-.\"O 00:00:00 UTC, 1 Jan 1900,
-.\"O and this function subtracts the appropriate constant in order to
-.\"O convert the result to seconds since the
-.\"O Epoch, 1970-01-01 00:00:00 +0000 (UTC).
-タイムサーバプロトコルは 00:00:00 UTC, 1 Jan 1900 から秒数を提供するので、
-この関数は適切な定数値を引くことにより、
-提供された値を Unix における時刻紀元 (1970-01-01 00:00:00 +0000 (UTC))
-から秒数に変換する。
+タイムサーバプロトコルは 00:00:00 UTC, 1 Jan 1900 から秒数を提供するので、 この関数は適切な定数値を引くことにより、
+提供された値を Unix における時刻紀元 (1970\-01\-01 00:00:00 +0000 (UTC))  から秒数に変換する。
 .LP
-.\"O When
-.\"O .I timeout
-.\"O is non-NULL, the udp/time socket (port 37) is used.
-.I timeout
-が NULL でない場合、udp/time ソケット (ポート 37) が使用される。
-.\"O Otherwise, the tcp/time socket (port 37) is used.
-それ以外の場合、tcp/time ソケット (ポート 37) が使用される。
-.\"O .SH "RETURN VALUE"
+\fItimeout\fP が NULL でない場合、udp/time ソケット (ポート 37) が使用される。 それ以外の場合、tcp/time ソケット
+(ポート 37) が使用される。
 .SH 返り値
-.\"O On success, 0 is returned, and the obtained 32-bit time value is stored in
-.\"O .IR timep\->tv_sec .
-成功した場合は、0 が返されて、得られた 32 ビットの時刻値は
-.I timep\->tv_sec
-に格納される。
-.\"O In case of error \-1 is returned, and
-.\"O .I errno
-.\"O is set appropriately.
-エラーの場合は、\-1 が返されて、
-.I errno
-が適切に設定される。
-.\"O .SH ERRORS
+成功した場合は、0 が返されて、得られた 32 ビットの時刻値は \fItimep\->tv_sec\fP に格納される。 エラーの場合は、\-1
+が返されて、 \fIerrno\fP が適切に設定される。
 .SH エラー
-.\"O All errors for underlying functions
-.\"O .RB ( sendto (2),
-.\"O .BR poll (2),
-.\"O .BR recvfrom (2),
-.\"O .BR connect (2),
-.\"O .BR read (2))
-.\"O can occur.
-.\"O Moreover:
-内部で使用している関数
-.RB ( sendto (2),
-.BR poll (2),
-.BR recvfrom (2),
-.BR connect (2),
-.BR read (2))
-の全てのエラーが起こる可能性がある。
-更に次のエラーが起こる可能性がある:
-.TP
-.B EIO
-.\"O The number of returned bytes is not 4.
+内部で使用している関数 (\fBsendto\fP(2), \fBpoll\fP(2), \fBrecvfrom\fP(2), \fBconnect\fP(2),
+\fBread\fP(2))  の全てのエラーが起こる可能性がある。 更に次のエラーが起こる可能性がある:
+.TP 
+\fBEIO\fP
 返されたバイト数が 4 バイトでない。
-.TP
-.B ETIMEDOUT
-.\"O The waiting time as defined in timeout has expired.
+.TP 
+\fBETIMEDOUT\fP
 timeout で定義された待ち時間の期限が切れた。
-.\"O .SH "NOTES"
 .SH 注意
-.\"O Only IPv4 is supported.
 IPv4 のみがサポートされている。
 .LP
-.\"O Some
-.\"O .I in.timed
-.\"O versions only support TCP.
-.\"O Try the example program with
-.\"O .I use_tcp
-.\"O set to 1.
-.I in.timed
-のバージョンによっては TCP しかサポートしていないものもある。
-.I use_tcp
-を 1 に設定して、例にあるプログラムを試すこと。
+\fIin.timed\fP のバージョンによっては TCP しかサポートしていないものもある。 \fIuse_tcp\fP を 1
+に設定して、例にあるプログラムを試すこと。
 .LP
-.\"O Libc5 uses the prototype
-.\"O .br
-.\"O int rtime(struct sockaddr_in *, struct timeval *, struct timeval *);
-.\"O .br
-.\"O and requires
-.\"O .I <sys/time.h>
-.\"O instead of
-.\"O .IR <rpc/auth_des.h> .
 libc5 はプロトタイプ
 .br
 int rtime(struct sockaddr_in *, struct timeval *, struct timeval *);
 .br
-を使い、
-.I <rpc/auth_des.h>
-の代わりに
-.I <sys/time.h>
-を必要とする。
-.\"O .SH "BUGS"
+を使い、 \fI<rpc/auth_des.h>\fP の代わりに \fI<sys/time.h>\fP を必要とする。
 .SH バグ
-.\"O .BR rtime ()
-.\"O in glibc and earlier does not work properly on 64-bit machines.
-glibc 2.2.5 以前の
-.BR rtime ()
-は、64 ビットマシンで正確に動作しない。
-.\"O .SH "EXAMPLE"
+glibc 2.2.5 以前の \fBrtime\fP()  は、64 ビットマシンで正確に動作しない。
 .SH 例
-.\"O This example requires that port 37 is up and open.
-.\"O You may check
-.\"O that the time entry within
-.\"O .I /etc/inetd.conf
-.\"O is not commented out.
-この例ではポート 37 がアップされてオープンされている必要がある。
-.I /etc/inetd.conf
-の time エントリがコメントアウトされていないことを確認してほしい。
+この例ではポート 37 がアップされてオープンされている必要がある。 \fI/etc/inetd.conf\fP の time
+エントリがコメントアウトされていないことを確認してほしい。
 .br
-.\"O The program connects to a computer called "linux".
-.\"O Using "localhost" does not work.
-.\"O The result is the localtime of the computer "linux".
-このプログラムは "linux" というコンピュータに接続する。
-"localhost" を使った場合は動作しない。
-結果はコンピュータ "linux" のローカル時刻である。
+このプログラムは "linux" というコンピュータに接続する。 "localhost" を使った場合は動作しない。 結果はコンピュータ "linux"
+のローカル時刻である。
 .sp
 .nf
 #include <stdio.h>
@@ -174,14 +90,12 @@ main(void)
     if (ret < 0)
         perror("rtime error");
     else
-        printf("%s\\n", ctime((time_t *) &time1.tv_sec));
+        printf("%s\en", ctime((time_t *) &time1.tv_sec));
 
     exit(EXIT_SUCCESS);
 }
 .fi
-.\"O .SH "SEE ALSO"
 .SH 関連項目
 .\" .BR netdate (1),
-.BR ntpdate (1),
 .\" .BR rdate (1),
-.BR inetd (8)
+\fBntpdate\fP(1), \fBinetd\fP(8)