るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.146秒)
トップページ > クエリ:l[x] > クエリ:>[x] > クエリ:n[x] > クエリ:O_NONBLOCK[x]

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. pop n_mails
  3. pop n_bytes
  4. pop3 n_bytes
  5. rsa n=

ライブラリ

クラス

モジュール

キーワード

検索結果

Fcntl::O_NONBLOCK -> Integer (27401.0)

ファイルを non-blocking モードで開きます。

...ファイルを non-blocking モードで開きます。...

IO#fcntl(cmd, arg = 0) -> Integer (12406.0)

IOに対してシステムコール fcntl を実行します。 機能の詳細は fcntl(2) を参照してください。 fcntl(2) が返した整数を返します。

...IOに対してシステムコール fcntl を実行します。
機能の詳細は fcntl(2) を参照してください。
fcntl(2) が返した整数を返します。

@param cmd IO に対するコマンドを、添付ライブラリ fcntl が提供している定数で指定します。

@param...
...close されている場合に発生します。

//emlist[例][ruby]{
require "fcntl"

IO.write("testfile", "abcde")
# ファイル状態フラグを読み出す
File.open("testfile") do |f|
f.fcntl(Fcntl::F_GETFL, 0) # => 0
f.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) # => 0
f.fcntl(Fcntl::F_...
...GETFL, 0) # => 4
end
//}...

Fcntl::O_NDELAY -> Integer (12301.0)

ファイルを non-blocking モードで開きます。

...ファイルを non-blocking モードで開きます。...