Project

General

Profile

Feature #5995 » patch2.diff

Glass_saga (Masaki Matsushita), 02/14/2012 12:48 PM

View differences:

io.c
rb_str_modify_expand(*str, len);
}
static VALUE sym_sequential;
#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_SEQUENTIAL)
static VALUE do_io_advise(rb_io_t *fptr, VALUE advice, off_t offset, off_t len);
#endif
static VALUE
read_all(rb_io_t *fptr, long siz, VALUE str)
{
......
rb_encoding *enc;
int cr;
#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_SEQUENTIAL)
do_io_advise(fptr, sym_sequential, (off_t)0LL, (off_t)0LL);
#endif
if (NEED_READCONV(fptr)) {
SET_BINARY_MODE(fptr);
io_setstrbuf(&str,0);
......
return Qnil;
}
static VALUE sym_normal, sym_sequential, sym_random,
static VALUE sym_normal, sym_random,
sym_willneed, sym_dontneed, sym_noreuse;
#ifdef HAVE_POSIX_FADVISE
(2-2/2)