るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.038秒)
トップページ > バージョン:2.6.0[x] > クエリ:Integer[x] > クエリ:-[x] > クエリ:Errno[x] > ライブラリ:etc[x]

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer downto
  5. integer upto

クラス

モジュール

キーワード

検索結果

Etc.#sysconf(name) -> Integer | nil (646.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 (646.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
}
//}...