るりまサーチ

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

別のキーワード

  1. fcntl o_accmode
  2. fcntl o_rdwr
  3. fcntl o_excl
  4. fcntl o_ndelay
  5. fcntl o_wronly

ライブラリ

クラス

モジュール

キーワード

検索結果

Fcntl::O_NONBLOCK -> Integer (15201.0)

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

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

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

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

...に発生します。

//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 (101.0)

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

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