From b1f8bbf4f7fca70b3a173932f2f3c9cfed07b075 Mon Sep 17 00:00:00 2001 From: kosaki Date: Wed, 12 Jan 2011 14:22:39 +0000 Subject: [PATCH] * io.c (rb_f_syscall): Add warning messages. [ruby-core:34062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 42d1001707..42bb121fd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 13 00:06:38 2011 KOSAKI Motohiro + + * io.c (rb_f_syscall): Add warning messages. [ruby-core:34062] + Thu Jan 13 00:00:07 2011 KOSAKI Motohiro * io.c (rb_f_syscall): Some syscall return unsigned or pointer value. diff --git a/io.c b/io.c index 2fcc46b139..834105031d 100644 --- a/io.c +++ b/io.c @@ -7858,6 +7858,10 @@ rb_f_syscall(int argc, VALUE *argv) int num, retval = -1; #endif int i; + + if (RTEST(ruby_verbose)) { + rb_warning("We plan to remove a syscall function at future release. DL(Fiddle) provides safer alternative."); + } rb_secure(2); if (argc == 0)