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

ruby-changes:30526

From: akr <ko1@a...>
Date: Sun, 18 Aug 2013 13:21:41 +0900 (JST)
Subject: [ruby-changes:30526] akr:r42605 (trunk): * process.c (Init_process): Add constants: CLOCK_REALTIME_COARSE,

akr	2013-08-18 13:21:33 +0900 (Sun, 18 Aug 2013)

  New Revision: 42605

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

  Log:
    * process.c (Init_process): Add constants: CLOCK_REALTIME_COARSE,
      CLOCK_MONOTONIC_COARSE and CLOCK_BOOTTIME.

  Modified files:
    trunk/ChangeLog
    trunk/process.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42604)
+++ ChangeLog	(revision 42605)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Aug 18 13:18:38 2013  Tanaka Akira  <akr@f...>
+
+	* process.c (Init_process): Add constants: CLOCK_REALTIME_COARSE,
+	  CLOCK_MONOTONIC_COARSE and CLOCK_BOOTTIME.
+
 Sun Aug 18 12:41:50 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (clock_gettime): need to check with -lrt prior to check
Index: process.c
===================================================================
--- process.c	(revision 42604)
+++ process.c	(revision 42605)
@@ -6663,9 +6663,12 @@ rb_proc_times(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L6663
  *  [CLOCK_PROF] FreeBSD 3.0, OpenBSD 2.1
  *  [CLOCK_REALTIME_FAST] FreeBSD 8.1
  *  [CLOCK_REALTIME_PRECISE] FreeBSD 8.1
+ *  [CLOCK_REALTIME_COARSE] Linux 2.6.32
  *  [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_UPTIME] FreeBSD 7.0
  *  [CLOCK_UPTIME_FAST] FreeBSD 8.1
  *  [CLOCK_UPTIME_PRECISE] FreeBSD 8.1
@@ -7115,6 +7118,9 @@ Init_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L7118
 #ifdef CLOCK_REALTIME_PRECISE
     rb_define_const(rb_mProcess, "CLOCK_REALTIME_PRECISE", CLOCKID2NUM(CLOCK_REALTIME_PRECISE));
 #endif
+#ifdef CLOCK_REALTIME_COARSE
+    rb_define_const(rb_mProcess, "CLOCK_REALTIME_COARSE", CLOCKID2NUM(CLOCK_REALTIME_COARSE));
+#endif
 #ifdef CLOCK_MONOTONIC_FAST
     rb_define_const(rb_mProcess, "CLOCK_MONOTONIC_FAST", CLOCKID2NUM(CLOCK_MONOTONIC_FAST));
 #endif
@@ -7124,6 +7130,12 @@ Init_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L7130
 #ifdef CLOCK_MONOTONIC_RAW
     rb_define_const(rb_mProcess, "CLOCK_MONOTONIC_RAW", CLOCKID2NUM(CLOCK_MONOTONIC_RAW));
 #endif
+#ifdef CLOCK_MONOTONIC_COARSE
+    rb_define_const(rb_mProcess, "CLOCK_MONOTONIC_COARSE", CLOCKID2NUM(CLOCK_MONOTONIC_COARSE));
+#endif
+#ifdef CLOCK_BOOTTIME
+    rb_define_const(rb_mProcess, "CLOCK_BOOTTIME", CLOCKID2NUM(CLOCK_BOOTTIME));
+#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/

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