JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... URCE glibc 2.19 とそれより前: _SVID_SOURCE 説明 注意 : この関数は非推奨です; 代わりに clock_settime (2) を使ってください。 stime () はシステムの時刻と日付を設定します。 t が指す時刻は、時刻紀元 (Epoch; 1970-01-01 00:00:00 +0000 (UTC)) からの秒数で指定 ... します。スーパーユーザーのみが stime () を実行できます。 返り値 成功すると、 0 が返ります。 エラーの場合、-1 を返し、 errno にエラーを示す値をセットします。 エ ... ... struct tms は < sys/times.h > で以下のように定義されています: struct tms { clock_t tms_utime; /* user time */ clock_t tms_stime; /* system time */ clock_t tms_cutime; /* user time of children */ clock_t tms_cstime; /* system time of children */ }; tm ... s_utime フィールドは、呼び出したプロセスが命令を実行するのに消費した CPU 時間です。 tms_stime フィールドは、呼び出したプロセスの代わりに実行されたタスクで、カーネル内で実行に費やされた CPU時間です。 tms_cutime フィー ... ルドは、 終了を待っている全ての子プロセスの tms_utime と tms_cutime の合計です。 tms_cstime フィールドは、 終了を待っている全ての子プロセスの tms_stime と tms_cstime の合計です。 終了する子(及びその子孫)プロセスの時 ... ... / u_int32_t ac_btime; /* Process creation time (seconds since the Epoch) */ comp_t ac_utime; /* User CPU time */ comp_t ac_stime; /* System CPU time */ comp_t ac_etime; /* Elapsed time */ comp_t ac_mem; /* Average memory usage (kB) */ comp_t ac_io; /* ... c は以下のようにして (long 型の) 整数に変換できる。 v = (c & 0x1fff) << (((c >> 13) & 0x7) * 3); フィールド ac_utime , ac_stime , ac_etime は "clock ticks" 単位で計測した時間である。 これらの値を sysconf(_SC_CLK_TCK) で割ると、秒に変換できる。 バージ ... _t ac_btime; /* Process creation time */ float ac_etime; /* Elapsed time */ comp_t ac_utime; /* User CPU time */ comp_t ac_stime; /* System time */ comp_t ac_mem; /* Average memory usage (kB) */ comp_t ac_io; /* Characters transferred (unused) */ comp ... ... る。 構造体は以下の形式である。 struct rusage { struct timeval ru_utime; /* 使用されたユーザー CPU 時間 */ struct timeval ru_stime; /* 使用されたシステム CPU 時間 */ long ru_maxrss; /* RAM 上に存在する仮想ページのサイズ (resident set size) の最大値 */ l ... 詳細は以下の通りである。 ru_utime ユーザーモードでの実行で消費された合計時間。 timeval 構造体 (秒とミリ秒) で表現される。 ru_stime カーネルモードでの実行で消費された合計時間。 timeval 構造体 (秒とミリ秒) で表現される。 ru_maxrss (Linux 2.6.32 以降) 使用 ... OSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD. POSIX.1 は getrusage () を規定しているが、規定しているフィールドは ru_utime と ru_stime だけである。 RUSAGE_THREAD は Linux 固有である。 注意 execve (2) の前後でリソース使用量の指標は保持される。 今日では < sys ... ... る。 構造体は以下の形式である。 struct rusage { struct timeval ru_utime; /* 使用されたユーザー CPU 時間 */ struct timeval ru_stime; /* 使用されたシステム CPU 時間 */ long ru_maxrss; /* RAM 上に存在する仮想ページのサイズ (resident set size) の最大値 */ l ... 詳細は以下の通りである。 ru_utime ユーザーモードでの実行で消費された合計時間。 timeval 構造体 (秒とミリ秒) で表現される。 ru_stime カーネルモードでの実行で消費された合計時間。 timeval 構造体 (秒とミリ秒) で表現される。 ru_maxrss (Linux 2.6.32 以降) 使用 ... OSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD. POSIX.1 は getrusage () を規定しているが、規定しているフィールドは ru_utime と ru_stime だけである。 RUSAGE_THREAD は Linux 固有である。 注意 execve (2) の前後でリソース使用量の指標は保持される。 今日では < sys ... ... r ID of sending process */ int si_status; /* Exit value or signal */ clock_t si_utime; /* User time consumed */ clock_t si_stime; /* System time consumed */ union sigval si_value; /* Signal value */ int si_int; /* POSIX.1b signal */ void *si_ptr; /* P ... 定され、 si_uid にはメッセージ送信者の実ユーザー ID が設定される。 * SIGCHLD は si_pid , si_uid , si_status , si_utime , si_stime を設定し、子プロセスに関する情報を提供する。 si_pid フィールドは子プロセスのプロセス ID で、 si_uid フィールドは子プロセス ... の実ユーザー ID である。 si_stime フィールドには、 ( si_code が CLD_EXITED の場合は) 子プロセスの終了ステータスが、それ以外の場合は状態が変化する原因となった ... ... r ID of sending process */ int si_status; /* Exit value or signal */ clock_t si_utime; /* User time consumed */ clock_t si_stime; /* System time consumed */ union sigval si_value; /* Signal value */ int si_int; /* POSIX.1b signal */ void *si_ptr; /* P ... 定され、 si_uid にはメッセージ送信者の実ユーザー ID が設定される。 * SIGCHLD は si_pid , si_uid , si_status , si_utime , si_stime を設定し、子プロセスに関する情報を提供する。 si_pid フィールドは子プロセスのプロセス ID で、 si_uid フィールドは子プロセス ... の実ユーザー ID である。 si_stime フィールドには、 ( si_code が CLD_EXITED の場合は) 子プロセスの終了ステータスが、それ以外の場合は状態が変化する原因となった ... ... g.h > で以下のように定義されている: struct msqid_ds { struct ipc_perm msg_perm; /* Ownership and permissions */ time_t msg_stime; /* Time of last msgsnd (2) */ time_t msg_rtime; /* Time of last msgrcv (2) */ time_t msg_ctime; /* Time of creation or la ... りである: msg_perm This is an ipc_perm structure (see below) that specifies the access permissions on the message queue. msg_stime 最後の msgsnd (2) システムコールの時刻。 msg_rtime 最後の msgrcv (2) システムコールの時刻。 msg_ctime Time of creation of ... ... を設定する。 • msg_perm.mode の下位 9 ビットは msgflg の下位 9 ビットを設定する。 • msg_qnum , msg_lspid , msg_lrpid , msg_stime , msg_rtime に 0 を設定される。 • msg_ctime に現在の時刻を設定する。 • msg_qbytes に、システムで決められたメッセージキュー ... ... (2) が返す struct tms の tms_utime と tms_cutime 値の合計)、 (iii) システム CPU 時間 ( times (2) が返す struct tms の tms_stime と tms_cstime 値の合計)。 ( bash (1) などの) いくつかのシェルには、時間とその他のリソースの使用状況に関する同様の情報を提供 ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。