ruby-changes:34301
From: kanemoto <ko1@a...>
Date: Sun, 8 Jun 2014 23:39:35 +0900 (JST)
Subject: [ruby-changes:34301] kanemoto:r46382 (trunk): io.c (rb_io_advise): AIX currently does not support a 32-bit call to
kanemoto 2014-06-08 23:39:27 +0900 (Sun, 08 Jun 2014) New Revision: 46382 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46382 Log: io.c (rb_io_advise): AIX currently does not support a 32-bit call to posix_fadvise() if _LARGE_FILES is defined. Patch by Rei Odaira. [ruby-core:62968] [Bug #9914] Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 46381) +++ ChangeLog (revision 46382) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Jun 8 23:28:00 2014 <kanemoto@r...> + + * io.c (rb_io_advise): AIX currently does not support a 32-bit call to + posix_fadvise() if _LARGE_FILES is defined. Patch by Rei Odaira. + [ruby-core:62968] [Bug #9914] + Sun Jun 8 04:52:40 2014 Jun Hiroe <Jun.Hiroe@g...> * string.c (rb_str_slice_bang): [DOC] update return value against Index: io.c =================================================================== --- io.c (revision 46381) +++ io.c (revision 46382) @@ -8591,7 +8591,10 @@ rb_io_advise(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/io.c#L8591 off = NIL_P(offset) ? 0 : NUM2OFFT(offset); l = NIL_P(len) ? 0 : NUM2OFFT(len); -#ifdef HAVE_POSIX_FADVISE + /* AIX currently does not support a 32-bit call to posix_fadvise() + * if _LARGE_FILES is defined. + */ +#if defined(HAVE_POSIX_FADVISE) && !(defined(_AIX) && defined(_LARGE_FILES) && !defined(_ARCH_PPC64)) return do_io_advise(fptr, advice, off, l); #else ((void)off, (void)l); /* Ignore all hint */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/