From: Joseph Jones Date: 2015-12-17T21:07:44-07:00 Subject: [ruby-core:72316] [Ruby trunk - Feature #11806] [Open] [PATCH] IO#advise should not raise Errno::ENOSYS --56738690_1a27709e_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 11, 2015 at 13:05= :55 MST, normalperson=40yhbt.net wrote:Issue =2311806 has been reported b= y Eric Wong.----------------------------------------=46eature =2311806: =5B= PATCH=5D IO=23advise should not raise Errno::ENOSYShttps://bugs.ruby-lang= .org/issues/11806* Author: Eric Wong* Status: Open* Priority: Normal* Ass= ignee: ----------------------------------------As it is just a hint the k= ernel is free to ignore,IO=23advise already succeeds when posix=5Ffadvise= is notavailable build time at all. =46ollowing that, if posix=5Ffadvisew= as available at build time but not implemented in the runningkernel, we s= hould also ignore it.* io.c (do=5Fio=5Fadvise): do not raise on ENOSYS* t= est/ruby/test=5Fio.rb (test=5Fadvise): do not skip on Errno::ENOSYS (test= =5Fadvise=5Fpipe): ditto---=46iles--------------------------------0001-IO= -advise-avoids-raising-Errno-ENOSYS.patch (2.31 KB)-- https://bugs.ruby-l= ang.org/ --56738690_1a27709e_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 11, 2015 at 13:05:55 MST, normalperson=40yhbt.net wrote:
=
Issue =2311806 has been re= ported by Eric Wong.

----------------------------------------<= br />=46eature =2311806: =5BPATCH=5D IO=23advise should not raise Errno::= ENOSYS
https://bugs.ruby-lang.org/issues/11806

* Author: = Eric Wong
* Status: Open
* Priority: Normal
* Assignee: ----------------------------------------
As it is just a hint th= e kernel is free to ignore,
IO=23advise already succeeds when posix=5F= fadvise is not
available build time at all. =46ollowing that, if po= six=5Ffadvise
was available at build time but not implemented in the= running
kernel, we should also ignore it.

* io.c (do=5Fi= o=5Fadvise): do not raise on ENOSYS
* test/ruby/test=5Fio.rb (test=5F= advise): do not skip on Errno::ENOSYS
(test=5Fadvise=5Fpipe): ditt= o


---=46iles--------------------------------
0001-I= O-advise-avoids-raising-Errno-ENOSYS.patch (2.31 KB)


-- =
https://bugs.ruby-lang.org/
--56738690_1a27709e_16c--