3件ヒット
[1-3件を表示]
(0.019秒)
検索結果
先頭3件
-
Etc
. # confstr(name) -> String | nil (25.0) -
confstr(3) で取得したシステム設定変数の値を返します。
...name Etc モジュールの CS_ で始まる定数のいずれかを指定します。
引数 name に対応する設定が行われていない状態の場合は nil を返します。
(confstr(3) が -1 を返し、errno が設定されていない場合)
//emlist[][ruby]{
require "etc"
Etc.con......fstr(Etc::CS_PATH) # => "/bin:/usr/bin"
# GNU/Linux
Etc.confstr(Etc::CS_GNU_LIBC_VERSION) # => "glibc 2.18"
Etc.confstr(Etc::CS_GNU_LIBPTHREAD_VERSION) # => "NPTL 2.18"
//}... -
Etc
. # sysconf(name) -> Integer | nil (25.0) -
sysconf(3) で取得したシステム設定変数の値を返します。
...されていない
場合)
@param name Etc モジュールの SC_ で始まる定数のいずれかを指定します。
//emlist[][ruby]{
require "etc"
Etc.sysconf(Etc::SC_ARG_MAX) # => 2097152
# Number of processors.
# It is not standardized.
Etc.sysconf(Etc::SC_NPROCESSORS_ONLN) # => 4
//}... -
IO
# pathconf(name) -> Integer | nil (25.0) -
fpathconf(3) で取得したファイルの設定変数の値を返します。
...場合は nil
を返します。(fpathconf(3) が -1 を返し、errno が設定されていない
場合)
@param name Etc モジュールの PC_ で始まる定数のいずれかを指定します。
//emlist[][ruby]{
require 'etc'
IO.pipe {|r, w|
p w.pathconf(Etc::PC_PIPE_BUF) # => 4096
}
//}...