るりまサーチ

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

別のキーワード

  1. process fork
  2. process abort
  3. process setrlimit
  4. tracer display_process_id?
  5. tracer display_process_id

ライブラリ

クラス

モジュール

検索結果

Shell::CommandProcessor#grpowned?(file) -> bool (21100.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#grpowned?...

FileTest.#grpowned?(file) -> bool (18112.0)

ファイルのグループ ID がカレントプロセスの実効グループ ID と等しい時に真を返 します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...ト file が既に close されていた場合に発生します。

//emlist[例][ruby]{
IO.write("testfile", "")
File.chown(-1, Process.gid, "testfile")
FileTest.grpowned?("testfile") # => true
File.chown(-1, Process.gid + 10, "testfile")
FileTest.grpowned?("testfile") # => false
//}...