1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

process.c: Process::Tms

* process.c (Init_process): rename Struct::Tms as Process::Tms.  keep
  the former defined for the backward compatibility, for the time
  being.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-10-27 01:38:20 +00:00
parent 0139a6f0e6
commit d956453a98

View file

@ -6630,9 +6630,9 @@ get_clk_tck(void)
/*
* call-seq:
* Process.times -> aStructTms
* Process.times -> aProcessTms
*
* Returns a <code>Tms</code> structure (see <code>Struct::Tms</code>)
* Returns a <code>Tms</code> structure (see <code>Process::Tms</code>)
* that contains user and system CPU times for this process,
* and also for children processes.
*
@ -7615,7 +7615,8 @@ Init_process(void)
rb_define_module_function(rb_mProcess, "clock_getres", rb_clock_getres, -1);
#if defined(HAVE_TIMES) || defined(_WIN32)
rb_cProcessTms = rb_struct_define("Tms", "utime", "stime", "cutime", "cstime", NULL);
rb_cProcessTms = rb_struct_define_under(rb_mProcess, "Tms", "utime", "stime", "cutime", "cstime", NULL);
rb_define_const(rb_cStruct, "Tms", rb_cProcessTms); /* for the backward compatibility */
#endif
SAVED_USER_ID = geteuid();