ruby-changes:3365
From: ko1@a...
Date: 3 Jan 2008 11:29:31 +0900
Subject: [ruby-changes:3365] nobu - Ruby:r14858 (ruby_1_8, trunk): * io.c (fptr_finalize): clear errno first.
nobu 2008-01-03 11:29:04 +0900 (Thu, 03 Jan 2008) New Revision: 14858 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/io.c branches/ruby_1_8/version.h trunk/ChangeLog trunk/io.c Log: * io.c (fptr_finalize): clear errno first. [ruby-talk:284492] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14858&r2=14857&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14858&r2=14857&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=14858&r2=14857&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/io.c?r1=14858&r2=14857&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/version.h?r1=14858&r2=14857&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 14857) +++ ChangeLog (revision 14858) @@ -1,3 +1,7 @@ +Thu Jan 3 11:28:58 2008 Nobuyoshi Nakada <nobu@r...> + + * io.c (fptr_finalize): clear errno first. [ruby-talk:284492] + Thu Jan 3 05:02:36 2008 Tanaka Akira <akr@f...> * enc/us_ascii.c: add us_ascii_ prefix for functions to ease Index: io.c =================================================================== --- io.c (revision 14857) +++ io.c (revision 14858) @@ -2169,6 +2169,7 @@ fptr->rbuf_len--; rb_yield(INT2FIX(*p & 0xff)); p++; + errno = 0; } rb_io_check_readable(fptr); READ_CHECK(fptr); Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 14857) +++ ruby_1_8/ChangeLog (revision 14858) @@ -1,3 +1,7 @@ +Thu Jan 3 11:28:58 2008 Nobuyoshi Nakada <nobu@r...> + + * io.c (fptr_finalize): clear errno first. [ruby-talk:284492] + Wed Jan 2 10:18:56 2008 Tadayoshi Funaba <tadf@d...> * sample/time.rb: use Process.times instead of Time.times. Index: ruby_1_8/version.h =================================================================== --- ruby_1_8/version.h (revision 14857) +++ ruby_1_8/version.h (revision 14858) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.8.6" -#define RUBY_RELEASE_DATE "2008-01-02" +#define RUBY_RELEASE_DATE "2008-01-03" #define RUBY_VERSION_CODE 186 -#define RUBY_RELEASE_CODE 20080102 +#define RUBY_RELEASE_CODE 20080103 #define RUBY_PATCHLEVEL 5000 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 6 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 1 -#define RUBY_RELEASE_DAY 2 +#define RUBY_RELEASE_DAY 3 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: ruby_1_8/io.c =================================================================== --- ruby_1_8/io.c (revision 14857) +++ ruby_1_8/io.c (revision 14858) @@ -2169,6 +2169,7 @@ { int n1 = 0, n2 = 0, f1, f2 = -1; + errno = 0; if (fptr->f2) { f2 = fileno(fptr->f2); while (n2 = 0, fflush(fptr->f2) < 0) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml