nobu
1cabc3cab1
file.c: fix typo
...
* file.c (FSTATFS): fix typo and commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 14:13:31 +00:00
nobu
a76b0ed54d
file.c: fix errors on Windows
...
* file.c (rb_io_statfs, rb_statfs_init, statfs_inspect): fix
compilation errors on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 14:10:28 +00:00
naruse
19fac4432f
* configure.in (HAVE_STRUCT_STATFS_F_TYPE): check struct statfs.f_type
...
to support OpenBSD.
* file.c (statfs_type): use above macro to switch.
* file.c (statfs_inspect): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 12:46:23 +00:00
naruse
559d689ca6
* configure.in: check struct statvfs and struct statvfs.f_fstypename.
...
* configure.in: on NetBSD fstatfs is obsoleted.
* file.c: support NetBSD for File::Statfs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 09:08:15 +00:00
svn
1782a16e88
* 2014-04-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 08:46:40 +00:00
nari
ec0cfc3a31
* gc.c: This argument must be a pointer.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 08:46:36 +00:00
nari
6ee891d6a7
* gc.c: Fix typos. These are undefined variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-28 08:46:33 +00:00
tadf
a3a6da5ec5
trivial change
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-27 10:45:58 +00:00
tadf
bb05bcde01
* ext/date/date_strptime.c (date__strptime_internal): do not overwrite century.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-27 10:44:23 +00:00
svn
264b4150eb
* 2014-04-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-27 07:35:17 +00:00
kazu
248fced311
fix indent
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-27 07:35:11 +00:00
hsbt
2406557794
* test/ruby/test_enum.rb (test_flat_map): Added test for flat_map.
...
Contribute from @igaiga. [fix GH-598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-26 02:53:54 +00:00
nobu
37e432b5bf
compile.c: non-destructive keyword splat
...
* compile.c (compile_array_): make copy a first hash not to modify
the argument itself. keyword splat should be non-destructive.
[ruby-core:62161] [Bug #9776 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-26 01:55:34 +00:00
akr
3bd10c6ee7
update comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-26 00:21:34 +00:00
svn
bb565a206d
* 2014-04-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 23:07:32 +00:00
akr
79c09eb597
* test/ruby/test_process.rb (test_rlimit_nofile): Don't limit
...
RLIMIT_NOFILE too small.
This fix sporadic "[ASYNC BUG] thread_timer: select" on GNU/Linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 23:07:28 +00:00
ngoto
1377f38c9b
* lib/fileutils.rb (rmdir): rescue Errno::EEXIST in addition to
...
ENOTEMPTY (and ENOENT), because SUSv3 describes that "If the
directory is not an empty directory, rmdir() shall fail and set
errno to [EEXIST] or [ENOTEMPTY]" and Solaris uses EEXIST.
[Bug #9571 ] [ruby-dev:48017]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 14:28:56 +00:00
akr
2f60d08519
* lib/webrick/utils.rb: Don't rescue LoadError for 'etc' extension.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 10:17:15 +00:00
nobu
ef9408d8dd
node.c: indent
...
* node.c (dump_node): adjust indent to "ruby-style.el".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 07:12:58 +00:00
nobu
7cd7cfae77
mkmf.rb: workaround for tmpdir
...
* lib/mkmf.rb (try_link0): workaround for miniruby as 'tmpdir.rb'
always requires 'etc.so' now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 07:11:03 +00:00
nobu
e4cde46942
configure.in: refine __builtin_unreachable check
...
* configure.in (rb_cv_func___builtin_unreachable): try with an
external variable not only by a warning, which might not be
shown due to the optimization. [ruby-core:61647] [Bug #9665 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 05:56:01 +00:00
naruse
b4682ea330
* configure.in: NetBSD's ksh, used by configure, needs escapes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 04:13:56 +00:00
svn
1944f1d6e7
* 2014-04-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 04:06:49 +00:00
naruse
b87df1bf24
* configure.in: correct pthread_setname_np's prototype on NetBSD.
...
[Bug #9586 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-25 04:06:45 +00:00
usa
3c00fe9f41
* lib/fileutils.rb (fu_get_uid, fu_get_gid): Etc.getpwnam/getgrnam may
...
returns nil.
* lib/webrick/utils.rb (su): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 14:19:21 +00:00
akr
a87c3b4869
* bootstraptest/test_io.rb: Add etc.so to $" before require 'tmpdir'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 13:56:09 +00:00
akr
917681a3b7
revert r45709.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 13:54:07 +00:00
akr
b3cd42ede0
* bootstraptest/test_io.rb: Don't use tmpdir because etc.so is not
...
usable from miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 13:40:18 +00:00
kazu
defcc5aa0f
* man/ruby.1: fix broken link.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 12:11:01 +00:00
akr
869c7ce0d1
* lib/tmpdir.rb: Don't need to rescue LoadError for etc.so.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 11:53:31 +00:00
naruse
7f87816a89
suppress warnings: assigned but unused variable - pos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 08:47:47 +00:00
naruse
25ae5cc39b
suppress warnings: ambiguous first argument; put parentheses or even spaces
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 08:47:29 +00:00
naruse
f83d51d814
* file.c (statfs_inspect): suppress warnings.
...
assume those values won't be larger than LONG_LONG_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 08:46:56 +00:00
nobu
d182cd3053
parse.y: resurrect dynamic symbol and name
...
* parse.y (lookup_id_str): resurrect the dynamic symbol before
accessing its content, and its name before returning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 04:24:56 +00:00
nobu
a680ee9ffa
parse.y: check for symbol
...
* parse.y (rb_sym2id, rb_sym2id_without_pindown): reject
non-symbol values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 03:08:49 +00:00
nobu
e923de6d4a
ossl_asn1.c: fix undefined behavior
...
* ext/openssl/ossl_asn1.c (ossl_asn1_initialize): SYMID on a value
other than Symbol is an undefined behavior. fix up r31699.
[ruby-core:62142] [Bug #9771 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 02:53:29 +00:00
nobu
34c35bf107
parse.y: check for symbol
...
* parse.y (rb_sym2id, rb_sym2id_without_pindown): return 0 for
non-symbol values, for the time being.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 02:21:38 +00:00
naruse
313e34b461
Add test for r45492, r45693, r45698
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 02:16:38 +00:00
nobu
977a5147b4
parse.y: resurrect before pindown
...
* parse.y (rb_pin_dynamic_symbol): resurrect the dynamic symbol
which may be unmarked already and swept at next time, before
pindown.
* parse.y (dsym_node_gen): now rb_intern_str() resurrects dynamic
symbols, via lookup_sym_id() and rb_pin_dynamic_symbol().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 02:04:33 +00:00
nobu
91c6d41ac3
parse.y: trivial optimization
...
* parse.y (rb_str_dynamic_intern): branch by same condition as
rb_id2sym to reduce unnecessary branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 02:04:29 +00:00
naruse
8c3b01022b
call to_i
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 01:01:18 +00:00
nobu
ca258c86cf
file.c: statfs_inspect
...
* file.c (statfs_inspect): add File::Statfs#inspect method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-24 00:35:34 +00:00
svn
d8bb478e26
* 2014-04-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 20:59:09 +00:00
naruse
2dca886a07
* parse.y (dsym_node_gen): like r45492, call rb_gc_resurrect().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 20:59:03 +00:00
akr
708e1bd49d
* ext/etc/extconf.rb: Build ext/etc unconditionally.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 11:53:07 +00:00
naruse
474e9869ef
skip on SEEK_HOLE
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 06:05:30 +00:00
naruse
53a91a00fb
add uname -r
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 05:31:08 +00:00
naruse
297fe29fa9
* file.c (statfs_fsid): remove statfs.f_fsid because it doesn't return
...
meaningful value portably. http://togetter.com/li/658517
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 05:25:12 +00:00
naruse
62713618f0
travis doesn't have /proc/version_signature
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 05:01:05 +00:00
naruse
9d4a89e1d5
show versions
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-23 04:48:52 +00:00