From: Eric Wong Date: 2015-12-11T22:27:23+00:00 Subject: [ruby-core:72064] Re: [Ruby trunk - Feature #11806] [PATCH] IO#advise should not raise Errno::ENOSYS nobu@ruby-lang.org wrote: > Or `rb_sys_fail` should map `ESYS` to `NotImplementedError`? I don't think that's a good idea. We are already silent on systems without HAVE_POSIX_FADVISE at build time. IO#advise is only a hint to me as it wraps posix_fadvise. Our own RDoc says: On platforms that do not support the posix_fadvise(2) system call, this method is a no-op. Current Linux kernels ignores POSIX_FADV_NOREUSE entirely; and it is silently ignored on O_DIRECT files. So I think it is better for us to be silent on ENOSYS, as well.