るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. socket accept_nonblock
  2. socket recvfrom_nonblock
  3. fcntl o_nonblock
  4. socket connect_nonblock
  5. stringio write_nonblock

ライブラリ

クラス

モジュール

検索結果

fcntl (114313.0)

ファイルディスクリプタを扱う Unix のシステムコール IO#fcntl (つまり fcntl(2)) で使用できる定数を集めたモジュールです。

ファイルディスクリプタを扱う Unix のシステムコール IO#fcntl (つまり
fcntl(2)) で使用できる定数を集めたモジュールです。


例:
require "fcntl"
m = s.fcntl(Fcntl::F_GETFL, 0)
f.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK|m)

require 'fcntl'

fd = IO::sysopen('/tmp/tempfile',
Fcntl::O_WRONLY | Fcntl::O_EXCL | Fcntl...

Fcntl::O_NONBLOCK -> Integer (105607.0)

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

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

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

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

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

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

@param arg cmd に対する引数を整数、文字列、booleanのいずれかで指定します。
整数の時にはその値を fcntl(2) に渡します。
文字列の場合には Array#pack した構造体だとみなして渡します。
arg が nil か false の...

Fcntl::O_NDELAY -> Integer (51007.0)

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

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