Project

General

Profile

Actions

Feature #11806

closed

[PATCH] IO#advise should not raise Errno::ENOSYS

Added by normalperson (Eric Wong) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Target version:
-
[ruby-core:72059]

Description

As it is just a hint the kernel is free to ignore,
IO#advise already succeeds when posix_fadvise is not
available build time at all. Following that, if posix_fadvise
was available at build time but not implemented in the running
kernel, we should also ignore it.

  • io.c (do_io_advise): do not raise on ENOSYS
  • test/ruby/test_io.rb (test_advise): do not skip on Errno::ENOSYS
    (test_advise_pipe): ditto

Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0