るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.034秒)

別のキーワード

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

クラス

モジュール

キーワード

検索結果

File::Constants::NONBLOCK -> Integer (18204.0)

ファイルが利用可能じゃなくてもブロックしません。 File.openで使用します。

ファイルが利用可能じゃなくてもブロックしません。
File.openで使用します。

IO#write_nonblock(string, exception: true) -> Integer | :wait_writable (6210.0)

IO をノンブロッキングモードに設定し、string を write(2) システムコールで書き出します。

...CK である場合は、
その例外オブジェクトに IO::WaitWritable が Object#extend
されます。よって IO::WaitWritable を write_nonblock のリトライが必要
かの判定に用いることができます。

@param string 自身に書き込みたい文字列を指定します...

IO#fcntl(cmd, arg = 0) -> Integer (109.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
//}...