1件ヒット
[1-1件を表示]
(0.016秒)
モジュール
- Etc (1)
検索結果
-
Etc
. # confstr(name) -> String | nil (28.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"
//}...