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

ruby-changes:17540

From: naruse <ko1@a...>
Date: Thu, 21 Oct 2010 15:51:58 +0900 (JST)
Subject: [ruby-changes:17540] Ruby:r29545 (trunk): * io.c (rb_f_select): add correct rdoc.

naruse	2010-10-21 15:51:49 +0900 (Thu, 21 Oct 2010)

  New Revision: 29545

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

  Log:
    * io.c (rb_f_select): add correct rdoc.
      patched by Dave Thomas [ruby-core:32467]

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29544)
+++ ChangeLog	(revision 29545)
@@ -1,3 +1,8 @@
+Thu Oct 21 15:50:25 2010  NARUSE, Yui  <naruse@r...>
+
+	* io.c (rb_f_select): add correct rdoc.
+	  patched by Dave Thomas [ruby-core:32467]
+
 Thu Oct 21 15:42:01 2010  NARUSE, Yui  <naruse@r...>
 
 	* lib/net/telnet.rb (Net::Telnet#close): added.
Index: io.c
===================================================================
--- io.c	(revision 29544)
+++ io.c	(revision 29545)
@@ -6071,7 +6071,7 @@
  *  Equivalent to:
  *
  *    $stdout.putc(int)
- * 
+ *
  * Refer to the documentation for IO#putc for important information regarding
  * multi-byte characters.
  */
@@ -7347,12 +7347,22 @@
 
 /*
  *  call-seq:
- *     IO.select(read_array
- *               [, write_array
- *               [, error_array
- *               [, timeout]]] )-> array  or  nil
+ *	[IO.]select(read_array [, write_array [, error_array [, timeout ]]]) -> array | nil
  *
- *  See <code>Kernel#select</code>.
+ *	Performs a low-level <methodname>select</methodname> call, which waits for data
+ *      to become available from input/output devices. The first three
+ *      parameters are arrays of +IO+ objects or +nil+. The last is a
+ *      timeout in seconds, which should be an +Integer+ or a +Float+.
+ *      The call waits for data to become available for any of the +IO+
+ *	objects in _read_array_, for buffers to have cleared sufficiently to
+ *      enable writing to any of the devices in _write_array_, or for an error
+ *      to occur on the devices in _error_array_. If one or more of these
+ *	conditions are met, the call returns a three-element array containing
+ *      arrays of the +IO+ objects that were ready.  Otherwise, if there is no
+ *      change in status for _timeout_ seconds, the call returns +nil+. If all
+ *      parameters are +nil+, the current thread sleeps forever.
+ *
+ *	    select( [STDIN], nil, nil, 1.5 )
  */
 
 static VALUE

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

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