[前][次][番号順一覧][スレッド一覧]

ruby-changes:30536

From: akr <ko1@a...>
Date: Mon, 19 Aug 2013 12:57:30 +0900 (JST)
Subject: [ruby-changes:30536] akr:r42615 (trunk): * process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and

akr	2013-08-19 12:57:23 +0900 (Mon, 19 Aug 2013)

  New Revision: 42615

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42615

  Log:
    * process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and
      CLOCK_BOOTTIME_ALARM.

  Modified files:
    trunk/ChangeLog
    trunk/process.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42614)
+++ ChangeLog	(revision 42615)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Aug 19 12:56:49 2013  Tanaka Akira  <akr@f...>
+
+	* process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and
+	  CLOCK_BOOTTIME_ALARM.
+
 Sun Aug 18 20:17:41 2013  Kazuki Tsujimoto  <kazuki@c...>
 
 	* variable.c, vm_method.c: remove dead code.
Index: process.c
===================================================================
--- process.c	(revision 42614)
+++ process.c	(revision 42615)
@@ -6652,7 +6652,6 @@ rb_proc_times(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L6652
  *  such as Process::CLOCK_REALTIME and Process::CLOCK_MONOTONIC.
  *
  *  The supported constants depends on OS and version.
- *
  *  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
@@ -6664,11 +6663,13 @@ rb_proc_times(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L6663
  *  [CLOCK_REALTIME_FAST] FreeBSD 8.1
  *  [CLOCK_REALTIME_PRECISE] FreeBSD 8.1
  *  [CLOCK_REALTIME_COARSE] Linux 2.6.32
+ *  [CLOCK_REALTIME_ALARM] Linux 3.0
  *  [CLOCK_MONOTONIC_FAST] FreeBSD 8.1
  *  [CLOCK_MONOTONIC_PRECISE] FreeBSD 8.1
  *  [CLOCK_MONOTONIC_COARSE] Linux 2.6.32
  *  [CLOCK_MONOTONIC_RAW] Linux 2.6.28
  *  [CLOCK_BOOTTIME] Linux 2.6.39
+ *  [CLOCK_BOOTTIME_ALARM] Linux 3.0
  *  [CLOCK_UPTIME] FreeBSD 7.0
  *  [CLOCK_UPTIME_FAST] FreeBSD 8.1
  *  [CLOCK_UPTIME_PRECISE] FreeBSD 8.1
@@ -7121,6 +7122,9 @@ Init_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L7122
 #ifdef CLOCK_REALTIME_COARSE
     rb_define_const(rb_mProcess, "CLOCK_REALTIME_COARSE", CLOCKID2NUM(CLOCK_REALTIME_COARSE));
 #endif
+#ifdef CLOCK_REALTIME_ALARM
+    rb_define_const(rb_mProcess, "CLOCK_REALTIME_ALARM", CLOCKID2NUM(CLOCK_REALTIME_ALARM));
+#endif
 #ifdef CLOCK_MONOTONIC_FAST
     rb_define_const(rb_mProcess, "CLOCK_MONOTONIC_FAST", CLOCKID2NUM(CLOCK_MONOTONIC_FAST));
 #endif
@@ -7136,6 +7140,9 @@ Init_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L7140
 #ifdef CLOCK_BOOTTIME
     rb_define_const(rb_mProcess, "CLOCK_BOOTTIME", CLOCKID2NUM(CLOCK_BOOTTIME));
 #endif
+#ifdef CLOCK_BOOTTIME_ALARM
+    rb_define_const(rb_mProcess, "CLOCK_BOOTTIME_ALARM", CLOCKID2NUM(CLOCK_BOOTTIME_ALARM));
+#endif
 #ifdef CLOCK_UPTIME
     rb_define_const(rb_mProcess, "CLOCK_UPTIME", CLOCKID2NUM(CLOCK_UPTIME));
 #endif

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]