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
akr 59ba2bf0b6 * include/ruby/intern.h (rb_exec_arg_init): declared.
(rb_exec_arg_addopt): delared.
  (rb_exec_arg_fix): declared.
  (rb_exec_initarg): removed.
  (rb_exec_getargs): removed.
  (rb_exec_initarg2): removed.

* io.c (struct popen_arg): make execarg as a pointer.
  (popen_exec): follow popen_arg change.
  (pipe_open): add eargp argument.  extract argc and argv from eargp.
  use rb_exec_arg_addopt to add redirect options.
  (pipe_open_v): set up struct rb_exec_arg.
  (pipe_open_s): set up struct rb_exec_arg.

* process.c (rb_exec_arg_addopt): new function extracted from
  check_exec_options_i.
  (check_exec_options_i): use rb_exec_arg_addopt.
  (rb_check_exec_options): opthash is always a hash now.
  (rb_exec_getargs): make it static.
  (rb_exec_fillarg): renamed from rb_exec_initarg2.  don't set up
  redirect_fds.
  (rb_exec_arg_init): new function.
  (rb_exec_arg_fix): new function.
  (rb_f_exec): use rb_exec_arg_init and rb_exec_arg_fix.  use
  rb_exec_arg_addopt to set close_others option.
  (run_exec_options): make close_others by default.
  (rb_spawn_internal): use rb_exec_arg_init and rb_exec_arg_fix.  use
  rb_exec_arg_addopt to set close_others option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-28 00:11:46 +00:00
..
defines.h * defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of 2008-01-11 02:57:38 +00:00
encoding.h * re.c (rb_memsearch_ss): simple shift search. 2008-03-17 19:04:29 +00:00
intern.h * include/ruby/intern.h (rb_exec_arg_init): declared. 2008-04-28 00:11:46 +00:00
io.h * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
missing.h * include/ruby/missing.h (cbrt): add declaration. 2008-03-06 05:06:30 +00:00
node.h * include/ruby/node.h: add new constants for rb_call()'s scope. 2008-04-01 21:30:36 +00:00
oniguruma.h * include/ruby/oniguruma.h: precise mbclen API redesigned to avoid 2008-01-27 14:27:07 +00:00
re.h * include/ruby/re.h (struct rmatch_offset): new struct for character 2008-02-16 20:08:35 +00:00
regex.h * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
ruby.h * include/ruby/ruby.h, gc.c: remove T_BLOCK. 2008-04-26 08:32:23 +00:00
signal.h * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
st.h * include/ruby/encoding.h (rb_isascii): defined. 2008-01-01 12:24:04 +00:00
util.h * debug.c (ruby_set_debug_option): separated ruby_each_words(). 2008-02-23 21:13:05 +00:00
win32.h * include/ruby/win32.h: define mode_t for umask. 2008-04-25 01:55:22 +00:00