1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
ko1 eb35bb0b35 * include/ruby/intern.h, thread_pthread.c (rb_reserved_fd_p,
RB_RESERVED_FD_P): added.  This C API is to limit to access
  fds which are used by RubyVM internal.  In this version of
  CRuby, return 1 if fd is communication pipe.
  If your application needs to close all file descriptors to
  preent resource leak, skip internal fds using this C API.
  We also define a macro RB_RESERVED_FD_P(fd).  So you can write
  #ifndef RB_RESERVED_FD_P
  #define RB_RESERVED_FD_P(fd) 0
  #endif
  for Ruby 1.9.2 or previous version to write compatible extensions.
  See [ruby-core:37727]
* thread_win32.c (rb_reserved_fd_p): added (return 0 for any fds).
* io.c (rb_io_initialize): raise ArgumentError if given fd is reserved by Ruby.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-03 21:56:59 +00:00
..
backward * include/ruby/backward/classext.h: for evil gems. fixed #4803 2011-06-18 03:05:11 +00:00
defines.h * include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from 2011-06-06 06:11:37 +00:00
encoding.h * io.c (validate_enc_binmode, rb_io_extract_modeenc): set newline 2011-04-26 15:55:21 +00:00
intern.h * include/ruby/intern.h, thread_pthread.c (rb_reserved_fd_p, 2011-07-03 21:56:59 +00:00
io.h * thread.c (rb_wait_for_single_fd): new. poll(2) based backend for rb_wait_for_single_fd(). 2011-05-04 01:07:03 +00:00
missing.h * fix for build on solaris 10. 2011-06-16 00:12:55 +00:00
oniguruma.h * include/ruby/oniguruma.h (ONIGENC_CTYPE_SPECIAL_MASK): 2010-10-28 11:07:25 +00:00
re.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
regex.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
ruby.h * include/ruby/backward/classext.h: for evil gems. fixed #4803 2011-06-18 03:05:11 +00:00
st.h * include/ruby/st.h: parenthesize macro arguments. 2011-04-12 11:54:28 +00:00
subst.h * include/ruby/subst.h (snprintf): redefinition moved from ruby.h. 2010-08-07 22:19:17 +00:00
util.h * include/ruby/util.h: parenthesize macro arguments. 2011-04-09 09:02:03 +00:00
version.h * include/ruby/version.h (RUBY_API_VERSION_*): renamed and moved 2010-08-23 21:08:19 +00:00
vm.h * vm.c (ruby_vm_at_exit): new API. This enables extension libs to 2010-12-02 11:06:32 +00:00
win32.h * remove trailing spaces. 2011-05-15 11:55:52 +00:00