OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man3 / timeradd.3
index 3054577..31917fd 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (c) 2007 by 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
 .\"
 .\" 2007-07-31, mtk, Created
 .\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.\"
 .\" Japanese Version Copyright (c) 2007  Akihiro MOTOKI
 .\"         all rights reserved.
 .\" Translated 2007-10-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.66
 .\" Updated 2009-04-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.20
-.\" 
-.TH TIMERADD 3 2010-02-25 "Linux" "Linux Programmer's Manual"
+.\"
+.TH TIMERADD 3 2010\-02\-25 Linux "Linux Programmer's Manual"
 .SH 名前
 timeradd, timersub, timercmp, timerclear, timerisset \- timeval の操作
 .SH 書式
 .nf
-.B #include <sys/time.h>
+\fB#include <sys/time.h>\fP
 
-.BI "void timeradd(struct timeval *" a ", struct timeval *" b ,
-.BI "              struct timeval *" res );
+\fBvoid timeradd(struct timeval *\fP\fIa\fP\fB, struct timeval *\fP\fIb\fP\fB,\fP
+\fB              struct timeval *\fP\fIres\fP\fB);\fP
 
-.BI "void timersub(struct timeval *" a ", struct timeval *" b ,
-.BI "              struct timeval *" res );
+\fBvoid timersub(struct timeval *\fP\fIa\fP\fB, struct timeval *\fP\fIb\fP\fB,\fP
+\fB              struct timeval *\fP\fIres\fP\fB);\fP
 
-.BI "void timerclear(struct timeval *" tvp );
+\fBvoid timerclear(struct timeval *\fP\fItvp\fP\fB);\fP
 
-.BI "int timerisset(struct timeval *" tvp );
+\fBint timerisset(struct timeval *\fP\fItvp\fP\fB);\fP
 
-.BI "int timercmp(struct timeval *" a ", struct timeval *" b ", " CMP );
+\fBint timercmp(struct timeval *\fP\fIa\fP\fB, struct timeval *\fP\fIb\fP\fB, \fP\fICMP\fP\fB);\fP
 .fi
 .sp
 .in -4n
-glibc 向けの機能検査マクロの要件
-.RB ( feature_test_macros (7)
-参照):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
-上記の全ての関数:
-_BSD_SOURCE
+上記の全ての関数: _BSD_SOURCE
 .SH 説明
-.I timeval
-構造体を操作するためのマクロが提供されている。
-.I timeval
-構造体は
-.I <sys/time.h>
+\fItimeval\fP 構造体を操作するためのマクロが提供されている。 \fItimeval\fP 構造体は \fI<sys/time.h>\fP
 で以下のように定義されている。
 .sp
 .in +4n
@@ -72,89 +73,39 @@ struct timeval {
 .fi
 .in
 .PP
-.BR timeradd ()
-は、
-.I a
-と
-.I b
-の時刻値を加算し、その合計を
-.I res
-により参照される
-.I timeval
-構造体に格納する。結果は、
-.I res\->tv_usec
-の値が 0 から 999,999 の範囲に入るように正規化される。
+\fBtimeradd\fP()  は、 \fIa\fP と \fIb\fP の時刻値を加算し、その合計を \fIres\fP により参照される \fItimeval\fP
+構造体に格納する。結果は、 \fIres\->tv_usec\fP の値が 0 から 999,999 の範囲に入るように正規化される。
 
-.BR timersub ()
-は、
-.I a
-の時刻値から
-.I b
-の時刻値を減算し、その結果を
-.I res
-により参照される
-.I timeval
-構造体に格納する。結果は、
-.I res\->tv_usec
-の値が 0 から 999,999 の範囲に入るように正規化される。
+\fBtimersub\fP()  は、 \fIa\fP の時刻値から \fIb\fP の時刻値を減算し、その結果を \fIres\fP により参照される \fItimeval\fP
+構造体に格納する。結果は、 \fIres\->tv_usec\fP の値が 0 から 999,999 の範囲に入るように正規化される。
 
-.BR timerclear ()
-は
-.I tvp
-により参照される
-.I timeval
-構造体を 0 で埋める。
-0 で埋められた
-.I timeval
-構造体は、時刻紀元 (Epoch; 1970-01-01 00:00:00 +0000 (UTC)) を表す。
+\fBtimerclear\fP()  は \fItvp\fP により参照される \fItimeval\fP 構造体を 0 で埋める。 0 で埋められた
+\fItimeval\fP 構造体は、時刻紀元 (Epoch; 1970\-01\-01 00:00:00 +0000 (UTC)) を表す。
 
-.BR timerisset ()
-は、
-.I tvp
-により参照される
-.I timeval
-構造体のいずれか一方のフィールドに 0 以外の値が入っていれば、
-真 (0 以外) を返す。
+\fBtimerisset\fP()  は、 \fItvp\fP により参照される \fItimeval\fP 構造体のいずれか一方のフィールドに 0
+以外の値が入っていれば、 真 (0 以外) を返す。
 
-.BR timercmp ()
-は
-.I a
-と
-.I b
-の時刻値を比較演算子
-.I CMP
-を使って比較し、比較結果に基づき、真 (0 以外) か偽 (0) を返す。
-(Linux/glibc はそうではないが)
-いくつかのシステムでは、
-.BRr timercmp ()
-の実装がおかしく、
-.\" HP-UX, Tru64, Irix では以下のように定義されている。
+.\" HP-UX, Tru64, Irix have a definition like:
 .\"#define timercmp(tvp, uvp, cmp) \
 .\"    ((tvp)->tv_sec cmp (uvp)->tv_sec || \
 .\"    (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec)
-.I CMP
-に
-.IR >= ,
-.IR <= ,
-.I ==
-を指定すると正しく動作しない。
-移植性が必要なアプリケーションでは、
+\fBtimercmp\fP()  は \fIa\fP と \fIb\fP の時刻値を比較演算子 \fICMP\fP を使って比較し、比較結果に基づき、真 (0 以外) か偽
+(0) を返す。 (Linux/glibc はそうではないが)  いくつかのシステムでは、 \fBtimercmp\fP()  の実装がおかしく、
+\fICMP\fP に \fI>=\fP, \fI<=\fP, \fI==\fP を指定すると正しく動作しない。 移植性が必要なアプリケーションでは、
 代わりに以下を使うこと。
 
     !timercmp(..., <)
     !timercmp(..., >)
     !timercmp(..., !=)
 .SH 返り値
-.BR timerisset ()
-と
-.BR timercmp ()
-は、真 (0 以外) か偽 (0) を返す。
-.BR
+\fBtimerisset\fP()  と \fBtimercmp\fP()  は、真 (0 以外) か偽 (0) を返す。
 .SH エラー
 エラーは定義されていない。
 .SH 準拠
-POSIX.1-2001 にはない。
-ほとんどの BSD 由来のシステムには存在する。
+POSIX.1\-2001 にはない。 ほとんどの BSD 由来のシステムには存在する。
 .SH 関連項目
-.BR gettimeofday (2),
-.BR time (7)
+\fBgettimeofday\fP(2), \fBtime\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。