1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-05-18 08:45:07 +00:00
parent 741b7c46b8
commit 0b373d6bbb

View file

@ -693,7 +693,7 @@ etc_uname(VALUE obj)
/*
* Returns system configuration variable using sysconf().
*
* _name_ should be a constant undef <code>Etc</code> which begins with <code>SC_</code>.
* _name_ should be a constant under <code>Etc</code> which begins with <code>SC_</code>.
*
* The return value is an integer or nil.
* nil means indefinite limit. (sysconf() returns -1 but errno is not set.)
@ -730,7 +730,7 @@ etc_sysconf(VALUE obj, VALUE arg)
/*
* Returns system configuration variable using confstr().
*
* _name_ should be a constant undef <code>Etc</code> which begins with <code>CS_</code>.
* _name_ should be a constant under <code>Etc</code> which begins with <code>CS_</code>.
*
* The return value is a string or nil.
* nil means no configuration-defined value. (confstr() returns 0 but errno is not set.)
@ -777,11 +777,12 @@ etc_confstr(VALUE obj, VALUE arg)
/*
* Returns pathname configuration variable using fpathconf().
*
* _name_ should be a constant undef <code>Etc</code> which begins with <code>PC_</code>.
* _name_ should be a constant under <code>Etc</code> which begins with <code>PC_</code>.
*
* The return value is an integer or nil.
* nil means indefinite limit. (fpathconf() returns -1 but errno is not set.)
*
* require 'etc'
* IO.pipe {|r, w|
* p w.pathconf(Etc::PC_PIPE_BUF) #=> 4096
* }