This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix a few places that said 'int', but meant 'STRLEN'
[perl5.git] / pp_sys.c
index e4694bc..00ee2b1 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1,6 +1,6 @@
 /*    pp_sys.c
  *
- *    Copyright (c) 1991-1997, Larry Wall
+ *    Copyright (c) 1991-1999, Larry Wall
  *
  *    You may distribute under the terms of either the GNU General Public
  *    License or the Artistic License, as specified in the README file.
@@ -869,8 +869,8 @@ PP(pp_sselect)
     /* If SELECT_MIN_BITS is greater than one we most probably will want
      * to align the sizes with SELECT_MIN_BITS/8 because for example
      * in many little-endian (Intel, Alpha) systems (Linux, OS/2, Digital
-     * UNIX, Solaris, NeXT) the smallest quantum select() operates on
-     * (sets bit) is 32 bits.  */
+     * UNIX, Solaris, NeXT, Rhapsody) the smallest quantum select() operates
+     * on (sets/tests/clears bits) is 32 bits.  */
     growsize = maxlen + (SELECT_MIN_BITS/8 - (maxlen % (SELECT_MIN_BITS/8)));
 #  else
     growsize = sizeof(fd_set);
@@ -1003,13 +1003,8 @@ PP(pp_select)
     }
 
     if (newdefout) {
-       if (!GvIO(newdefout)) {
-           if (ckWARN(WARN_UNOPENED))
-               warner(WARN_UNOPENED, "select() on unopened file");
-           if (SvTYPE(newdefout) != SVt_PVGV)
-               RETURN;
-           gv_IOadd(newdefout);        /* XXX probably bogus */
-       }
+       if (!GvIO(newdefout))
+           gv_IOadd(newdefout);
        setdefout(newdefout);
     }