-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
.\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
.\"
+.\" %%%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
.\"
.\" Modified by Michael Haardt (michael@moria.de)
.\" Modified 1993-07-23 by Rik Faith (faith@cs.unc.edu)
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH GETTIMEOFDAY 2 2012\-04\-12 Linux "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1998 HANATAKA Shinya
+.\" all rights reserved.
+.\" Translated 1998-05-11, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\" Updated & Modified 2001-06-02, Yuichi SATO <ysato@h4.dion.ne.jp>
+.\" Updated & Modified 2001-12-23, Yuichi SATO
+.\" Updated & Modified 2003-09-06, Yuichi SATO <ysato444@yahoo.co.jp>
+.\" Updated & Modified 2004-12-30, Yuichi SATO
+.\" Updated 2006-07-23, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2009-04-13, Akihiro MOTOKI, LDP v3.20
+.\" Updated 2012-04-30, Akihiro MOTOKI <amotoki@gmail.com>
+.\" Updated 2012-05-08, Akihiro MOTOKI <amotoki@gmail.com>
+.\" Updated 2013-03-26, Akihiro MOTOKI <amotoki@gmail.com>
+.\"
+.TH GETTIMEOFDAY 2 2012\-04\-26 Linux "Linux Programmer's Manual"
.SH 名前
gettimeofday, settimeofday \- 時刻を取得/設定する
.SH 書式
.fi
.in
.PP
+.\" FIXME The compilation warning looks to be going away in 2.17
+.\" see glibc commit 4b7634a5e03b0da6f8875de9d3f74c1cf6f2a6e8
.\" The following is covered under EPERM below:
.\" .PP
.\" Only the superuser may use
\fBsettimeofday\fP() については記述していない。 POSIX.1\-2008 では \fBgettimeofday\fP()
は廃止予定とされており、 代わりに \fBclock_gettime\fP(2) の使用が推奨されている。
.SH 注意
+\fBgettimeofday\fP() が返す時刻は、システム時間の不連続な変化
+(例えば、システム管理者がシステム時間を手動で変更した場合など)
+の影響を\fI受ける\fP。単調増加するクロックが必要な場合は、
+\fBclock_gettime\fP(2) を参照してほしい。
+
\fItimeval\fP 構造体を操作するためのマクロの説明は \fBtimeradd\fP(3) にある。
昔は \fIstruct timeval\fP のフィールドは \fIlong\fP 型であった。
Linux において \fBsettimeofday\fP() を呼び出すときは、
\fItz_dsttime\fP フィールドを 0 にするべきである。
.SH 関連項目
-\fBdate\fP(1), \fBadjtimex\fP(2), \fBtime\fP(2), \fBctime\fP(3), \fBftime\fP(3),
-\fBtimeradd\fP(3), \fBcapabilities\fP(7), \fBtime\fP(7)
+\fBdate\fP(1), \fBadjtimex\fP(2), \fBclock_gettime\fP(2), \fBtime\fP(2),
+\fBctime\fP(3), \fBftime\fP(3), \fBtimeradd\fP(3), \fBcapabilities\fP(7),
+\fBtime\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。