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

ruby-changes:8911

From: akr <ko1@a...>
Date: Tue, 2 Dec 2008 19:00:19 +0900 (JST)
Subject: [ruby-changes:8911] Ruby:r20447 (trunk): move the previous comment.

akr	2008-12-02 19:00:10 +0900 (Tue, 02 Dec 2008)

  New Revision: 20447

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

  Log:
    move the previous comment.

  Modified files:
    trunk/include/ruby/intern.h
    trunk/thread.c

Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 20446)
+++ include/ruby/intern.h	(revision 20447)
@@ -201,32 +201,6 @@
 const char *rb_sourcefile(void);
 
 #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
-
-/*
- * several Unix platform supports file descriptors bigger than FD_SETSIZE
- * in select(2) system call.
- *
- * - Linux 2.2.12 (?)
- * - NetBSD 1.2 (src/sys/kern/sys_generic.c:1.25)
- *   select(2) documents how to allocate fd_set dynamically.
- *   http://netbsd.gw.com/cgi-bin/man-cgi?select++NetBSD-4.0
- * - FreeBSD 2.2 (src/sys/kern/sys_generic.c:1.19)
- * - OpenBSD 2.0 (src/sys/kern/sys_generic.c:1.4)
- *   select(2) documents how to allocate fd_set dynamically.
- *   http://www.openbsd.org/cgi-bin/man.cgi?query=select&manpath=OpenBSD+4.4
- * - HP-UX documents how to allocate fd_set dynamically. 
- *   http://docs.hp.com/en/B2355-60105/select.2.html
- * - Solaris 8 has select_large_fdset
- *
- * When fd_set is not big enough to hold big file descriptors,
- * it should be allocated dynamically.
- * Note that this assumes fd_set is structured as bitmap.
- *
- * rb_fd_init allocates the memory.
- * rb_fd_term free the memory.
- * rb_fd_set may re-allocates bitmap.
- */
-
 typedef struct {
     int maxfd;
     fd_set *fdset;
Index: thread.c
===================================================================
--- thread.c	(revision 20446)
+++ thread.c	(revision 20447)
@@ -2003,6 +2003,34 @@
 /* for IO */
 
 #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
+
+/*
+ * several Unix platform supports file descriptors bigger than FD_SETSIZE
+ * in select(2) system call.
+ *
+ * - Linux 2.2.12 (?)
+ * - NetBSD 1.2 (src/sys/kern/sys_generic.c:1.25)
+ *   select(2) documents how to allocate fd_set dynamically.
+ *   http://netbsd.gw.com/cgi-bin/man-cgi?select++NetBSD-4.0
+ * - FreeBSD 2.2 (src/sys/kern/sys_generic.c:1.19)
+ * - OpenBSD 2.0 (src/sys/kern/sys_generic.c:1.4)
+ *   select(2) documents how to allocate fd_set dynamically.
+ *   http://www.openbsd.org/cgi-bin/man.cgi?query=select&manpath=OpenBSD+4.4
+ * - HP-UX documents how to allocate fd_set dynamically. 
+ *   http://docs.hp.com/en/B2355-60105/select.2.html
+ * - Solaris 8 has select_large_fdset
+ *
+ * When fd_set is not big enough to hold big file descriptors,
+ * it should be allocated dynamically.
+ * Note that this assumes fd_set is structured as bitmap.
+ *
+ * rb_fd_init allocates the memory.
+ * rb_fd_term free the memory.
+ * rb_fd_set may re-allocates bitmap.
+ *
+ * So rb_fd_set doesn't reject file descriptors bigger than FD_SETSIZE.
+ */
+
 void
 rb_fd_init(volatile rb_fdset_t *fds)
 {

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

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