日本語 man コマンド類 (ja-man-1.1j_5) と日本語 man ドキュメント (ja-man-doc-5.4 (5.4-RELEASE 用) など) をインストールすると、以下のような man コマンド閲覧、キーワード検索が コンソールからできるようになります。
4.11-RELEASE-K, 5.4-RELEASE-K, 5.5-RELEASE-K, 6.0-RELEASE-K から 6.4-RELEASE-K, 7.0-RELEASE-K から 7.4-RELEASE-K, 8.0-RELEASE-K から 8.4-RELEASE-K, 9.0-RELEASE-K から 9.3-RELEASE-K, 10.0-RELEASE-K から 10.3-RELEASE-K, 11.0-RELEASE-K から 11.4-RELEASE-K, 12.0-RELEASE-K, 12.1-RELEASE-K は、 プライベート版 (小金丸が編集してまとめたもの) ですが、 より多くの翻訳したファイルが含まれています。 (5.4-RELEASE-K から 6.4-RELEASE-K, 7.0-RELEASE-K から 7.4-RELEASE-K, 8.0-RELEASE-K から 8.4-RELEASE-K, 9.0-RELEASE-K から 9.3-RELEASE-K, 10.0-RELEASE-K から 10.3-RELEASE-K, 11.0-RELEASE-K から 11.4-RELEASE-K, 12.0-RELEASE-K から 12.3-RELEASE-K, 13.0-RELEASE-K から 13.2-RELEASE-K は、全翻訳済み)
13.3-STABLE-K, 15.0-CURRENT-K は現在、作成中で日々更新されています。
Table of Contents
TIMERADD(3) FreeBSD ライブラリ関数マニュアル TIMERADD(3) 名称 timeradd, timersub, timerclear, timerisset, timercmp, timespecadd, timespecsub, timespecclear, timespecisset, timespeccmp -- timeval の操作 書式 #include <sys/time.h> void timeradd(struct timeval *a, struct timeval *b, struct timeval *res); void timersub(struct timeval *a, struct timeval *b, struct timeval *res); void timerclear(struct timeval *tvp); int timerisset(struct timeval *tvp); int timercmp(struct timeval *a, struct timeval *b, CMP); void timespecadd(struct timespec *a, struct timespec *b, struct timespec *res); void timespecsub(struct timespec *a, struct timespec *b, struct timespec *res); void timespecclear(struct timespec *ts); int timespecisset(struct timespec *ts); int timespeccmp(struct timespec *a, struct timespec *b, CMP); 解説 これらのマクロは、clock_gettime(2), clock_settime(2), gettimeofday(2) と settimeofday(2) 呼び出しで使用するために timeval と timespec 構造体を操作 するために提供されています。timeval 構造体は、次のように <sys/time.h> で 定義されています: struct timeval { long tv_sec; /* 1970年 1 月 1 日からの秒数 */ long tv_usec; /* とマイクロ秒 */ }; そして、timespec 構造体は、次のように <time.h> で定義されています: struct timespec { time_t tv_sec; /* 秒 */ long tv_nsec; /* とナノ秒 */ }; timeradd() と timespecadd() は、a と b に格納された時間情報を追加し、res に結果を格納します。結果は、res->tv_usec または res->tv_nsec の値が常に 1 秒未満となるように単純化されます。 timersub() と timespecsub() は、a から b に格納された時間情報を差し引き て、結果を res に格納します。 timerclear() と timespecclear() は、それらの引数を (エポック) 1970 年 1 月 1 日真夜中 (0 時) に初期化します。 timerisset() と timespecisset() は、それらの引数がエポック以外の任意の時 間の値に設定されるなら、真を返します。 timercmp() と timespeccmp() は、CMP で与えられている比較演算子を使用して a と b を比較して、比較の結果を返します。訳注: CMP には >, >=, <, <= など の比較演算子を直接指定します。 関連項目 clock_gettime(2), gettimeofday(2) 歴史 マクロの timeradd() ファミリは、NetBSD 1.1 から取り込まれ、FreeBSD 2.2.6 で登場しました。マクロの timespecadd() ファミリは、NetBSD 1.3 から FreeBSD 3.0 に取り込まれ、それらは、FreeBSD 12.0 まで、ユーザランドに公開 されませんでした。 FreeBSD 13.0 July 30, 2018 FreeBSD 13.0