doc/documentation/manual-pages/ja/man3/rtime.3
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

49 lines
911 B
Groff

.\" @(#)rtime.3n 2.1 88/08/08 4.0 RPCSRC; from 1.5 88/02/08 SMI
.\" %FreeBSD: src/lib/libc/rpc/rtime.3,v 1.4.2.2 2001/12/14 18:33:57 ru Exp %
.\" $FreeBSD$
.\"
.Dd November 22, 1987
.Dt RTIME 3
.Os
.Sh 名称
.Nm rtime
.Nd リモートタイムの入手
.Sh ライブラリ
.Lb libc
.Sh 書式
.In sys/types.h
.In sys/time.h
.In netinet/in.h
.Ft int
.Fo rtime
.Fa "struct sockaddr_in *addrp"
.Fa "struct timeval *timep"
.Fa "struct timeval *timeout"
.Fc
.Sh 解説
.Fn rtime
は、
.Fa addrp
が指すアドレスのインターネットタイムサーバを
参考にして、
.Fa timep
が指す
.Vt timeval
構造体にリモートタイムを戻します。
通常の
場合は、タイムサーバを参考にするときに
.Tn UDP
プロトコルが使用されます。
.Fa timeout
パラメータは、ルーチンが応答を待つ期間を指定します。
.Fa timeout
.Dv NULL
を指定した場合、このルーチンは
.Tn TCP
を使用し、タイムサーバから応答を
受けるまでブロックします。
.Sh 戻り値
.Rv -std rtime
.Sh 関連項目
.Xr timed 8