JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... ruct timespec * tp ); 説明 sched_rr_get_interval () は tp で指定された timespec 構造体に pid で指定されたプロセスのラウンドロビン時間量 ... (round robin time quantum) を書き込む。指定されたプロセスは SCHED_RR スケジューリング ポリシーで動作しているはずである。 timespec 構造体は以下の通りである: struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; pid が 0 の場合 ... ... library ( librt ,\ -lrt ) 書式 #include < time.h > int clock_getres(clockid_t clockid , struct timespec *_Nullable res ); int clock_gettime(clockid_t clockid , struct timespec * tp ); int clock_settime(clockid_t clockid , cons ... t struct timespec * tp ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): clock_getres (), clock_gettime (), clock_settime ... は 指定されたクロック clockid の分解能 (精度) を探し出します。 res が NULL でない場合、その分解能を res で指される struct timespec に格納します。クロックの分解能は実装に依存し、 特定のプロセスによって設定することはできません。 clock_settime () の引数 tp ... ... library ( librt ,\ -lrt ) 書式 #include < time.h > int clock_getres(clockid_t clockid , struct timespec *_Nullable res ); int clock_gettime(clockid_t clockid , struct timespec * tp ); int clock_settime(clockid_t clockid , cons ... t struct timespec * tp ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): clock_getres (), clock_gettime (), clock_settime ... は 指定されたクロック clockid の分解能 (精度) を探し出します。 res が NULL でない場合、その分解能を res で指される struct timespec に格納します。クロックの分解能は実装に依存し、 特定のプロセスによって設定することはできません。 clock_settime () の引数 tp ... ... library ( librt ,\ -lrt ) 書式 #include < time.h > int clock_getres(clockid_t clockid , struct timespec *_Nullable res ); int clock_gettime(clockid_t clockid , struct timespec * tp ); int clock_settime(clockid_t clockid , cons ... t struct timespec * tp ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): clock_getres (), clock_gettime (), clock_settime ... は 指定されたクロック clockid の分解能 (精度) を探し出します。 res が NULL でない場合、その分解能を res で指される struct timespec に格納します。クロックの分解能は実装に依存し、 特定のプロセスによって設定することはできません。 clock_settime () の引数 tp ... ... 初期値と間隔 (interval) を 指定する。この引き数で使用されている itimerspec 構造体には 2 つのフィールドがあり、各フィールドは timespec 型の構造体である。 struct timespec { time_t tv_sec; /* Seconds */ long tv_nsec; /* Nanoseconds */ }; struct itimerspec { s ... truct timespec it_interval; /* Interval for periodic timer */ struct timespec it_value; /* Initial expiration */ }; new_value.it_value は ... handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) static void print_elapsed_time(void) { static struct timespec start; struct timespec curr; static int first_call = 1; int secs, nsecs; if (first_call) { first_call = 0; if (clock_getti ... ... 初期値と間隔 (interval) を 指定する。この引き数で使用されている itimerspec 構造体には 2 つのフィールドがあり、各フィールドは timespec 型の構造体である。 struct timespec { time_t tv_sec; /* Seconds */ long tv_nsec; /* Nanoseconds */ }; struct itimerspec { s ... truct timespec it_interval; /* Interval for periodic timer */ struct timespec it_value; /* Initial expiration */ }; new_value.it_value は ... handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) static void print_elapsed_time(void) { static struct timespec start; struct timespec curr; static int first_call = 1; int secs, nsecs; if (first_call) { first_call = 0; if (clock_getti ... ... 初期値と間隔 (interval) を 指定する。この引き数で使用されている itimerspec 構造体には 2 つのフィールドがあり、各フィールドは timespec 型の構造体である。 struct timespec { time_t tv_sec; /* Seconds */ long tv_nsec; /* Nanoseconds */ }; struct itimerspec { s ... truct timespec it_interval; /* Interval for periodic timer */ struct timespec it_value; /* Initial expiration */ }; new_value.it_value は ... handle_error(msg) \ do { perror(msg); exit(EXIT_FAILURE); } while (0) static void print_elapsed_time(void) { static struct timespec start; struct timespec curr; static int first_call = 1; int secs, nsecs; if (first_call) { first_call = 0; if (clock_getti ... ... tefile ] [--iso-8601[= timespec ]] [--reference= file ] [--set= datestr ] [--rfc-822] [--universal] [--utc] [+ format ] [ MMDDhhmm [[ CC ] YY ][. ss ]] da ... 時計の時刻) ではなく UTC0 (協定世界時、これはグリニッジ平均時もしくは GMT として知られている) に 設定されたものとする。 -I [ timespec ], --iso-8601[= timespec ] 日付を ISO 8601 で指定されている書式 `%Y-%m-%d' で、 時刻を timespec で指定されている形式で表示 ... ... constants */ #include < sys/stat.h > int utimensat(int dirfd , const char * path , const struct timespec times [_Nullable 2], int flags ); int futimens(int fd , const struct timespec times [_Nullable 2]); glibc 向けの機能検査マ ... times の各要素では、 時刻を、 紀元 (Epoch; 1970-01-01 00:00:00 +0000 (UTC)) からの秒数とナノ秒として指定します。この情報は timespec (3) 構造体で渡されます。 ファイルの更新後のタイムスタンプは、 指定された時刻を超えないファイルシステムがサポートする最大の ... 値に設定されます。 それぞれの timespec 構造体の tv_nsec フィールドには UTIME_NOW を指定することができ、 その場合はファイルの対応するタイムスタンプは現在時刻に設定 ... ... constants */ #include < sys/stat.h > int utimensat(int dirfd , const char * path , const struct timespec times [_Nullable 2], int flags ); int futimens(int fd , const struct timespec times [_Nullable 2]); glibc 向けの機能検査マ ... times の各要素では、 時刻を、 紀元 (Epoch; 1970-01-01 00:00:00 +0000 (UTC)) からの秒数とナノ秒として指定します。この情報は timespec (3) 構造体で渡されます。 ファイルの更新後のタイムスタンプは、 指定された時刻を超えないファイルシステムがサポートする最大の ... 値に設定されます。 それぞれの timespec 構造体の tv_nsec フィールドには UTIME_NOW を指定することができ、 その場合はファイルの対応するタイムスタンプは現在時刻に設定 ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。