ruby-changes:5667
From: shyouhei <ko1@a...>
Date: Sun, 15 Jun 2008 19:16:14 +0900 (JST)
Subject: [ruby-changes:5667] Ruby:r17173 (ruby_1_8_6): merge revision(s) 15477:
shyouhei 2008-06-15 19:15:41 +0900 (Sun, 15 Jun 2008) New Revision: 17173 Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/configure.in branches/ruby_1_8_6/file.c branches/ruby_1_8_6/version.h Log: merge revision(s) 15477: * configure.in (ftruncate): check if available. * file.c (rb_file_truncate): check if ftruncate instead of truncate. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=17173&r2=17172&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=17173&r2=17172&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/configure.in?r1=17173&r2=17172&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/file.c?r1=17173&r2=17172&diff_format=u Index: ruby_1_8_6/configure.in =================================================================== --- ruby_1_8_6/configure.in (revision 17172) +++ ruby_1_8_6/configure.in (revision 17173) @@ -534,7 +534,7 @@ strchr strstr strtoul crypt flock vsnprintf\ isnan finite isinf hypot acosh erf) AC_CHECK_FUNCS(fmod killpg wait4 waitpid syscall chroot fsync getcwd eaccess\ - truncate chsize times utimes fcntl lockf lstat symlink link\ + truncate ftruncate chsize times utimes fcntl lockf lstat symlink link\ readlink setitimer setruid seteuid setreuid setresuid\ setproctitle setrgid setegid setregid setresgid issetugid pause\ lchown lchmod getpgrp setpgrp getpgid setpgid initgroups\ Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 17172) +++ ruby_1_8_6/ChangeLog (revision 17173) @@ -1,3 +1,9 @@ +Sun Jun 15 19:13:46 2008 Nobuyoshi Nakada <nobu@r...> + + * configure.in (ftruncate): check if available. + + * file.c (rb_file_truncate): check if ftruncate instead of truncate. + Sun Jun 15 19:02:46 2008 Nobuyoshi Nakada <nobu@r...> * configure.in (sigsetmask): check when signal semantics is not POSIX. Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 17172) +++ ruby_1_8_6/version.h (revision 17173) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-15" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080615 -#define RUBY_PATCHLEVEL 177 +#define RUBY_PATCHLEVEL 178 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/file.c =================================================================== --- ruby_1_8_6/file.c (revision 17172) +++ ruby_1_8_6/file.c (revision 17173) @@ -3259,7 +3259,7 @@ f = GetWriteFile(fptr); fflush(f); fseeko(f, (off_t)0, SEEK_CUR); -#ifdef HAVE_TRUNCATE +#ifdef HAVE_FTRUNCATE if (ftruncate(fileno(f), pos) < 0) rb_sys_fail(fptr->path); #else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/