62件ヒット
[1-62件を表示]
(0.186秒)
種類
- インスタンスメソッド (40)
- 特異メソッド (11)
- モジュール関数 (11)
ライブラリ
- ビルトイン (33)
- pathname (11)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- File (11)
-
File
:: Stat (11) - Pathname (11)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
- FileTest (11)
検索結果
先頭5件
-
File
:: Stat # setgid? -> bool (30407.0) -
setgidされている時に真を返します。
...setgidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/usr/sbin/*") {|bd|
if File::Stat.new(bd).setgid?
puts bd
end
}
#例
#...
#=> /usr/sbin/postqueue
#...
//}... -
FileTest
. # setgid?(file) -> bool (30406.0) -
ファイルが setgid(2) されている時に真を返 します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...ファイルが setgid(2) されている時に真を返
します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列か IO オブジェクトを......指定します。
//emlist[例][ruby]{
require 'fileutils'
IO.write("testfile", "")
FileUtils.chmod("g+s", "testfile")
FileTest.setgid?("testfile") # => true
FileUtils.chmod("g-s", "testfile")
FileTest.setgid?("testfile") # => false
//}... -
Pathname
# setgid? -> bool (30401.0) -
FileTest.setgid?(self.to_s) と同じです。
...FileTest.setgid?(self.to_s) と同じです。
@see FileTest.#setgid?... -
File
. setgid?(path) -> bool (30400.0) -
FileTest.#setgid? と同じです。
...FileTest.#setgid? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
Shell
# setgid?(file) -> bool (30400.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid?... -
Shell
:: CommandProcessor # setgid?(file) -> bool (30400.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid?... -
Shell
:: Filter # setgid?(file) -> bool (30400.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid?...