зеркало из https://github.com/github/ruby.git
* process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and
CLOCK_BOOTTIME_ALARM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e130ef20b4
Коммит
0a0c96308f
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Aug 19 12:56:49 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and
|
||||||
|
CLOCK_BOOTTIME_ALARM.
|
||||||
|
|
||||||
Sun Aug 18 20:17:41 2013 Kazuki Tsujimoto <kazuki@callcc.net>
|
Sun Aug 18 20:17:41 2013 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||||
|
|
||||||
* variable.c, vm_method.c: remove dead code.
|
* variable.c, vm_method.c: remove dead code.
|
||||||
|
|
|
@ -6652,7 +6652,6 @@ rb_proc_times(VALUE obj)
|
||||||
* such as Process::CLOCK_REALTIME and Process::CLOCK_MONOTONIC.
|
* such as Process::CLOCK_REALTIME and Process::CLOCK_MONOTONIC.
|
||||||
*
|
*
|
||||||
* The supported constants depends on OS and version.
|
* The supported constants depends on OS and version.
|
||||||
*
|
|
||||||
* Ruby provides following types of +clock_id+ if available.
|
* Ruby provides following types of +clock_id+ if available.
|
||||||
*
|
*
|
||||||
* [CLOCK_REALTIME] SUSv2 to 4, Linux 2.5.63, FreeBSD 3.0, NetBSD 2.0, OpenBSD 2.1
|
* [CLOCK_REALTIME] SUSv2 to 4, Linux 2.5.63, FreeBSD 3.0, NetBSD 2.0, OpenBSD 2.1
|
||||||
|
@ -6664,11 +6663,13 @@ rb_proc_times(VALUE obj)
|
||||||
* [CLOCK_REALTIME_FAST] FreeBSD 8.1
|
* [CLOCK_REALTIME_FAST] FreeBSD 8.1
|
||||||
* [CLOCK_REALTIME_PRECISE] FreeBSD 8.1
|
* [CLOCK_REALTIME_PRECISE] FreeBSD 8.1
|
||||||
* [CLOCK_REALTIME_COARSE] Linux 2.6.32
|
* [CLOCK_REALTIME_COARSE] Linux 2.6.32
|
||||||
|
* [CLOCK_REALTIME_ALARM] Linux 3.0
|
||||||
* [CLOCK_MONOTONIC_FAST] FreeBSD 8.1
|
* [CLOCK_MONOTONIC_FAST] FreeBSD 8.1
|
||||||
* [CLOCK_MONOTONIC_PRECISE] FreeBSD 8.1
|
* [CLOCK_MONOTONIC_PRECISE] FreeBSD 8.1
|
||||||
* [CLOCK_MONOTONIC_COARSE] Linux 2.6.32
|
* [CLOCK_MONOTONIC_COARSE] Linux 2.6.32
|
||||||
* [CLOCK_MONOTONIC_RAW] Linux 2.6.28
|
* [CLOCK_MONOTONIC_RAW] Linux 2.6.28
|
||||||
* [CLOCK_BOOTTIME] Linux 2.6.39
|
* [CLOCK_BOOTTIME] Linux 2.6.39
|
||||||
|
* [CLOCK_BOOTTIME_ALARM] Linux 3.0
|
||||||
* [CLOCK_UPTIME] FreeBSD 7.0
|
* [CLOCK_UPTIME] FreeBSD 7.0
|
||||||
* [CLOCK_UPTIME_FAST] FreeBSD 8.1
|
* [CLOCK_UPTIME_FAST] FreeBSD 8.1
|
||||||
* [CLOCK_UPTIME_PRECISE] FreeBSD 8.1
|
* [CLOCK_UPTIME_PRECISE] FreeBSD 8.1
|
||||||
|
@ -7121,6 +7122,9 @@ Init_process(void)
|
||||||
#ifdef CLOCK_REALTIME_COARSE
|
#ifdef CLOCK_REALTIME_COARSE
|
||||||
rb_define_const(rb_mProcess, "CLOCK_REALTIME_COARSE", CLOCKID2NUM(CLOCK_REALTIME_COARSE));
|
rb_define_const(rb_mProcess, "CLOCK_REALTIME_COARSE", CLOCKID2NUM(CLOCK_REALTIME_COARSE));
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CLOCK_REALTIME_ALARM
|
||||||
|
rb_define_const(rb_mProcess, "CLOCK_REALTIME_ALARM", CLOCKID2NUM(CLOCK_REALTIME_ALARM));
|
||||||
|
#endif
|
||||||
#ifdef CLOCK_MONOTONIC_FAST
|
#ifdef CLOCK_MONOTONIC_FAST
|
||||||
rb_define_const(rb_mProcess, "CLOCK_MONOTONIC_FAST", CLOCKID2NUM(CLOCK_MONOTONIC_FAST));
|
rb_define_const(rb_mProcess, "CLOCK_MONOTONIC_FAST", CLOCKID2NUM(CLOCK_MONOTONIC_FAST));
|
||||||
#endif
|
#endif
|
||||||
|
@ -7136,6 +7140,9 @@ Init_process(void)
|
||||||
#ifdef CLOCK_BOOTTIME
|
#ifdef CLOCK_BOOTTIME
|
||||||
rb_define_const(rb_mProcess, "CLOCK_BOOTTIME", CLOCKID2NUM(CLOCK_BOOTTIME));
|
rb_define_const(rb_mProcess, "CLOCK_BOOTTIME", CLOCKID2NUM(CLOCK_BOOTTIME));
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CLOCK_BOOTTIME_ALARM
|
||||||
|
rb_define_const(rb_mProcess, "CLOCK_BOOTTIME_ALARM", CLOCKID2NUM(CLOCK_BOOTTIME_ALARM));
|
||||||
|
#endif
|
||||||
#ifdef CLOCK_UPTIME
|
#ifdef CLOCK_UPTIME
|
||||||
rb_define_const(rb_mProcess, "CLOCK_UPTIME", CLOCKID2NUM(CLOCK_UPTIME));
|
rb_define_const(rb_mProcess, "CLOCK_UPTIME", CLOCKID2NUM(CLOCK_UPTIME));
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче