diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 02:06:15 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-18 02:06:15 +0000 |
commit | 4f3432f9cbd2a89ecd2efdbeb0bbb02a86c24ad8 (patch) | |
tree | 5a4fb02603e6b9f29594b6685887748c30a1e228 | |
parent | ea1a4f2929ab0cdb85b04c268e5d128f2c0a42c6 (diff) |
[DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/etc/etc.c | 4 | ||||
-rw-r--r-- | test/etc/test_etc.rb | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 577ac9223c..64b6fefab7 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -782,7 +782,9 @@ etc_confstr(VALUE obj, VALUE arg) * The return value is an integer or nil. * nil means indefinite limit. (fpathconf() returns -1 but errno is not set.) * - * open("/") {|f| p f.pathconf(Etc::PC_NAME_MAX) } #=> 255 + * IO.pipe {|r, w| + * p w.pathconf(Etc::PC_PIPE_BUF) #=> 4096 + * } * */ static VALUE diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb index 4c2b1f841d..adf0b364b3 100644 --- a/test/etc/test_etc.rb +++ b/test/etc/test_etc.rb @@ -154,7 +154,7 @@ class TestEtc < Test::Unit::TestCase rescue ArgumentError end IO.pipe {|r, w| - val = r.pathconf(Etc::PC_PIPE_BUF) + val = w.pathconf(Etc::PC_PIPE_BUF) assert(val.nil? || val.kind_of?(Integer)) } end |